Documentation
¶
Overview ¶
Package resourcepool provides chain elements for to select and free VF
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶ added in v1.1.0
func NewClient( driverType sriov.DriverType, resourceLock sync.Locker, pciPool PCIPool, resourcePool ResourcePool, cfg *config.Config, ) networkservice.NetworkServiceClient
NewClient returns a new resource pool client chain element
func NewServer ¶
func NewServer( driverType sriov.DriverType, resourceLock sync.Locker, pciPool PCIPool, resourcePool ResourcePool, cfg *config.Config, ) networkservice.NetworkServiceServer
NewServer returns a new resource pool server chain element
Types ¶
type PCIPool ¶
type PCIPool interface { GetPCIFunction(pciAddr string) (sriov.PCIFunction, error) BindDriver(ctx context.Context, iommuGroup uint, driverType sriov.DriverType) error }
PCIPool is a pci.Pool interface
type ResourcePool ¶
type ResourcePool interface { Select(tokenID string, driverType sriov.DriverType) (string, error) Free(vfPCIAddr string) error }
ResourcePool is a resource.Pool interface
Click to show internal directories.
Click to hide internal directories.