NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
rmax_common.c File Reference
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "rmax_common.h"
Include dependency graph for rmax_common.c:

Go to the source code of this file.

Functions

 DOCA_LOG_REGISTER (rmax_common)
 
static doca_error_t pci_address_callback (void *param, void *config)
 
static doca_error_t src_ip_callback (void *param, void *config)
 
static doca_error_t dst_port_callback (void *param, void *config)
 
static doca_error_t dst_ip_callback (void *param, void *config)
 
doca_error_t register_create_stream_params (void)
 
static void free_callback (void *addr, size_t len, void *opaque)
 
doca_error_t rmax_flow_set_attributes (struct rmax_stream_config *config, struct doca_rmax_flow *flow)
 
doca_error_t rmax_stream_set_attributes (struct doca_rmax_in_stream *stream, struct rmax_stream_config *config)
 
doca_error_t rmax_stream_start (struct rmax_program_state *state)
 
doca_error_t rmax_stream_allocate_buf (struct rmax_program_state *state, struct doca_rmax_in_stream *stream, struct rmax_stream_config *config, struct doca_buf **buffer, uint16_t *stride_size)
 
void rmax_create_stream_cleanup (struct rmax_program_state *state, struct doca_rmax_in_stream *stream, struct doca_rmax_flow *flow, struct doca_buf *buf)
 

Function Documentation

◆ DOCA_LOG_REGISTER()

DOCA_LOG_REGISTER ( rmax_common  )

◆ dst_ip_callback()

static doca_error_t dst_ip_callback ( void *  param,
void *  config 
)
static

Definition at line 104 of file rmax_common.c.

◆ dst_port_callback()

static doca_error_t dst_port_callback ( void *  param,
void *  config 
)
static

Definition at line 84 of file rmax_common.c.

◆ free_callback()

static void free_callback ( void *  addr,
size_t  len,
void *  opaque 
)
static

Definition at line 200 of file rmax_common.c.

◆ pci_address_callback()

static doca_error_t pci_address_callback ( void *  param,
void *  config 
)
static

Definition at line 42 of file rmax_common.c.

◆ register_create_stream_params()

doca_error_t register_create_stream_params ( void  )

Definition at line 116 of file rmax_common.c.

◆ rmax_create_stream_cleanup()

void rmax_create_stream_cleanup ( struct rmax_program_state state,
struct doca_rmax_in_stream *  stream,
struct doca_rmax_flow *  flow,
struct doca_buf *  buf 
)

Definition at line 375 of file rmax_common.c.

◆ rmax_flow_set_attributes()

doca_error_t rmax_flow_set_attributes ( struct rmax_stream_config config,
struct doca_rmax_flow *  flow 
)

Definition at line 207 of file rmax_common.c.

◆ rmax_stream_allocate_buf()

doca_error_t rmax_stream_allocate_buf ( struct rmax_program_state state,
struct doca_rmax_in_stream *  stream,
struct rmax_stream_config config,
struct doca_buf **  buffer,
uint16_t *  stride_size 
)

Definition at line 284 of file rmax_common.c.

◆ rmax_stream_set_attributes()

doca_error_t rmax_stream_set_attributes ( struct doca_rmax_in_stream *  stream,
struct rmax_stream_config config 
)

Definition at line 226 of file rmax_common.c.

◆ rmax_stream_start()

doca_error_t rmax_stream_start ( struct rmax_program_state state)

Definition at line 267 of file rmax_common.c.

◆ src_ip_callback()

static doca_error_t src_ip_callback ( void *  param,
void *  config 
)
static

Definition at line 65 of file rmax_common.c.