dputils

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DPUtilsLib

type DPUtilsLib interface {
	// GetNetNames returns host net interface names as string for a PCI device from its pci address
	GetNetNames(pciAddr string) ([]string, error)
	// GetDriverName returns current driver attached to a pci device from its pci address
	GetDriverName(pciAddr string) (string, error)
	// GetVFID returns VF ID index (within specific PF) based on PCI address
	GetVFID(pciAddr string) (vfID int, err error)
	// IsSriovVF check if a pci device has link to a PF
	IsSriovVF(pciAddr string) bool
	// IsSriovPF check if a pci device SRIOV capable given its pci address
	IsSriovPF(pciAddr string) bool
	// GetSriovVFcapacity returns SRIOV VF capacity
	GetSriovVFcapacity(pf string) int
	// GetVFconfigured returns number of VF configured for a PF
	GetVFconfigured(pf string) int
	// SriovConfigured returns true if sriov_numvfs reads > 0 else false
	SriovConfigured(addr string) bool
	// GetVFList returns a List containing PCI addr for all VF discovered in a given PF
	GetVFList(pf string) (vfList []string, err error)
}

func New

func New() DPUtilsLib

Directories

Path Synopsis
Package mock_dputils is a generated GoMock package.
Package mock_dputils is a generated GoMock package.

Jump to

Keyboard shortcuts

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