pktmbuf

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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const RteMbufDefaultBufSize uint = C.RTE_MBUF_DEFAULT_BUF_SIZE
View Source
const RteMbufDefaultDataroom uint = C.RTE_MBUF_DEFAULT_DATAROOM
View Source
const RtePktmbufHeadroom uint = C.RTE_PKTMBUF_HEADROOM
View Source
const SizeofRteMbuf uint = C.sizeof_struct_rte_mbuf

Variables

This section is empty.

Functions

This section is empty.

Types

type Pktmbuf

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

Pktmbuf represents a DPDK Packet memory buffer (pktmbuf) initialized memory pool (mempool)

func (*Pktmbuf) Free

func (pm *Pktmbuf) Free() error

func (*Pktmbuf) Init

func (pm *Pktmbuf) Init(
	name string,
	bufferSize uint,
	poolSize uint32,
	cacheSize uint32,
	cpuSocketID int,
	clean func(),
) error

Create pktmbuf with corresponding pktmbuf mempool memory. Returns a pointer to a Pktmbuf structure or nil with error.

func (*Pktmbuf) Mempool

func (pm *Pktmbuf) Mempool() *mempool.Mempool

func (*Pktmbuf) Name

func (pm *Pktmbuf) Name() string

Jump to

Keyboard shortcuts

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