FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
buffer.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define rte_mbuf_from_vlib_buffer(x)   (((struct rte_mbuf *)x) - 1)
 
#define vlib_buffer_from_rte_mbuf(x)   ((vlib_buffer_t *)(x+1))
 

Functions

clib_error_tdpdk_buffer_pools_create (vlib_main_t *vm)
 

Variables

struct rte_mempool ** dpdk_mempool_by_buffer_pool_index
 
struct rte_mempool ** dpdk_no_cache_mempool_by_buffer_pool_index
 

Macro Definition Documentation

◆ rte_mbuf_from_vlib_buffer

#define rte_mbuf_from_vlib_buffer (   x)    (((struct rte_mbuf *)x) - 1)

Definition at line 19 of file buffer.h.

◆ vlib_buffer_from_rte_mbuf

#define vlib_buffer_from_rte_mbuf (   x)    ((vlib_buffer_t *)(x+1))

Definition at line 20 of file buffer.h.

Function Documentation

◆ dpdk_buffer_pools_create()

clib_error_t* dpdk_buffer_pools_create ( vlib_main_t vm)

Definition at line 430 of file buffer.c.

+ Here is the call graph for this function:

Variable Documentation

◆ dpdk_mempool_by_buffer_pool_index

struct rte_mempool** dpdk_mempool_by_buffer_pool_index

Definition at line 33 of file buffer.c.

◆ dpdk_no_cache_mempool_by_buffer_pool_index

struct rte_mempool** dpdk_no_cache_mempool_by_buffer_pool_index

Definition at line 34 of file buffer.c.