sriovconfig

package
v0.0.0-...-ca2dee3 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultCNIDir used for caching NetConf
	DefaultCNIDir = "/var/lib/cni/dpusriov"
)

Functions

func GetMacAddressForResult

func GetMacAddressForResult(netConf *cnitypes.NetConf) string

GetMacAddressForResult return the mac address we should report to the CNI call return object if the device is on kernel mode we report that one back if not we check the administrative mac address on the PF if it is set and is not zero, report it.

func LoadConf

func LoadConf(n *cnitypes.NetConf) (*cnitypes.NetConf, error)

LoadConf parses and validates stdin netconf and returns NetConf object

func LoadConfFromCache

func LoadConfFromCache(containerID string, ifName string) (*cnitypes.NetConf, string, error)

LoadConfFromCache retrieves cached NetConf returns it along with a handle for removal

Types

This section is empty.

Jump to

Keyboard shortcuts

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