#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include <rte_mbuf.h>
#include <rte_flow.h>
#include <doca_error.h>
Go to the source code of this file.
|
| doca_error_t | dpdk_init (int argc, char **argv) |
| |
| void | dpdk_fini (void) |
| |
| doca_error_t | dpdk_queues_and_ports_init (struct application_dpdk_config *app_dpdk_config) |
| |
| void | dpdk_queues_and_ports_fini (struct application_dpdk_config *app_dpdk_config) |
| |
| struct dpdk_mempool_shadow * | dpdk_mempool_shadow_create (struct rte_mempool *mbuf_pool, struct doca_dev *device) |
| |
| struct dpdk_mempool_shadow * | dpdk_mempool_shadow_create_extbuf (const struct rte_pktmbuf_extmem **ext_mem, uint32_t ext_num, struct doca_dev *device) |
| |
| doca_error_t | dpdk_mempool_shadow_find_buf_by_data (struct dpdk_mempool_shadow *mempool_shadow, struct doca_buf_inventory *inventory, uintptr_t mem_range_start, size_t mem_range_size, struct doca_buf **out_buf) |
| |
| void | dpdk_mempool_shadow_destroy (struct dpdk_mempool_shadow *mempool_shadow) |
| |
| void | print_header_info (const struct rte_mbuf *packet, const bool l2, const bool l3, const bool l4) |
| |
◆ MBUF_CACHE_SIZE
| #define MBUF_CACHE_SIZE 250 /* mempool cache size */ |
◆ NUM_MBUFS
| #define NUM_MBUFS (8 * 1024) /* Number of mbufs to be allocated in the mempool */ |
◆ RX_RING_SIZE
| #define RX_RING_SIZE 1024 /* RX ring size */ |
◆ TX_RING_SIZE
| #define TX_RING_SIZE 1024 /* TX ring size */ |
◆ dpdk_fini()
◆ dpdk_init()
◆ dpdk_mempool_shadow_create()
| struct dpdk_mempool_shadow* dpdk_mempool_shadow_create |
( |
struct rte_mempool * |
mbuf_pool, |
|
|
struct doca_dev * |
device |
|
) |
| |
◆ dpdk_mempool_shadow_create_extbuf()
| struct dpdk_mempool_shadow* dpdk_mempool_shadow_create_extbuf |
( |
const struct rte_pktmbuf_extmem ** |
ext_mem, |
|
|
uint32_t |
ext_num, |
|
|
struct doca_dev * |
device |
|
) |
| |
◆ dpdk_mempool_shadow_destroy()
◆ dpdk_mempool_shadow_find_buf_by_data()
◆ dpdk_queues_and_ports_fini()
◆ dpdk_queues_and_ports_init()
◆ print_header_info()
| void print_header_info |
( |
const struct rte_mbuf * |
packet, |
|
|
const bool |
l2, |
|
|
const bool |
l3, |
|
|
const bool |
l4 |
|
) |
| |