DPDK
1.6.0r2
|
#include <rte_mbuf.h>
Data Fields | |
struct rte_mempool * | pool |
void * | buf_addr |
phys_addr_t | buf_physaddr |
uint16_t | buf_len |
union { | |
rte_atomic16_t refcnt_atomic | |
uint16_t refcnt | |
}; | |
uint8_t | type |
uint8_t | reserved |
uint16_t | ol_flags |
The generic rte_mbuf, containing a packet mbuf or a control mbuf.
union { ... } |
16-bit Reference counter. It should only be accessed using the following functions: rte_mbuf_refcnt_update(), rte_mbuf_refcnt_read(), and rte_mbuf_refcnt_set(). The functionality of these functions (atomic, or non-atomic) is controlled by the CONFIG_RTE_MBUF_REFCNT_ATOMIC config option.
void* buf_addr |
Virtual address of segment buffer.
uint16_t buf_len |
Length of segment buffer.
phys_addr_t buf_physaddr |
Physical address of segment buffer.
uint16_t ol_flags |
Offload features.
struct rte_mempool* pool |
Pool from which mbuf was allocated.
uint16_t refcnt |
Non-atomically accessed refcnt
rte_atomic16_t refcnt_atomic |
Atomically accessed refcnt
uint8_t reserved |
Unused field. Required for padding.
uint8_t type |
Type of mbuf.