NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
flow_switch_control_pipe_sample.c File Reference
#include <string.h>
#include <unistd.h>
#include <rte_byteorder.h>
#include <doca_flow.h>
#include <doca_log.h>
#include "flow_common.h"
#include "flow_switch_common.h"
Include dependency graph for flow_switch_control_pipe_sample.c:

Go to the source code of this file.

Macros

#define NB_ENTRIES   2 /* number of entries in the created control pipe */
 

Functions

 DOCA_LOG_REGISTER (FLOW_SWITCH_CONTROL_PIPE)
 
static doca_error_t create_control_pipe (struct doca_flow_port *port, struct doca_flow_pipe **pipe)
 
static doca_error_t add_control_pipe_entries (struct doca_flow_pipe *control_pipe, struct entries_status *status)
 
doca_error_t flow_switch_control_pipe (int nb_queues, struct flow_switch_ctx *ctx)
 

Variables

static struct doca_flow_pipe_entry * entries [NB_ENTRIES]
 

Macro Definition Documentation

◆ NB_ENTRIES

#define NB_ENTRIES   2 /* number of entries in the created control pipe */

Definition at line 39 of file flow_switch_control_pipe_sample.c.

Function Documentation

◆ add_control_pipe_entries()

static doca_error_t add_control_pipe_entries ( struct doca_flow_pipe *  control_pipe,
struct entries_status status 
)
static

Definition at line 80 of file flow_switch_control_pipe_sample.c.

◆ create_control_pipe()

static doca_error_t create_control_pipe ( struct doca_flow_port *  port,
struct doca_flow_pipe **  pipe 
)
static

Definition at line 50 of file flow_switch_control_pipe_sample.c.

◆ DOCA_LOG_REGISTER()

DOCA_LOG_REGISTER ( FLOW_SWITCH_CONTROL_PIPE  )

◆ flow_switch_control_pipe()

doca_error_t flow_switch_control_pipe ( int  nb_queues,
struct flow_switch_ctx ctx 
)

Definition at line 134 of file flow_switch_control_pipe_sample.c.

Variable Documentation

◆ entries

struct doca_flow_pipe_entry* entries[NB_ENTRIES]
static

Definition at line 41 of file flow_switch_control_pipe_sample.c.