Documentation ¶
Index ¶
- Constants
- func AsyncGetVF(ctx context.Context, device string, expectedVfCount uint8) chan *VFList
- func CreateVF(device string, vfCount uint8) error
- func GetVfIfaceName(index uint8, ifname string) string
- func ParseVfIfaceName(ifname string) (uint8, string, error)
- func SetupVfHardwareAddr(iface string, mac string, index uint8) error
- func SetupVfVlan(iface string, index uint8, vlanID uint16) error
- type EthVF
- type VFList
Constants ¶
View Source
const ( NicLinuxPath = "/sys/class/net/" NumVfsDevicePath = "/device/sriov_numvfs" VfCountFieldName = "sriov-vf-count" MaxVfCount = 255 )
constants for Linux paths for devices
Variables ¶
This section is empty.
Functions ¶
func AsyncGetVF ¶
AsyncGetVF returns Vf for given PF asynchronously
func GetVfIfaceName ¶
GetVfIfaceName returns formatted VF name
func ParseVfIfaceName ¶
ParseVfIfaceName returns index of VF and its PF from name
func SetupVfHardwareAddr ¶
SetupVfHardwareAddr sets up MAC address for the given VF of the given PF
Types ¶
Click to show internal directories.
Click to hide internal directories.