| NVIDIA DOCA SDK | Data Center on a Chip Framework Documentation |
#include <arpa/inet.h>#include <doca_flow.h>#include <doca_log.h>#include "gpunetio_common.h"#include "common.h"
Go to the source code of this file.
Macros | |
| #define | FLOW_NB_COUNTERS 524228 /* 1024 x 512 */ |
| #define | MBUF_NUM 8192 |
| #define | MBUF_SIZE 2048 |
| #define | CPU_TO_BE16(val) __builtin_bswap16(val) |
Functions | |
| DOCA_LOG_REGISTER (SIMPLE_SEND :SAMPLE) | |
| static void | signal_handler (int signum) |
| static doca_error_t | init_doca_device (char *nic_pcie_addr, struct doca_dev **ddev) |
| static doca_error_t | init_doca_flow (void) |
| static doca_error_t | start_doca_flow (struct doca_dev *dev) |
| static doca_error_t | destroy_txq (struct txq_queue *txq) |
| static doca_error_t | create_txq (struct txq_queue *txq, struct doca_gpu *gpu_dev, struct doca_dev *ddev, uint32_t pkt_size, uint32_t pkt_num) |
| doca_error_t | gpunetio_simple_send (struct sample_simple_send_cfg *sample_cfg) |
Variables | |
| struct doca_flow_port * | df_port |
| bool | force_quit |
| #define CPU_TO_BE16 | ( | val | ) | __builtin_bswap16(val) |
Definition at line 37 of file gpunetio_simple_send_sample.c.
| #define FLOW_NB_COUNTERS 524228 /* 1024 x 512 */ |
Definition at line 34 of file gpunetio_simple_send_sample.c.
| #define MBUF_NUM 8192 |
Definition at line 35 of file gpunetio_simple_send_sample.c.
| #define MBUF_SIZE 2048 |
Definition at line 36 of file gpunetio_simple_send_sample.c.
|
static |
Definition at line 248 of file gpunetio_simple_send_sample.c.
|
static |
Definition at line 180 of file gpunetio_simple_send_sample.c.
| DOCA_LOG_REGISTER | ( | SIMPLE_SEND :SAMPLE | ) |
| doca_error_t gpunetio_simple_send | ( | struct sample_simple_send_cfg * | sample_cfg | ) |
Definition at line 466 of file gpunetio_simple_send_sample.c.
|
static |
Definition at line 64 of file gpunetio_simple_send_sample.c.
|
static |
Definition at line 88 of file gpunetio_simple_send_sample.c.
|
static |
Definition at line 49 of file gpunetio_simple_send_sample.c.
|
static |
Definition at line 138 of file gpunetio_simple_send_sample.c.
| struct doca_flow_port* df_port |
Definition at line 39 of file gpunetio_simple_send_sample.c.
| bool force_quit |
Definition at line 40 of file gpunetio_simple_send_sample.c.