NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
stream_receive_perf_core.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <stdnoreturn.h>
#include <unistd.h>
#include <doca_buf.h>
#include <doca_buf_inventory.h>
#include <doca_dev.h>
#include <doca_mmap.h>
#include <doca_pe.h>
#include <doca_rmax.h>
Include dependency graph for stream_receive_perf_core.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  app_config
 
struct  globals
 
struct  stream_data
 

Macros

#define APP_NAME   "doca_stream_receive_perf"
 
#define MAX_BUFFERS   2 /* Maximum number of buffers allowed */
 

Enumerations

enum  scatter_type { SCATTER_TYPE_RAW , SCATTER_TYPE_ULP }
 
enum  timestamp_format { TIMESTAMP_FORMAT_RAW_COUNTER , TIMESTAMP_FORMAT_FREE_RUNNING , TIMESTAMP_FORMAT_PTP_SYNCED }
 

Functions

bool init_config (struct app_config *config)
 
void destroy_config (struct app_config *config)
 
bool register_argp_params (void)
 
bool mandatory_args_set (struct app_config *config)
 
void list_devices (void)
 
struct doca_dev * open_device (struct in_addr *dev_ip)
 
doca_error_t init_globals (struct app_config *config, struct doca_dev *dev, struct globals *globals)
 
bool destroy_globals (struct globals *globals, struct doca_dev *dev)
 
doca_error_t init_stream (struct app_config *config, struct doca_dev *dev, struct globals *globals, struct stream_data *data)
 
bool destroy_stream (struct doca_dev *dev, struct globals *globals, struct stream_data *data)
 
bool run_recv_loop (const struct app_config *config, struct globals *globals, struct stream_data *data)
 

Macro Definition Documentation

◆ APP_NAME

#define APP_NAME   "doca_stream_receive_perf"

Definition at line 41 of file stream_receive_perf_core.h.

◆ MAX_BUFFERS

#define MAX_BUFFERS   2 /* Maximum number of buffers allowed */

Definition at line 42 of file stream_receive_perf_core.h.

Enumeration Type Documentation

◆ scatter_type

Enumerator
SCATTER_TYPE_RAW 
SCATTER_TYPE_ULP 

Definition at line 45 of file stream_receive_perf_core.h.

◆ timestamp_format

Enumerator
TIMESTAMP_FORMAT_RAW_COUNTER 
TIMESTAMP_FORMAT_FREE_RUNNING 
TIMESTAMP_FORMAT_PTP_SYNCED 

Definition at line 51 of file stream_receive_perf_core.h.

Function Documentation

◆ destroy_config()

void destroy_config ( struct app_config config)

Definition at line 94 of file stream_receive_perf_core.c.

◆ destroy_globals()

bool destroy_globals ( struct globals globals,
struct doca_dev *  dev 
)

Definition at line 936 of file stream_receive_perf_core.c.

◆ destroy_stream()

bool destroy_stream ( struct doca_dev *  dev,
struct globals globals,
struct stream_data data 
)

Definition at line 1172 of file stream_receive_perf_core.c.

◆ init_config()

bool init_config ( struct app_config config)

Definition at line 67 of file stream_receive_perf_core.c.

◆ init_globals()

doca_error_t init_globals ( struct app_config config,
struct doca_dev *  dev,
struct globals globals 
)

Definition at line 894 of file stream_receive_perf_core.c.

◆ init_stream()

doca_error_t init_stream ( struct app_config config,
struct doca_dev *  dev,
struct globals globals,
struct stream_data data 
)

Definition at line 966 of file stream_receive_perf_core.c.

◆ list_devices()

void list_devices ( void  )

Definition at line 765 of file stream_receive_perf_core.c.

◆ mandatory_args_set()

bool mandatory_args_set ( struct app_config config)

Definition at line 742 of file stream_receive_perf_core.c.

◆ open_device()

struct doca_dev* open_device ( struct in_addr *  dev_ip)

Definition at line 843 of file stream_receive_perf_core.c.

◆ register_argp_params()

bool register_argp_params ( void  )

Register parameters for command-line arguments parser

Returns
: DOCA_SUCCESS on success and DOCA error otherwise

Definition at line 462 of file stream_receive_perf_core.c.

◆ run_recv_loop()

bool run_recv_loop ( const struct app_config config,
struct globals globals,
struct stream_data data 
)

Definition at line 1291 of file stream_receive_perf_core.c.