NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
rdma_read_responder_sample.c File Reference
#include <doca_error.h>
#include <doca_log.h>
#include <doca_buf_inventory.h>
#include <doca_buf.h>
#include <doca_ctx.h>
#include "rdma_common.h"
Include dependency graph for rdma_read_responder_sample.c:

Go to the source code of this file.

Functions

 DOCA_LOG_REGISTER (RDMA_READ_RESPONDER::SAMPLE)
 
static doca_error_t write_read_connection (struct rdma_config *cfg, struct rdma_resources *resources)
 
static doca_error_t rdma_read_responder_export_and_connect (struct rdma_resources *resources)
 
static void rdma_read_responder_state_change_callback (const union doca_data user_data, struct doca_ctx *ctx, enum doca_ctx_states prev_state, enum doca_ctx_states next_state)
 
static doca_error_t responder_wait_for_requester_finish (struct rdma_resources *resources)
 
doca_error_t rdma_read_responder (struct rdma_config *cfg)
 

Function Documentation

◆ DOCA_LOG_REGISTER()

DOCA_LOG_REGISTER ( RDMA_READ_RESPONDER::SAMPLE  )

◆ rdma_read_responder()

doca_error_t rdma_read_responder ( struct rdma_config cfg)

Definition at line 253 of file rdma_read_responder_sample.c.

◆ rdma_read_responder_export_and_connect()

static doca_error_t rdma_read_responder_export_and_connect ( struct rdma_resources resources)
static

Definition at line 96 of file rdma_read_responder_sample.c.

◆ rdma_read_responder_state_change_callback()

static void rdma_read_responder_state_change_callback ( const union doca_data  user_data,
struct doca_ctx *  ctx,
enum doca_ctx_states  prev_state,
enum doca_ctx_states  next_state 
)
static

doca_ctx_stop() has been called. In this sample, this happens either due to a failure encountered, in which case doca_pe_progress() will cause any inflight task to be flushed, or due to the successful compilation of the sample flow. In both cases, in this sample, doca_pe_progress() will eventually transition the context to idle state.

Definition at line 160 of file rdma_read_responder_sample.c.

◆ responder_wait_for_requester_finish()

static doca_error_t responder_wait_for_requester_finish ( struct rdma_resources resources)
static

Definition at line 228 of file rdma_read_responder_sample.c.

◆ write_read_connection()

static doca_error_t write_read_connection ( struct rdma_config cfg,
struct rdma_resources resources 
)
static

Definition at line 45 of file rdma_read_responder_sample.c.