Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetConf ¶
type NetConf struct { types.NetConf OrigVfState VfState // Stores the original VF state as it was prior to any operations done during cmdAdd flow DPDKMode bool Master string MAC string Vlan *int `json:"vlan"` VlanQoS *int `json:"vlanQoS"` DeviceID string `json:"deviceID"` // PCI address of a VF in valid sysfs format VFID int ContIFNames string // VF names after in the container; used during deletion MinTxRate *int `json:"min_tx_rate"` // Mbps, 0 = disable rate limiting MaxTxRate *int `json:"max_tx_rate"` // Mbps, 0 = disable rate limiting SpoofChk string `json:"spoofchk,omitempty"` // on|off Trust string `json:"trust,omitempty"` // on|off LinkState string `json:"link_state,omitempty"` // auto|enable|disable RuntimeConfig struct { Mac string `json:"mac,omitempty"` } `json:"runtimeConfig,omitempty"` }
NetConf extends types.NetConf for sriov-cni
type VfState ¶
type VfState struct { HostIFName string SpoofChk bool AdminMAC string EffectiveMAC string Vlan int VlanQoS int MinTxRate int MaxTxRate int LinkState uint32 }
VfState represents the state of the VF
func (*VfState) FillFromVfInfo ¶
FillFromVfInfo - Fill attributes according to the provided netlink.VfInfo struct
Click to show internal directories.
Click to hide internal directories.