...

Source file src/github.com/Microsoft/hcsshim/internal/hcs/schema2/interrupt_moderation_mode.go

Documentation: github.com/Microsoft/hcsshim/internal/hcs/schema2

     1  /*
     2   * HCS API
     3   *
     4   * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
     5   *
     6   * API version: 2.4
     7   * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
     8   */
     9  
    10  package hcsschema
    11  
    12  type InterruptModerationName string
    13  
    14  // The valid interrupt moderation modes for I/O virtualization (IOV) offloading.
    15  const (
    16  	DefaultName  InterruptModerationName = "Default"
    17  	AdaptiveName InterruptModerationName = "Adaptive"
    18  	OffName      InterruptModerationName = "Off"
    19  	LowName      InterruptModerationName = "Low"
    20  	MediumName   InterruptModerationName = "Medium"
    21  	HighName     InterruptModerationName = "High"
    22  )
    23  
    24  type InterruptModerationValue uint32
    25  
    26  const (
    27  	DefaultValue InterruptModerationValue = iota
    28  	AdaptiveValue
    29  	OffValue
    30  	LowValue    InterruptModerationValue = 100
    31  	MediumValue InterruptModerationValue = 200
    32  	HighValue   InterruptModerationValue = 300
    33  )
    34  
    35  var InterruptModerationValueToName = map[InterruptModerationValue]InterruptModerationName{
    36  	DefaultValue:  DefaultName,
    37  	AdaptiveValue: AdaptiveName,
    38  	OffValue:      OffName,
    39  	LowValue:      LowName,
    40  	MediumValue:   MediumName,
    41  	HighValue:     HighName,
    42  }
    43  

View as plain text