sriov

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHostDevices

func CreateHostDevices(vmi *v1.VirtualMachineInstance) ([]api.HostDevice, error)

func CreateHostDevicesFromIfacesAndPool

func CreateHostDevicesFromIfacesAndPool(SRIOVInterfaces []v1.Interface, pciAddrPool pool) ([]api.HostDevice, error)

Types

type PCIAddressPool

type PCIAddressPool struct {
	// contains filtered or unexported fields
}

func NewPCIAddressPool

func NewPCIAddressPool(ifaces []v1.Interface) *PCIAddressPool

NewPCIAddressPool creates a PCI address pool based on the provided list of interfaces and the environment variables that describe the SRIOV devices.

func (*PCIAddressPool) Pop

func (p *PCIAddressPool) Pop(networkName string) (string, error)

Pop gets the next PCI address available to a particular SR-IOV network. The function makes sure that the allocated address is not allocated to next callers, whether they request an address for the same network or another network that is backed by the same resourceName.

Jump to

Keyboard shortcuts

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