FD.io VPP  v17.04.2-2-ga8f93f8
Vector Packet Processing
l2_input_vtr.c File Reference
+ Include dependency graph for l2_input_vtr.c:

Go to the source code of this file.

Data Structures

struct  l2_invtr_trace_t
 

Macros

#define foreach_l2_invtr_error
 

Enumerations

enum  l2_invtr_error_t { L2_INVTR_N_ERROR }
 
enum  l2_invtr_next_t { L2_INVTR_NEXT_DROP, L2_INVTR_N_NEXT }
 

Functions

static u8format_l2_invtr_trace (u8 *s, va_list *args)
 
static uword l2_invtr_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
clib_error_tl2_invtr_init (vlib_main_t *vm)
 

Variables

l2_invtr_main_t l2_invtr_main
 
static vlib_node_registration_t l2_invtr_node
 (constructor) VLIB_REGISTER_NODE (l2_invtr_node) More...
 
static char * l2_invtr_error_strings []
 

Macro Definition Documentation

#define foreach_l2_invtr_error
Value:
_(L2_INVTR, "L2 inverter packets") \
_(DROP, "L2 input tag rewrite drops")
DROP
Definition: error.def:41

Definition at line 64 of file l2_input_vtr.c.

Enumeration Type Documentation

Enumerator
L2_INVTR_N_ERROR 

Definition at line 68 of file l2_input_vtr.c.

Enumerator
L2_INVTR_NEXT_DROP 
L2_INVTR_N_NEXT 

Definition at line 82 of file l2_input_vtr.c.

Function Documentation

static u8* format_l2_invtr_trace ( u8 s,
va_list *  args 
)
static

Definition at line 43 of file l2_input_vtr.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* l2_invtr_init ( vlib_main_t vm)

Definition at line 375 of file l2_input_vtr.c.

+ Here is the call graph for this function:

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

Definition at line 90 of file l2_input_vtr.c.

+ Here is the call graph for this function:

Variable Documentation

char* l2_invtr_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_l2_invtr_error
Definition: l2_input_vtr.c:64

Definition at line 76 of file l2_input_vtr.c.

l2_invtr_main_t l2_invtr_main

Definition at line 60 of file l2_input_vtr.c.

static vlib_node_registration_t l2_invtr_node
static
Initial value:
= {
.function = l2_invtr_node_fn,
.name = "l2-input-vtr",
.vector_size = sizeof (u32),
.format_trace = format_l2_invtr_trace,
.error_strings = l2_invtr_error_strings,
.n_next_nodes = L2_INVTR_N_NEXT,
.next_nodes = {
[L2_INVTR_NEXT_DROP] = "error-drop",
},
}
static char * l2_invtr_error_strings[]
Definition: l2_input_vtr.c:76
static u8 * format_l2_invtr_trace(u8 *s, va_list *args)
Definition: l2_input_vtr.c:43
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static uword l2_invtr_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: l2_input_vtr.c:90

(constructor) VLIB_REGISTER_NODE (l2_invtr_node)

Definition at line 62 of file l2_input_vtr.c.