resourcepool

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 16 Imported by: 2

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

Jump to

Keyboard shortcuts

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