#include <time.h>
#include <unistd.h>
#include <doca_buf.h>
#include <doca_buf_inventory.h>
#include <doca_ctx.h>
#include <doca_eth_txq.h>
#include <doca_eth_txq_cpu_data_path.h>
#include <doca_error.h>
#include <doca_log.h>
#include "common.h"
#include "eth_common.h"
Go to the source code of this file.
◆ BUFS_NUM
| #define BUFS_NUM 1 /* Number of DOCA buffers */ |
◆ ETHER_TYPE_IPV4
| #define ETHER_TYPE_IPV4 0x0800 /* IPV4 type */ |
◆ LSO_PKT_SIZE
| #define LSO_PKT_SIZE 4000 /* Size of the packet in doca_eth_txq_task_lso_send task */ |
◆ LSO_SEND_TASK_USER_DATA
| #define LSO_SEND_TASK_USER_DATA 0x56789 /* User data for LSO send task */ |
◆ MAX_BURST_SIZE
| #define MAX_BURST_SIZE 256 /* Max burst size to set for eth_txq */ |
◆ MAX_LIST_LENGTH
| #define MAX_LIST_LENGTH 1 /* Max number of elements in a doca_buf */ |
◆ MAX_LSO_HEADER_SIZE
| #define MAX_LSO_HEADER_SIZE 64 /* Max header size in LRO packet to set for eth_txq */ |
◆ MSS
| #define MSS 1500 /* Max Segment Size in LSO tasks to set for eth_txq */ |
◆ SLEEP_IN_NANOS
| #define SLEEP_IN_NANOS (10 * 1000) /* sample the task every 10 microseconds */ |
◆ TASKS_NUM
| #define TASKS_NUM 1 /* Tasks number */ |
◆ check_device()
| static doca_error_t check_device |
( |
struct doca_devinfo * |
devinfo | ) |
|
|
static |
◆ create_eth_txq_ctx()
◆ create_eth_txq_lso_packet_buffers()
◆ create_eth_txq_tasks()
◆ destroy_eth_txq_ctx()
◆ destroy_eth_txq_packet_buffers()
◆ destroy_eth_txq_tasks()
◆ DOCA_LOG_REGISTER()
| DOCA_LOG_REGISTER |
( |
ETH_TXQ_LSO_SEND_ETHERNET_FRAMES |
| ) |
|
◆ eth_txq_lso_cleanup()
◆ eth_txq_lso_send_ethernet_frames()
| doca_error_t eth_txq_lso_send_ethernet_frames |
( |
const char * |
ib_dev_name, |
|
|
uint8_t * |
dest_mac_addr |
|
) |
| |
◆ retrieve_eth_txq_tasks()
◆ submit_eth_txq_tasks()
◆ task_lso_send_common_cb()
| static void task_lso_send_common_cb |
( |
struct doca_eth_txq_task_lso_send * |
task_lso_send, |
|
|
union doca_data |
task_user_data, |
|
|
union doca_data |
ctx_user_data |
|
) |
| |
|
static |