NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
gpunetio_simple_receive_sample.c File Reference
#include <arpa/inet.h>
#include <doca_flow.h>
#include <doca_log.h>
#include "gpunetio_common.h"
#include "common.h"
Include dependency graph for gpunetio_simple_receive_sample.c:

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
 

Functions

 DOCA_LOG_REGISTER (SIMPLE_RECEIVE :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 create_udp_pipe (struct rxq_queue *rxq)
 
static doca_error_t create_root_pipe (struct rxq_queue *rxq)
 
static doca_error_t destroy_rxq (struct rxq_queue *rxq)
 
static doca_error_t create_rxq (struct rxq_queue *rxq, struct doca_gpu *gpu_dev, struct doca_dev *ddev)
 
doca_error_t gpunetio_simple_receive (struct sample_send_wait_cfg *sample_cfg)
 

Variables

struct doca_flow_port * df_port
 
bool force_quit
 

Macro Definition Documentation

◆ FLOW_NB_COUNTERS

#define FLOW_NB_COUNTERS   524228 /* 1024 x 512 */

Definition at line 34 of file gpunetio_simple_receive_sample.c.

◆ MBUF_NUM

#define MBUF_NUM   8192

Definition at line 35 of file gpunetio_simple_receive_sample.c.

◆ MBUF_SIZE

#define MBUF_SIZE   2048

Definition at line 36 of file gpunetio_simple_receive_sample.c.

Function Documentation

◆ create_root_pipe()

static doca_error_t create_root_pipe ( struct rxq_queue rxq)
static

Definition at line 278 of file gpunetio_simple_receive_sample.c.

◆ create_rxq()

static doca_error_t create_rxq ( struct rxq_queue rxq,
struct doca_gpu *  gpu_dev,
struct doca_dev *  ddev 
)
static

Definition at line 454 of file gpunetio_simple_receive_sample.c.

◆ create_udp_pipe()

static doca_error_t create_udp_pipe ( struct rxq_queue rxq)
static

Definition at line 179 of file gpunetio_simple_receive_sample.c.

◆ destroy_rxq()

static doca_error_t destroy_rxq ( struct rxq_queue rxq)
static

Definition at line 376 of file gpunetio_simple_receive_sample.c.

◆ DOCA_LOG_REGISTER()

DOCA_LOG_REGISTER ( SIMPLE_RECEIVE :SAMPLE  )

◆ gpunetio_simple_receive()

doca_error_t gpunetio_simple_receive ( struct sample_send_wait_cfg sample_cfg)

Definition at line 618 of file gpunetio_simple_receive_sample.c.

◆ init_doca_device()

static doca_error_t init_doca_device ( char *  nic_pcie_addr,
struct doca_dev **  ddev 
)
static

Definition at line 63 of file gpunetio_simple_receive_sample.c.

◆ init_doca_flow()

static doca_error_t init_doca_flow ( void  )
static

Definition at line 87 of file gpunetio_simple_receive_sample.c.

◆ signal_handler()

static void signal_handler ( int  signum)
static

Definition at line 48 of file gpunetio_simple_receive_sample.c.

◆ start_doca_flow()

static doca_error_t start_doca_flow ( struct doca_dev *  dev)
static

Definition at line 137 of file gpunetio_simple_receive_sample.c.

Variable Documentation

◆ df_port

struct doca_flow_port* df_port

Definition at line 38 of file gpunetio_simple_receive_sample.c.

◆ force_quit

bool force_quit

Definition at line 39 of file gpunetio_simple_receive_sample.c.