FD.io VPP  v20.01-48-g3e0dafb74
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.


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


clib_error_tdpdk_buffer_pools_create (vlib_main_t *vm)


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 429 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.