NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
flow_vxlan_shared_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_shared_encap_sample.c:

Go to the source code of this file.

Macros

#define ENCAP_RESOURCE_NUM   2
 

Functions

 DOCA_LOG_REGISTER (FLOW_VXLAN_SHARED_ENCAP)
 
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_shared_encap_pipe (struct doca_flow_port *port, int port_id, struct doca_flow_pipe **pipe)
 
static doca_error_t add_match_pipe_entry (struct doca_flow_pipe *pipe, struct entries_status *status)
 
static doca_error_t add_vxlan_shared_encap_pipe_entry (struct doca_flow_pipe *pipe, uint16_t port_id, struct entries_status *status)
 
static void create_encap_action (struct doca_flow_encap_action *encap, uint32_t id)
 
static int create_shared_resource_encap (void)
 
int bind_shared_resource_encap (struct doca_flow_port *port, uint16_t port_id)
 
doca_error_t flow_vxlan_shared_encap (int nb_queues)
 

Macro Definition Documentation

◆ ENCAP_RESOURCE_NUM

#define ENCAP_RESOURCE_NUM   2

Definition at line 37 of file flow_vxlan_shared_encap_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 
)
static

Definition at line 185 of file flow_vxlan_shared_encap_sample.c.

◆ add_vxlan_shared_encap_pipe_entry()

static doca_error_t add_vxlan_shared_encap_pipe_entry ( struct doca_flow_pipe *  pipe,
uint16_t  port_id,
struct entries_status status 
)
static

Definition at line 224 of file flow_vxlan_shared_encap_sample.c.

◆ bind_shared_resource_encap()

int bind_shared_resource_encap ( struct doca_flow_port *  port,
uint16_t  port_id 
)

Definition at line 317 of file flow_vxlan_shared_encap_sample.c.

◆ create_encap_action()

static void create_encap_action ( struct doca_flow_encap_action encap,
uint32_t  id 
)
static

Definition at line 258 of file flow_vxlan_shared_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 47 of file flow_vxlan_shared_encap_sample.c.

◆ create_shared_resource_encap()

static int create_shared_resource_encap ( void  )
static

Definition at line 291 of file flow_vxlan_shared_encap_sample.c.

◆ create_vxlan_shared_encap_pipe()

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

Definition at line 114 of file flow_vxlan_shared_encap_sample.c.

◆ DOCA_LOG_REGISTER()

DOCA_LOG_REGISTER ( FLOW_VXLAN_SHARED_ENCAP  )

◆ flow_vxlan_shared_encap()

doca_error_t flow_vxlan_shared_encap ( int  nb_queues)

Definition at line 344 of file flow_vxlan_shared_encap_sample.c.