FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
gbp_vxlan_node.c File Reference
+ Include dependency graph for gbp_vxlan_node.c:

Go to the source code of this file.

Data Structures

struct  gbp_vxlan_trace_t_
 

Macros

#define foreach_gbp_vxlan_input_next
 
#define foreach_gbp_vxlan_error
 

Typedefs

typedef struct gbp_vxlan_trace_t_ gbp_vxlan_trace_t
 

Enumerations

enum  gbp_vxlan_input_next_t { GBP_VXLAN_INPUT_N_NEXT }
 
enum  gbp_vxlan_input_error_t { GBP_VXLAN_N_ERROR }
 

Functions

static uword gbp_vxlan_decap (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame, u8 is_ip4)
 
VLIB_NODE_FN() gbp_vxlan4_input_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static u8format_gbp_vxlan_rx_trace (u8 *s, va_list *args)
 

Variables

uwordgv_db
 DB of added tunnels. More...
 
static char * gbp_vxlan_error_strings []
 
vlib_node_registration_t gbp_vxlan4_input_node
 (constructor) VLIB_REGISTER_NODE (gbp_vxlan4_input_node) More...
 

Macro Definition Documentation

◆ foreach_gbp_vxlan_error

#define foreach_gbp_vxlan_error
Value:
_(DECAPPED, "decapped") \
_(LEARNED, "learned")

Definition at line 51 of file gbp_vxlan_node.c.

◆ foreach_gbp_vxlan_input_next

#define foreach_gbp_vxlan_input_next
Value:
_(DROP, "error-drop") \
_(L2_INPUT, "l2-input") \
_(IP4_INPUT, "ip4-input") \
_(IP6_INPUT, "ip6-input")

Definition at line 36 of file gbp_vxlan_node.c.

Typedef Documentation

◆ gbp_vxlan_trace_t

Enumeration Type Documentation

◆ gbp_vxlan_input_error_t

Enumerator
GBP_VXLAN_N_ERROR 

Definition at line 55 of file gbp_vxlan_node.c.

◆ gbp_vxlan_input_next_t

Enumerator
GBP_VXLAN_INPUT_N_NEXT 

Definition at line 42 of file gbp_vxlan_node.c.

Function Documentation

◆ format_gbp_vxlan_rx_trace()

static u8* format_gbp_vxlan_rx_trace ( u8 s,
va_list *  args 
)
static

Definition at line 182 of file gbp_vxlan_node.c.

+ Here is the call graph for this function:

◆ gbp_vxlan4_input_node()

VLIB_NODE_FN() gbp_vxlan4_input_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)

Definition at line 174 of file gbp_vxlan_node.c.

+ Here is the call graph for this function:

◆ gbp_vxlan_decap()

static uword gbp_vxlan_decap ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame,
u8  is_ip4 
)
static

Definition at line 70 of file gbp_vxlan_node.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ gbp_vxlan4_input_node

vlib_node_registration_t gbp_vxlan4_input_node
Initial value:
=
{
.name = "gbp-vxlan4",
.vector_size = sizeof (u32),
.n_errors = GBP_VXLAN_N_ERROR,
.error_strings = gbp_vxlan_error_strings,
.n_next_nodes = GBP_VXLAN_INPUT_N_NEXT,
.format_trace = format_gbp_vxlan_rx_trace,
.next_nodes = {
#define _(s,n)
},
}

(constructor) VLIB_REGISTER_NODE (gbp_vxlan4_input_node)

Definition at line 196 of file gbp_vxlan_node.c.

◆ gbp_vxlan_error_strings

char* gbp_vxlan_error_strings[]
static
Initial value:
= {
#define _(n,s)
}

Definition at line 63 of file gbp_vxlan_node.c.

◆ gv_db

uword* gv_db

DB of added tunnels.

Definition at line 41 of file gbp_vxlan.c.

DROP
DROP
Definition: error.def:41
foreach_gbp_vxlan_input_next
#define foreach_gbp_vxlan_input_next
Definition: gbp_vxlan_node.c:36
GBP_VXLAN_N_ERROR
@ GBP_VXLAN_N_ERROR
Definition: gbp_vxlan_node.c:60
GBP_VXLAN_INPUT_N_NEXT
@ GBP_VXLAN_INPUT_N_NEXT
Definition: gbp_vxlan_node.c:47
gbp_vxlan_error_strings
static char * gbp_vxlan_error_strings[]
Definition: gbp_vxlan_node.c:63
format_gbp_vxlan_rx_trace
static u8 * format_gbp_vxlan_rx_trace(u8 *s, va_list *args)
Definition: gbp_vxlan_node.c:182
u32
unsigned int u32
Definition: types.h:88
foreach_gbp_vxlan_error
#define foreach_gbp_vxlan_error
Definition: gbp_vxlan_node.c:51