NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
flow_vxlan_encap_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 dependency graph for flow_vxlan_encap_sample.c:

Go to the source code of this file.

Functions

 DOCA_LOG_REGISTER (FLOW_VXLAN_ENCAP)
 
static doca_error_t create_classifier_pipe (struct doca_flow_port *port, struct doca_flow_pipe *match_pipe, struct doca_flow_pipe **pipe)
 
static doca_error_t create_match_pipe (struct doca_flow_port *port, int port_id, struct doca_flow_pipe **pipe)
 
static doca_error_t create_vxlan_encap_pipe (struct doca_flow_port *port, int port_id, enum doca_flow_tun_ext_vxlan_type vxlan_type, struct doca_flow_pipe **pipe)
 
static doca_error_t add_classifier_pipe_entry (struct doca_flow_pipe *pipe, struct entries_status *status)
 
static doca_error_t add_match_pipe_entry (struct doca_flow_pipe *pipe, struct entries_status *status)
 
static doca_error_t add_vxlan_encap_pipe_entry (struct doca_flow_pipe *pipe, enum doca_flow_tun_ext_vxlan_type vxlan_type, struct entries_status *status)
 
doca_error_t flow_vxlan_encap (int nb_queues, enum doca_flow_tun_ext_vxlan_type vxlan_type)
 

Function Documentation

◆ add_classifier_pipe_entry()

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

Definition at line 258 of file flow_vxlan_encap_sample.c.

◆ add_match_pipe_entry()

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

Definition at line 275 of file flow_vxlan_encap_sample.c.

◆ add_vxlan_encap_pipe_entry()

static doca_error_t add_vxlan_encap_pipe_entry ( struct doca_flow_pipe *  pipe,
enum doca_flow_tun_ext_vxlan_type  vxlan_type,
struct entries_status status 
)
static

Definition at line 314 of file flow_vxlan_encap_sample.c.

◆ create_classifier_pipe()

static doca_error_t create_classifier_pipe ( struct doca_flow_port *  port,
struct doca_flow_pipe *  match_pipe,
struct doca_flow_pipe **  pipe 
)
static

Definition at line 45 of file flow_vxlan_encap_sample.c.

◆ create_match_pipe()

static doca_error_t create_match_pipe ( struct doca_flow_port *  port,
int  port_id,
struct doca_flow_pipe **  pipe 
)
static

Definition at line 93 of file flow_vxlan_encap_sample.c.

◆ create_vxlan_encap_pipe()

static doca_error_t create_vxlan_encap_pipe ( struct doca_flow_port *  port,
int  port_id,
enum doca_flow_tun_ext_vxlan_type  vxlan_type,
struct doca_flow_pipe **  pipe 
)
static

Definition at line 161 of file flow_vxlan_encap_sample.c.

◆ DOCA_LOG_REGISTER()

DOCA_LOG_REGISTER ( FLOW_VXLAN_ENCAP  )

◆ flow_vxlan_encap()

doca_error_t flow_vxlan_encap ( int  nb_queues,
enum doca_flow_tun_ext_vxlan_type  vxlan_type 
)

Definition at line 387 of file flow_vxlan_encap_sample.c.