dpdkinfra

package
v0.0.0-...-8fa78e2 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DpdkInfra

type DpdkInfra struct {
	*portmngr.PortMngr
	*pipemngr.PipeMngr
	PktmbufStore *store.Store[*pktmbuf.Pktmbuf]
	// contains filtered or unexported fields
}

func CreateAndInit

func CreateAndInit(dpdkArgs []string) (*DpdkInfra, error)

create and initialize the dpdkinfra singleton, return the current dpdkinfra singleton with error if it already exists

func Get

func Get() *DpdkInfra

return a pointer to the (initialized) dpdkinfra singleton

func (*DpdkInfra) Cleanup

func (di *DpdkInfra) Cleanup() error

empty & remove stores and cleanup initialized managers

func (*DpdkInfra) PktmbufCreate

func (di *DpdkInfra) PktmbufCreate(
	name string, bufferSize uint, poolSize uint32, cacheSize uint32, cpuID int,
) (*pktmbuf.Pktmbuf, error)

PktmbufCreate creates a pktmuf and stores it in the dpdkinfra pktmbuf store

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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