NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
eth_l2_fwd_core.h File Reference
#include <doca_dev.h>
#include <doca_mmap.h>
#include <samples/doca_eth/eth_rxq_common.h>
Include dependency graph for eth_l2_fwd_core.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  eth_l2_fwd_cfg
 
struct  mmap_resources
 
struct  eth_l2_fwd_dev_resources
 
struct  eth_l2_fwd_resources
 

Macros

#define ETH_L2_FWD_MAX_PKT_SIZE_DEFAULT   1600
 
#define ETH_L2_FWD_PKTS_RECV_RATE_DEFAULT   12500
 
#define ETH_L2_FWD_PKT_MAX_PROCESS_TIME_DEFAULT   1
 
#define ETH_L2_FWD_LOG_MAX_LRO_DEFAULT   15
 
#define ETH_L2_FWD_NUM_TASK_BATCHES_DEFAULT   32
 
#define ETH_L2_FWD_NUM_TASKS_PER_BATCH   128
 

Functions

doca_error_t eth_l2_fwd_execute (struct eth_l2_fwd_cfg *cfg, struct eth_l2_fwd_resources *state)
 
void eth_l2_fwd_force_stop (void)
 
doca_error_t eth_l2_fwd_cleanup (struct eth_l2_fwd_resources *state)
 

Macro Definition Documentation

◆ ETH_L2_FWD_LOG_MAX_LRO_DEFAULT

#define ETH_L2_FWD_LOG_MAX_LRO_DEFAULT   15

Definition at line 37 of file eth_l2_fwd_core.h.

◆ ETH_L2_FWD_MAX_PKT_SIZE_DEFAULT

#define ETH_L2_FWD_MAX_PKT_SIZE_DEFAULT   1600

Definition at line 34 of file eth_l2_fwd_core.h.

◆ ETH_L2_FWD_NUM_TASK_BATCHES_DEFAULT

#define ETH_L2_FWD_NUM_TASK_BATCHES_DEFAULT   32

Definition at line 38 of file eth_l2_fwd_core.h.

◆ ETH_L2_FWD_NUM_TASKS_PER_BATCH

#define ETH_L2_FWD_NUM_TASKS_PER_BATCH   128

Definition at line 39 of file eth_l2_fwd_core.h.

◆ ETH_L2_FWD_PKT_MAX_PROCESS_TIME_DEFAULT

#define ETH_L2_FWD_PKT_MAX_PROCESS_TIME_DEFAULT   1

Definition at line 36 of file eth_l2_fwd_core.h.

◆ ETH_L2_FWD_PKTS_RECV_RATE_DEFAULT

#define ETH_L2_FWD_PKTS_RECV_RATE_DEFAULT   12500

Definition at line 35 of file eth_l2_fwd_core.h.

Function Documentation

◆ eth_l2_fwd_cleanup()

doca_error_t eth_l2_fwd_cleanup ( struct eth_l2_fwd_resources state)

Definition at line 891 of file eth_l2_fwd_core.c.

◆ eth_l2_fwd_execute()

doca_error_t eth_l2_fwd_execute ( struct eth_l2_fwd_cfg cfg,
struct eth_l2_fwd_resources state 
)

Definition at line 736 of file eth_l2_fwd_core.c.

◆ eth_l2_fwd_force_stop()

void eth_l2_fwd_force_stop ( void  )

Definition at line 886 of file eth_l2_fwd_core.c.