Go to the source code of this file.
|
| STATIC_ASSERT (VLIB_BUFFER_PRE_DATA_SIZE==RTE_PKTMBUF_HEADROOM,"VLIB_BUFFER_PRE_DATA_SIZE must be equal to RTE_PKTMBUF_HEADROOM") |
|
clib_error_t * | dpdk_buffer_pool_init (vlib_main_t *vm, vlib_buffer_pool_t *bp) |
|
static int | dpdk_ops_vpp_alloc (struct rte_mempool *mp) |
|
static void | dpdk_ops_vpp_free (struct rte_mempool *mp) |
|
static_always_inline void | dpdk_ops_vpp_enqueue_one (vlib_buffer_t *bt, void *obj) |
|
int CLIB_MULTIARCH_FN() | dpdk_ops_vpp_enqueue (struct rte_mempool *mp, void *const *obj_table, unsigned n) |
|
| CLIB_MARCH_FN_REGISTRATION (dpdk_ops_vpp_enqueue) |
|
static_always_inline void | dpdk_ops_vpp_enqueue_no_cache_one (vlib_main_t *vm, struct rte_mempool *old, struct rte_mempool *new, void *obj, vlib_buffer_t *bt) |
|
int CLIB_MULTIARCH_FN() | dpdk_ops_vpp_enqueue_no_cache (struct rte_mempool *cmp, void *const *obj_table, unsigned n) |
|
| CLIB_MARCH_FN_REGISTRATION (dpdk_ops_vpp_enqueue_no_cache) |
|
int CLIB_MULTIARCH_FN() | dpdk_ops_vpp_dequeue (struct rte_mempool *mp, void **obj_table, unsigned n) |
|
| CLIB_MARCH_FN_REGISTRATION (dpdk_ops_vpp_dequeue) |
|
static int | dpdk_ops_vpp_dequeue_no_cache (struct rte_mempool *mp, void **obj_table, unsigned n) |
|
static unsigned | dpdk_ops_vpp_get_count (const struct rte_mempool *mp) |
|
static unsigned | dpdk_ops_vpp_get_count_no_cache (const struct rte_mempool *mp) |
|
clib_error_t * | dpdk_buffer_pools_create (vlib_main_t *vm) |
|
| VLIB_BUFFER_SET_EXT_HDR_SIZE (sizeof(struct rte_mempool_objhdr)+sizeof(struct rte_mbuf)) |
|
static int dpdk_ops_vpp_alloc |
( |
struct rte_mempool * |
mp | ) |
|
|
static |
int CLIB_MULTIARCH_FN() dpdk_ops_vpp_dequeue |
( |
struct rte_mempool * |
mp, |
|
|
void ** |
obj_table, |
|
|
unsigned |
n |
|
) |
| |
static int dpdk_ops_vpp_dequeue_no_cache |
( |
struct rte_mempool * |
mp, |
|
|
void ** |
obj_table, |
|
|
unsigned |
n |
|
) |
| |
|
static |
int CLIB_MULTIARCH_FN() dpdk_ops_vpp_enqueue |
( |
struct rte_mempool * |
mp, |
|
|
void *const * |
obj_table, |
|
|
unsigned |
n |
|
) |
| |
int CLIB_MULTIARCH_FN() dpdk_ops_vpp_enqueue_no_cache |
( |
struct rte_mempool * |
cmp, |
|
|
void *const * |
obj_table, |
|
|
unsigned |
n |
|
) |
| |
static void dpdk_ops_vpp_free |
( |
struct rte_mempool * |
mp | ) |
|
|
static |
static unsigned dpdk_ops_vpp_get_count |
( |
const struct rte_mempool * |
mp | ) |
|
|
static |
static unsigned dpdk_ops_vpp_get_count_no_cache |
( |
const struct rte_mempool * |
mp | ) |
|
|
static |
STATIC_ASSERT |
( |
VLIB_BUFFER_PRE_DATA_SIZE |
= =RTE_PKTMBUF_HEADROOM , |
|
|
"VLIB_BUFFER_PRE_DATA_SIZE must be equal to RTE_PKTMBUF_HEADROOM" |
|
|
) |
| |
VLIB_BUFFER_SET_EXT_HDR_SIZE |
( |
sizeof(struct rte_mempool_objhdr)+sizeof(struct rte_mbuf) |
| ) |
|
struct rte_mempool** dpdk_mempool_by_buffer_pool_index = 0 |
struct rte_mempool** dpdk_no_cache_mempool_by_buffer_pool_index = 0 |