FD.io VPP  v21.06-3-gbb25fbf28
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_gbp_encap_trace_t
 

Macros

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

Enumerations

enum  vxlan_gbp_encap_error_t { VXLAN_GBP_ENCAP_N_ERROR }
 
enum  vxlan_gbp_encap_next_t { VXLAN_GBP_ENCAP_NEXT_DROP, VXLAN_GBP_ENCAP_N_NEXT }
 

Functions

u8format_vxlan_gbp_encap_trace (u8 *s, va_list *args)
 
static uword vxlan_gbp_encap_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame, u8 is_ip4, u8 csum_offload)
 
VLIB_NODE_FN() vxlan4_gbp_encap_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
VLIB_NODE_FN() vxlan6_gbp_encap_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 

Variables

static char * vxlan_gbp_encap_error_strings []
 
vlib_node_registration_t vxlan4_gbp_encap_node
 (constructor) VLIB_REGISTER_NODE (vxlan4_gbp_encap_node) More...
 
vlib_node_registration_t vxlan6_gbp_encap_node
 (constructor) VLIB_REGISTER_NODE (vxlan6_gbp_encap_node) More...
 

Macro Definition Documentation

◆ foreach_vxlan_gbp_encap_error

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

Definition at line 26 of file encap.c.

Enumeration Type Documentation

◆ vxlan_gbp_encap_error_t

Enumerator
VXLAN_GBP_ENCAP_N_ERROR 

Definition at line 35 of file encap.c.

◆ vxlan_gbp_encap_next_t

Enumerator
VXLAN_GBP_ENCAP_NEXT_DROP 
VXLAN_GBP_ENCAP_N_NEXT 

Definition at line 43 of file encap.c.

Function Documentation

◆ format_vxlan_gbp_encap_trace()

u8* format_vxlan_gbp_encap_trace ( u8 s,
va_list *  args 
)

Definition at line 59 of file encap.c.

+ Here is the call graph for this function:

◆ vxlan4_gbp_encap_node()

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

Definition at line 546 of file encap.c.

+ Here is the call graph for this function:

◆ vxlan6_gbp_encap_node()

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

Definition at line 556 of file encap.c.

+ Here is the call graph for this function:

◆ vxlan_gbp_encap_inline()

static uword vxlan_gbp_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 75 of file encap.c.

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

Variable Documentation

◆ vxlan4_gbp_encap_node

vlib_node_registration_t vxlan4_gbp_encap_node
Initial value:
=
{
.name = "vxlan4-gbp-encap",
.vector_size = sizeof (u32),
.n_next_nodes = VXLAN_GBP_ENCAP_N_NEXT,
.next_nodes = {
[VXLAN_GBP_ENCAP_NEXT_DROP] = "error-drop",
},
}

(constructor) VLIB_REGISTER_NODE (vxlan4_gbp_encap_node)

Definition at line 566 of file encap.c.

◆ vxlan6_gbp_encap_node

vlib_node_registration_t vxlan6_gbp_encap_node
Initial value:
=
{
.name = "vxlan6-gbp-encap",
.vector_size = sizeof (u32),
.n_next_nodes = VXLAN_GBP_ENCAP_N_NEXT,
.next_nodes = {
[VXLAN_GBP_ENCAP_NEXT_DROP] = "error-drop",
},
}

(constructor) VLIB_REGISTER_NODE (vxlan6_gbp_encap_node)

Definition at line 580 of file encap.c.

◆ vxlan_gbp_encap_error_strings

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

Definition at line 29 of file encap.c.

format_vxlan_gbp_encap_trace
u8 * format_vxlan_gbp_encap_trace(u8 *s, va_list *args)
Definition: encap.c:59
VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
foreach_vxlan_gbp_encap_error
#define foreach_vxlan_gbp_encap_error
Definition: encap.c:26
ARRAY_LEN
#define ARRAY_LEN(x)
Definition: clib.h:70
VXLAN_GBP_ENCAP_N_NEXT
@ VXLAN_GBP_ENCAP_N_NEXT
Definition: encap.c:46
u32
unsigned int u32
Definition: types.h:88
vxlan_gbp_encap_error_strings
static char * vxlan_gbp_encap_error_strings[]
Definition: encap.c:29
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123
VXLAN_GBP_ENCAP_NEXT_DROP
@ VXLAN_GBP_ENCAP_NEXT_DROP
Definition: encap.c:45