Skip to main content

Module mbuf

Module mbuf 

Source
Expand description

Memory buffer management for DPDK packets

The mbuf (memory buffer) is the fundamental data structure for packet handling in DPDK. This module provides safe Rust wrappers around DPDK’s mbuf operations.

Structs§

Mbuf
A memory buffer for packet data
MbufBuilder
Builder for creating mbufs with specific content
Mempool
Memory pool for packet buffers
MempoolConfig
Configuration for creating a mempool

Constants§

DEFAULT_CACHE_SIZE
Default per-core cache size
DEFAULT_DATA_ROOM_SIZE
Default data room size (2KB + headroom)
DEFAULT_POOL_SIZE
Default number of mbufs in a pool
MAX_MEMPOOL_NAME_LEN
Maximum length for mempool names