Documentation
¶
Overview ¶
Package sriovtest provides utils for SR-IOV testing
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PCIFunction ¶
type PCIFunction struct { Addr string `yaml:"addr"` IfName string `yaml:"ifName"` IOMMUGroup uint `yaml:"iommuGroup"` Driver string `yaml:"driver"` }
PCIFunction is a test data class for pcifunction.Function
func (*PCIFunction) BindDriver ¶
func (f *PCIFunction) BindDriver(driver string) error
BindDriver sets f.Driver = driver
func (*PCIFunction) GetBoundDriver ¶
func (f *PCIFunction) GetBoundDriver() (string, error)
GetBoundDriver returns f.Driver
func (*PCIFunction) GetIOMMUGroup ¶
func (f *PCIFunction) GetIOMMUGroup() (uint, error)
GetIOMMUGroup returns f.IOMMUGroup
func (*PCIFunction) GetNetInterfaceName ¶
func (f *PCIFunction) GetNetInterfaceName() (string, error)
GetNetInterfaceName returns f.IfName
func (*PCIFunction) GetPCIAddress ¶
func (f *PCIFunction) GetPCIAddress() string
GetPCIAddress returns f.Addr
type PCIPhysicalFunction ¶
type PCIPhysicalFunction struct { Vfs []*PCIFunction `yaml:"vfs"` PCIFunction }
PCIPhysicalFunction is a test data class for pcifunction.PhysicalFunction
Click to show internal directories.
Click to hide internal directories.