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  geneve_encap_trace_t
 

Macros

#define foreach_geneve_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  geneve_encap_error_t { GENEVE_ENCAP_N_ERROR }
 
enum  geneve_encap_next_t { GENEVE_ENCAP_NEXT_DROP, GENEVE_ENCAP_N_NEXT }
 

Functions

u8format_geneve_encap_trace (u8 *s, va_list *args)
 
static uword geneve_encap_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame, u32 is_ip4)
 
static uword geneve4_encap (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static uword geneve6_encap (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 

Variables

static char * geneve_encap_error_strings []
 
vlib_node_registration_t geneve4_encap_node
 (constructor) VLIB_REGISTER_NODE (geneve4_encap_node) More...
 
vlib_node_registration_t geneve6_encap_node
 (constructor) VLIB_REGISTER_NODE (geneve6_encap_node) More...
 

Macro Definition Documentation

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

Definition at line 65 of file encap.c.

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

Definition at line 68 of file encap.c.

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

Definition at line 23 of file encap.c.

Enumeration Type Documentation

Enumerator
GENEVE_ENCAP_N_ERROR 

Definition at line 32 of file encap.c.

Enumerator
GENEVE_ENCAP_NEXT_DROP 
GENEVE_ENCAP_N_NEXT 

Definition at line 40 of file encap.c.

Function Documentation

u8* format_geneve_encap_trace ( u8 s,
va_list *  args 
)

Definition at line 53 of file encap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 547 of file encap.c.

+ Here is the call graph for this function:

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

Definition at line 554 of file encap.c.

+ Here is the call graph for this function:

static uword geneve_encap_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame,
u32  is_ip4 
)
inlinestatic

Definition at line 72 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 geneve4_encap_node
Initial value:
= {
.function = geneve4_encap,
.name = "geneve4-encap",
.vector_size = sizeof (u32),
.format_trace = format_geneve_encap_trace,
.error_strings = geneve_encap_error_strings,
.n_next_nodes = GENEVE_ENCAP_N_NEXT,
.next_nodes = {
[GENEVE_ENCAP_NEXT_DROP] = "error-drop",
},
}
u8 * format_geneve_encap_trace(u8 *s, va_list *args)
Definition: encap.c:53
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static uword geneve4_encap(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: encap.c:547
static char * geneve_encap_error_strings[]
Definition: encap.c:26

(constructor) VLIB_REGISTER_NODE (geneve4_encap_node)

Definition at line 561 of file encap.c.

vlib_node_registration_t geneve6_encap_node
Initial value:
= {
.function = geneve6_encap,
.name = "geneve6-encap",
.vector_size = sizeof (u32),
.format_trace = format_geneve_encap_trace,
.error_strings = geneve_encap_error_strings,
.n_next_nodes = GENEVE_ENCAP_N_NEXT,
.next_nodes = {
[GENEVE_ENCAP_NEXT_DROP] = "error-drop",
},
}
u8 * format_geneve_encap_trace(u8 *s, va_list *args)
Definition: encap.c:53
static uword geneve6_encap(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: encap.c:554
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static char * geneve_encap_error_strings[]
Definition: encap.c:26

(constructor) VLIB_REGISTER_NODE (geneve6_encap_node)

Definition at line 577 of file encap.c.

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

Definition at line 26 of file encap.c.