FD.io VPP  v18.01.2-1-g9b554f3
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")
 
#define foreach_fixed_header4_offset   _(0) _(1) _(2) _(3)
 
#define foreach_fixed_header6_offset   _(0) _(1) _(2) _(3) _(4) _(5) _(6)
 

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, u8 csum_offload)
 
static uword vxlan4_encap (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static uword vxlan6_encap (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

#define foreach_fixed_header4_offset   _(0) _(1) _(2) _(3)

Definition at line 62 of file encap.c.

#define foreach_fixed_header6_offset   _(0) _(1) _(2) _(3) _(4) _(5) _(6)

Definition at line 65 of file encap.c.

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

Definition at line 23 of file encap.c.

Enumeration Type Documentation

Enumerator
VXLAN_ENCAP_N_ERROR 

Definition at line 32 of file encap.c.

Enumerator
VXLAN_ENCAP_NEXT_DROP 
VXLAN_ENCAP_N_NEXT 

Definition at line 39 of file encap.c.

Function Documentation

u8* format_vxlan_encap_trace ( u8 s,
va_list *  args 
)

Definition at line 49 of file encap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword vxlan4_encap ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)
static

Definition at line 571 of file encap.c.

+ Here is the call graph for this function:

static uword vxlan6_encap ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)
static

Definition at line 582 of file encap.c.

+ Here is the call graph for this function:

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

Definition at line 69 of file encap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

vlib_node_registration_t vxlan4_encap_node
Initial value:
= {
.function = vxlan4_encap,
.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",
},
}
static char * vxlan_encap_error_strings[]
Definition: encap.c:26
u8 * format_vxlan_encap_trace(u8 *s, va_list *args)
Definition: encap.c:49
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static uword vxlan4_encap(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: encap.c:571

(constructor) VLIB_REGISTER_NODE (vxlan4_encap_node)

Definition at line 591 of file encap.c.

vlib_node_registration_t vxlan6_encap_node
Initial value:
= {
.function = vxlan6_encap,
.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",
},
}
static char * vxlan_encap_error_strings[]
Definition: encap.c:26
u8 * format_vxlan_encap_trace(u8 *s, va_list *args)
Definition: encap.c:49
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static uword vxlan6_encap(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: encap.c:582

(constructor) VLIB_REGISTER_NODE (vxlan6_encap_node)

Definition at line 607 of file encap.c.

char* vxlan_encap_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_vxlan_encap_error
Definition: encap.c:23

Definition at line 26 of file encap.c.