FD.io VPP  v17.01.1-3-gc6833f8
Vector Packet Processing
l2t_l2.c File Reference
+ Include dependency graph for l2t_l2.c:

Go to the source code of this file.

Macros

#define foreach_l2t_l2_error   _(NETWORK_TO_USER, "L2 network to user (ip6) pkts")
 
#define NSTAGES   3
 

Enumerations

enum  l2t_l2_error_t { L2T_L2_N_ERROR }
 
enum  l2t_l2_next_t { L2T_L2_NEXT_DROP, L2T_L2_NEXT_ETHERNET_INPUT, L2T_L2_NEXT_IP6_LOOKUP, L2T_L2_N_NEXT }
 

Functions

static void stage0 (vlib_main_t *vm, vlib_node_runtime_t *node, u32 buffer_index)
 
static void stage1 (vlib_main_t *vm, vlib_node_runtime_t *node, u32 bi)
 
static u32 last_stage (vlib_main_t *vm, vlib_node_runtime_t *node, u32 bi)
 
static uword l2t_l2_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH (l2t_l2_node, l2t_l2_node_fn)
 

Variables

l2t_main_t l2t_main
 
static char * l2t_l2_error_strings []
 
vlib_node_registration_t l2t_l2_node
 (constructor) VLIB_REGISTER_NODE (l2t_l2_node) More...
 

Macro Definition Documentation

#define foreach_l2t_l2_error   _(NETWORK_TO_USER, "L2 network to user (ip6) pkts")

Definition at line 34 of file l2t_l2.c.

#define NSTAGES   3

Definition at line 64 of file l2t_l2.c.

Enumeration Type Documentation

Enumerator
L2T_L2_N_ERROR 

Definition at line 43 of file l2t_l2.c.

Enumerator
L2T_L2_NEXT_DROP 
L2T_L2_NEXT_ETHERNET_INPUT 
L2T_L2_NEXT_IP6_LOOKUP 
L2T_L2_N_NEXT 

Definition at line 54 of file l2t_l2.c.

Function Documentation

static uword l2t_l2_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 231 of file l2t_l2.c.

+ Here is the call graph for this function:

static u32 last_stage ( vlib_main_t vm,
vlib_node_runtime_t node,
u32  bi 
)
inlinestatic

Definition at line 126 of file l2t_l2.c.

+ Here is the call graph for this function:

static void stage0 ( vlib_main_t vm,
vlib_node_runtime_t node,
u32  buffer_index 
)
inlinestatic

Definition at line 67 of file l2t_l2.c.

+ Here is the call graph for this function:

static void stage1 ( vlib_main_t vm,
vlib_node_runtime_t node,
u32  bi 
)
inlinestatic

Definition at line 75 of file l2t_l2.c.

+ Here is the call graph for this function:

VLIB_NODE_FUNCTION_MULTIARCH ( l2t_l2_node  ,
l2t_l2_node_fn   
)

+ Here is the caller graph for this function:

Variable Documentation

char* l2t_l2_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_l2t_l2_error
Definition: l2t_l2.c:34

Definition at line 37 of file l2t_l2.c.

Initial value:
= {
.function = l2t_l2_node_fn,
.name = "l2t-l2-input",
.vector_size = sizeof (u32),
.format_trace = format_l2t_trace,
.error_strings = l2t_l2_error_strings,
.n_next_nodes = L2T_L2_N_NEXT,
.next_nodes = {
[L2T_L2_NEXT_IP6_LOOKUP] = "ip6-lookup",
[L2T_L2_NEXT_ETHERNET_INPUT] = "ethernet-input",
[L2T_L2_NEXT_DROP] = "error-drop",
},
}
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
static char * l2t_l2_error_strings[]
Definition: l2t_l2.c:37
u8 * format_l2t_trace(u8 *s, va_list *args)
Definition: l2tp.c:30
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static uword l2t_l2_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: l2t_l2.c:231

(constructor) VLIB_REGISTER_NODE (l2t_l2_node)

Definition at line 62 of file l2t_l2.c.

l2t_main_t l2t_main

Definition at line 31 of file l2t_l2.c.