Documentation ¶
Index ¶
- func ConfigureVF(deviceAddr string, numvfs int) error
- func CurrentVFConfigured(deviceAddr string) (int, error)
- func GenerateSRIOVNics(nodeName string, nodeCache ctlcorev1.NodeCache, ...) ([]*v1beta1.SRIOVNetworkDevice, error)
- func GetDefaultSysPath() string
- func GetVFList(pf string) (vfList []string, err error)
- func IdentifyHarvesterManagedNIC(nodeName string, nodeCache ctlcorev1.NodeCache, ...) ([]string, error)
- func IdentifyManagementNics() ([]string, error)
- func IsNICSRIOVCapable(deviceAddr string) (bool, error)
- func ListNICSInUseBySRIOV(nics *net.Info) ([]string, error)
- func OverrideDefaultSysPath(val string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureVF ¶ added in v0.2.5
func CurrentVFConfigured ¶ added in v0.2.5
func GenerateSRIOVNics ¶ added in v0.2.5
func GenerateSRIOVNics(nodeName string, nodeCache ctlcorev1.NodeCache, vlanConfigCache ctlnetworkv1beta1.VlanConfigCache, nics *ghw.NetworkInfo) ([]*v1beta1.SRIOVNetworkDevice, error)
GenerateSRIOVNics will generate list of v1beta1.SRIOVNetworkDevice Objects on regular reconciles to ensure new nics are processed, and nic's used for management or cluster network configures are skipped from usage
func GetDefaultSysPath ¶ added in v0.2.5
func GetDefaultSysPath() string
GetDefaultSysPath is a helper to fetch the current defaultDevicePath variable
func GetVFList ¶ added in v0.2.5
copied from: https://github.com/k8snetworkplumbingwg/sriov-network-device-plugin/blob/v3.0.0/pkg/utils/utils.go#L112 with minor change to allow override to sysBusPci path to make it easier to test with umockdev GetVFList returns a List containing PCI addr for all VF discovered in a given PF
func IdentifyHarvesterManagedNIC ¶
func IdentifyHarvesterManagedNIC(nodeName string, nodeCache ctlcorev1.NodeCache, vlanConfigCache ctlnetworkv1beta1.VlanConfigCache) ([]string, error)
func IdentifyManagementNics ¶
IdentifyManagementNics will identify the NICS used on the host for default harvester management and bonded interfaces
func IsNICSRIOVCapable ¶ added in v0.2.5
func ListNICSInUseBySRIOV ¶ added in v0.2.5
func OverrideDefaultSysPath ¶ added in v0.2.5
func OverrideDefaultSysPath(val string)
OverrideDefaultSysPath is a helper to override the defaultDevicePath variable to make it easier to use mocks for testing other packages dependent on nichelper
Types ¶
This section is empty.