26 #ifndef ETH_L2_FWD_CORE_H_
27 #define ETH_L2_FWD_CORE_H_
34 #define ETH_L2_FWD_MAX_PKT_SIZE_DEFAULT 1600
35 #define ETH_L2_FWD_PKTS_RECV_RATE_DEFAULT 12500
36 #define ETH_L2_FWD_PKT_MAX_PROCESS_TIME_DEFAULT 1
37 #define ETH_L2_FWD_LOG_MAX_LRO_DEFAULT 15
38 #define ETH_L2_FWD_NUM_TASK_BATCHES_DEFAULT 32
39 #define ETH_L2_FWD_NUM_TASKS_PER_BATCH 128
doca_error_t eth_l2_fwd_cleanup(struct eth_l2_fwd_resources *state)
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)
#define DOCA_DEVINFO_IBDEV_NAME_SIZE
Buffer size to hold Infiniband/RoCE device name. Including a null terminator.
enum doca_error doca_error_t
DOCA API return codes.
const struct ip_frag_config * cfg
uint16_t num_task_batches
char mlxdev_name1[DOCA_DEVINFO_IBDEV_NAME_SIZE]
char mlxdev_name2[DOCA_DEVINFO_IBDEV_NAME_SIZE]
uint16_t pkt_max_process_time
uint16_t rxq_flow_queue_id
struct doca_eth_txq * eth_txq
struct doca_ctx * eth_rxq_ctx
struct doca_ctx * eth_txq_ctx
struct doca_eth_rxq * eth_rxq
struct mmap_resources mmap_resrc
struct eth_rxq_flow_resources flow_resrc
struct eth_l2_fwd_dev_resources dev_resrc1
struct eth_l2_fwd_dev_resources dev_resrc2