FD.io VPP  v19.04.2-12-g66b1689
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

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

Definition at line 51 of file gbp_vxlan_node.c.

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

Definition at line 36 of file gbp_vxlan_node.c.

Typedef Documentation

Enumeration Type Documentation

Enumerator
GBP_VXLAN_N_ERROR 

Definition at line 55 of file gbp_vxlan_node.c.

Enumerator
GBP_VXLAN_INPUT_N_NEXT 

Definition at line 42 of file gbp_vxlan_node.c.

Function Documentation

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:

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:

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

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)
},
}
unsigned int u32
Definition: types.h:88
static char * gbp_vxlan_error_strings[]
static u8 * format_gbp_vxlan_rx_trace(u8 *s, va_list *args)
#define foreach_gbp_vxlan_input_next

(constructor) VLIB_REGISTER_NODE (gbp_vxlan4_input_node)

Definition at line 196 of file gbp_vxlan_node.c.

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

Definition at line 63 of file gbp_vxlan_node.c.

uword* gv_db

DB of added tunnels.

Definition at line 43 of file gbp_vxlan.c.