NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
dpa_ping_pong_sample.c File Reference
Include dependency graph for dpa_ping_pong_sample.c:

Go to the source code of this file.

Functions

 DOCA_LOG_REGISTER (DPA_PING_PONG::SAMPLE)
 
static doca_error_t rdma_objs_init (struct dpa_resources *resources, struct dpa_completion_obj *ping_dpa_completion_obj, struct dpa_completion_obj *pong_dpa_completion_obj, struct dpa_rdma_obj *ping_dpa_rdma_obj, struct dpa_rdma_obj *pong_dpa_rdma_obj)
 Create, attach, start and connect DPA RDMA objects. More...
 
static doca_error_t rdma_objs_destroy (struct dpa_rdma_obj *ping_dpa_rdma_obj, struct dpa_rdma_obj *pong_dpa_rdma_obj)
 Destroy DPA RDMA objects. More...
 
doca_error_t dpa_ping_pong (struct dpa_resources *resources)
 Sample's Logic. More...
 

Variables

doca_dpa_func_t thread_kernel
 
doca_dpa_func_t trigger_first_iteration_rpc
 

Function Documentation

◆ DOCA_LOG_REGISTER()

DOCA_LOG_REGISTER ( DPA_PING_PONG::SAMPLE  )

◆ dpa_ping_pong()

doca_error_t dpa_ping_pong ( struct dpa_resources resources)

Sample's Logic.

Sample's logic.

@resources [in]: DPA resources that the sample will use

Returns
: DOCA_SUCCESS on success and DOCA_ERROR otherwise

Definition at line 167 of file dpa_ping_pong_sample.c.

◆ rdma_objs_destroy()

static doca_error_t rdma_objs_destroy ( struct dpa_rdma_obj ping_dpa_rdma_obj,
struct dpa_rdma_obj pong_dpa_rdma_obj 
)
static

Destroy DPA RDMA objects.

@ping_dpa_rdma_obj [in]: Previously created ping DPA RDMA @pong_dpa_rdma_obj [in]: Previously created pong DPA RDMA

Returns
: DOCA_SUCCESS on success and DOCA_ERROR otherwise

Definition at line 142 of file dpa_ping_pong_sample.c.

◆ rdma_objs_init()

static doca_error_t rdma_objs_init ( struct dpa_resources resources,
struct dpa_completion_obj ping_dpa_completion_obj,
struct dpa_completion_obj pong_dpa_completion_obj,
struct dpa_rdma_obj ping_dpa_rdma_obj,
struct dpa_rdma_obj pong_dpa_rdma_obj 
)
static

Create, attach, start and connect DPA RDMA objects.

This function creates DPA RDMA objects, attaches to DPA completion, start and connect them

@resources [in]: DPA resources @ping_dpa_completion_obj [in]: Ping DPA completion @pong_dpa_completion_obj [in]: Pong DPA completion @ping_dpa_rdma_obj [out]: Created ping DPA RDMA @pong_dpa_rdma_obj [out]: Created pong DPA RDMA

Returns
: DOCA_SUCCESS on success and DOCA_ERROR otherwise

Definition at line 49 of file dpa_ping_pong_sample.c.

Variable Documentation

◆ thread_kernel

doca_dpa_func_t thread_kernel

kernel/RPC declaration

Definition at line 34 of file dpa_ping_pong_sample.c.

◆ trigger_first_iteration_rpc

doca_dpa_func_t trigger_first_iteration_rpc

Definition at line 35 of file dpa_ping_pong_sample.c.