NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
rdma_write_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_write_responder_sample.c:

Go to the source code of this file.

Macros

#define MAX_BUFF_SIZE   (256) /* Maximum DOCA buffer size */
 

Functions

 DOCA_LOG_REGISTER (RDMA_WRITE_RESPONDER::SAMPLE)
 
static doca_error_t write_read_connection (struct rdma_config *cfg, struct rdma_resources *resources)
 
static doca_error_t rdma_write_responder_export_and_connect (struct rdma_resources *resources)
 
static doca_error_t responder_wait_for_requester_finish (struct rdma_resources *resources)
 
static void rdma_write_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)
 
doca_error_t rdma_write_responder (struct rdma_config *cfg)
 

Macro Definition Documentation

◆ MAX_BUFF_SIZE

#define MAX_BUFF_SIZE   (256) /* Maximum DOCA buffer size */

Definition at line 34 of file rdma_write_responder_sample.c.

Function Documentation

◆ DOCA_LOG_REGISTER()

DOCA_LOG_REGISTER ( RDMA_WRITE_RESPONDER::SAMPLE  )

◆ rdma_write_responder()

doca_error_t rdma_write_responder ( struct rdma_config cfg)

Definition at line 261 of file rdma_write_responder_sample.c.

◆ rdma_write_responder_export_and_connect()

static doca_error_t rdma_write_responder_export_and_connect ( struct rdma_resources resources)
static

Definition at line 97 of file rdma_write_responder_sample.c.

◆ rdma_write_responder_state_change_callback()

static void rdma_write_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 197 of file rdma_write_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 151 of file rdma_write_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 47 of file rdma_write_responder_sample.c.