FD.io VPP  v20.05.1-6-gf53edbc3b
Vector Packet Processing
encap.c File Reference
+ Include dependency graph for encap.c:

Go to the source code of this file.

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

static uword geneve_encap_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame, u32 is_ip4)
 
VLIB_NODE_FN() geneve4_encap_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
VLIB_NODE_FN() geneve6_encap_node (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

◆ foreach_fixed_header4_offset

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

Definition at line 46 of file encap.c.

◆ foreach_fixed_header6_offset

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

Definition at line 49 of file encap.c.

◆ foreach_geneve_encap_error

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

Definition at line 23 of file encap.c.

Enumeration Type Documentation

◆ geneve_encap_error_t

Enumerator
GENEVE_ENCAP_N_ERROR 

Definition at line 32 of file encap.c.

◆ geneve_encap_next_t

Enumerator
GENEVE_ENCAP_NEXT_DROP 
GENEVE_ENCAP_N_NEXT 

Definition at line 40 of file encap.c.

Function Documentation

◆ geneve4_encap_node()

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

Definition at line 533 of file encap.c.

+ Here is the call graph for this function:

◆ geneve6_encap_node()

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

Definition at line 540 of file encap.c.

+ Here is the call graph for this function:

◆ geneve_encap_inline()

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 53 of file encap.c.

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

Variable Documentation

◆ geneve4_encap_node

vlib_node_registration_t geneve4_encap_node
Initial value:
= {
.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: geneve.c:42
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
#define ARRAY_LEN(x)
Definition: clib.h:66
static char * geneve_encap_error_strings[]
Definition: encap.c:26

(constructor) VLIB_REGISTER_NODE (geneve4_encap_node)

Definition at line 548 of file encap.c.

◆ geneve6_encap_node

vlib_node_registration_t geneve6_encap_node
Initial value:
= {
.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: geneve.c:42
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
#define ARRAY_LEN(x)
Definition: clib.h:66
static char * geneve_encap_error_strings[]
Definition: encap.c:26

(constructor) VLIB_REGISTER_NODE (geneve6_encap_node)

Definition at line 561 of file encap.c.

◆ geneve_encap_error_strings

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.