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

Go to the source code of this file.

Data Structures

struct  vxlan_encap_trace_t
 

Macros

#define foreach_vxlan_encap_error   _(ENCAPSULATED, "good packets encapsulated")
 

Enumerations

enum  vxlan_encap_error_t { VXLAN_ENCAP_N_ERROR }
 
enum  vxlan_encap_next_t { VXLAN_ENCAP_NEXT_DROP, VXLAN_ENCAP_N_NEXT }
 

Functions

u8format_vxlan_encap_trace (u8 *s, va_list *args)
 
static uword vxlan_encap_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame, u8 is_ip4)
 
VLIB_NODE_FN() vxlan4_encap_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
VLIB_NODE_FN() vxlan6_encap_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 

Variables

static char * vxlan_encap_error_strings []
 
vlib_node_registration_t vxlan4_encap_node
 (constructor) VLIB_REGISTER_NODE (vxlan4_encap_node) More...
 
vlib_node_registration_t vxlan6_encap_node
 (constructor) VLIB_REGISTER_NODE (vxlan6_encap_node) More...
 

Macro Definition Documentation

◆ foreach_vxlan_encap_error

#define foreach_vxlan_encap_error   _(ENCAPSULATED, "good packets encapsulated")

Definition at line 27 of file encap.c.

Enumeration Type Documentation

◆ vxlan_encap_error_t

Enumerator
VXLAN_ENCAP_N_ERROR 

Definition at line 36 of file encap.c.

◆ vxlan_encap_next_t

Enumerator
VXLAN_ENCAP_NEXT_DROP 
VXLAN_ENCAP_N_NEXT 

Definition at line 44 of file encap.c.

Function Documentation

◆ format_vxlan_encap_trace()

u8* format_vxlan_encap_trace ( u8 s,
va_list *  args 
)

Definition at line 58 of file encap.c.

◆ vxlan4_encap_node()

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

Definition at line 489 of file encap.c.

+ Here is the call graph for this function:

◆ vxlan6_encap_node()

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

Definition at line 498 of file encap.c.

+ Here is the call graph for this function:

◆ vxlan_encap_inline()

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

Definition at line 71 of file encap.c.

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

Variable Documentation

◆ vxlan4_encap_node

vlib_node_registration_t vxlan4_encap_node
Initial value:
= {
.name = "vxlan4-encap",
.vector_size = sizeof (u32),
.format_trace = format_vxlan_encap_trace,
.error_strings = vxlan_encap_error_strings,
.n_next_nodes = VXLAN_ENCAP_N_NEXT,
.next_nodes = {
[VXLAN_ENCAP_NEXT_DROP] = "error-drop",
},
}

(constructor) VLIB_REGISTER_NODE (vxlan4_encap_node)

Definition at line 507 of file encap.c.

◆ vxlan6_encap_node

vlib_node_registration_t vxlan6_encap_node
Initial value:
= {
.name = "vxlan6-encap",
.vector_size = sizeof (u32),
.format_trace = format_vxlan_encap_trace,
.error_strings = vxlan_encap_error_strings,
.n_next_nodes = VXLAN_ENCAP_N_NEXT,
.next_nodes = {
[VXLAN_ENCAP_NEXT_DROP] = "error-drop",
},
}

(constructor) VLIB_REGISTER_NODE (vxlan6_encap_node)

Definition at line 520 of file encap.c.

◆ vxlan_encap_error_strings

char* vxlan_encap_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}

Definition at line 30 of file encap.c.

VXLAN_ENCAP_NEXT_DROP
@ VXLAN_ENCAP_NEXT_DROP
Definition: encap.c:46
VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
format_vxlan_encap_trace
u8 * format_vxlan_encap_trace(u8 *s, va_list *args)
Definition: encap.c:58
ARRAY_LEN
#define ARRAY_LEN(x)
Definition: clib.h:70
u32
unsigned int u32
Definition: types.h:88
VXLAN_ENCAP_N_NEXT
@ VXLAN_ENCAP_N_NEXT
Definition: encap.c:47
vxlan_encap_error_strings
static char * vxlan_encap_error_strings[]
Definition: encap.c:30
foreach_vxlan_encap_error
#define foreach_vxlan_encap_error
Definition: encap.c:27
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123