sriovtest

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

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

Jump to

Keyboard shortcuts

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