types

package
v0.0.0-...-d6bac12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

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

func (vs *VfState) FillFromVfInfo(info *netlink.VfInfo)

FillFromVfInfo - Fill attributes according to the provided netlink.VfInfo struct

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL