NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
flow_mark_set_sample.c File Reference
#include <string.h>
#include <unistd.h>
#include <doca_log.h>
#include <doca_flow.h>
#include <doca_bitfield.h>
#include "flow_common.h"
#include <rte_byteorder.h>
#include <rte_ethdev.h>
#include <rte_mempool.h>
#include <rte_mbuf.h>
#include <rte_net.h>
#include "flow_mark_set.h"
Include dependency graph for flow_mark_set_sample.c:

Go to the source code of this file.

Macros

#define MAX_PKTS   16
 
#define WAIT_SECS   15
 

Functions

 DOCA_LOG_REGISTER (FLOW_MARK_SET)
 
static doca_error_t create_match_pipe (struct doca_flow_port *port, struct doca_flow_pipe **pipe, struct doca_flow_pipe *fwd_pipe, struct mark_set_config *app_cfg)
 
static doca_error_t add_match_pipe_entry (struct doca_flow_pipe *pipe, struct entries_status *status, struct mark_set_config *app_cfg)
 
static doca_error_t create_rss_pipe (struct doca_flow_port *port, struct doca_flow_pipe **pipe)
 
static doca_error_t add_rss_pipe_entry (struct doca_flow_pipe *pipe, struct entries_status *status)
 
static void handle_rx_tx_pkts (uint32_t port_id, uint16_t nb_queues)
 
doca_error_t flow_mark_set (int nb_queues, struct mark_set_config *app_cfg)
 

Macro Definition Documentation

◆ MAX_PKTS

#define MAX_PKTS   16

Definition at line 43 of file flow_mark_set_sample.c.

◆ WAIT_SECS

#define WAIT_SECS   15

Definition at line 44 of file flow_mark_set_sample.c.

Function Documentation

◆ add_match_pipe_entry()

static doca_error_t add_match_pipe_entry ( struct doca_flow_pipe *  pipe,
struct entries_status status,
struct mark_set_config app_cfg 
)
static

Definition at line 104 of file flow_mark_set_sample.c.

◆ add_rss_pipe_entry()

static doca_error_t add_rss_pipe_entry ( struct doca_flow_pipe *  pipe,
struct entries_status status 
)
static

Definition at line 188 of file flow_mark_set_sample.c.

◆ create_match_pipe()

static doca_error_t create_match_pipe ( struct doca_flow_port *  port,
struct doca_flow_pipe **  pipe,
struct doca_flow_pipe *  fwd_pipe,
struct mark_set_config app_cfg 
)
static

Definition at line 46 of file flow_mark_set_sample.c.

◆ create_rss_pipe()

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

Definition at line 131 of file flow_mark_set_sample.c.

◆ DOCA_LOG_REGISTER()

DOCA_LOG_REGISTER ( FLOW_MARK_SET  )

◆ flow_mark_set()

doca_error_t flow_mark_set ( int  nb_queues,
struct mark_set_config app_cfg 
)

Definition at line 252 of file flow_mark_set_sample.c.

◆ handle_rx_tx_pkts()

static void handle_rx_tx_pkts ( uint32_t  port_id,
uint16_t  nb_queues 
)
static

Definition at line 207 of file flow_mark_set_sample.c.