FD.io VPP  v21.06
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)
 
VLIB_NODE_FN() l2_invtr_node (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 char * l2_invtr_error_strings []
 
vlib_node_registration_t l2_invtr_node
 (constructor) VLIB_REGISTER_NODE (l2_invtr_node) More...
 

Macro Definition Documentation

◆ foreach_l2_invtr_error

#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

◆ l2_invtr_error_t

Enumerator
L2_INVTR_N_ERROR 

Definition at line 68 of file l2_input_vtr.c.

◆ l2_invtr_next_t

Enumerator
L2_INVTR_NEXT_DROP 
L2_INVTR_N_NEXT 

Definition at line 82 of file l2_input_vtr.c.

Function Documentation

◆ format_l2_invtr_trace()

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:

◆ l2_invtr_init()

clib_error_t* l2_invtr_init ( vlib_main_t vm)

Definition at line 343 of file l2_input_vtr.c.

+ Here is the call graph for this function:

◆ l2_invtr_node()

VLIB_NODE_FN() l2_invtr_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 89 of file l2_input_vtr.c.

+ Here is the call graph for this function:

Variable Documentation

◆ l2_invtr_error_strings

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

l2_invtr_main_t l2_invtr_main

Definition at line 61 of file l2_input_vtr.c.

◆ l2_invtr_node

vlib_node_registration_t l2_invtr_node
Initial value:
= {
.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
unsigned int u32
Definition: types.h:88
static u8 * format_l2_invtr_trace(u8 *s, va_list *args)
Definition: l2_input_vtr.c:43
vl_api_fib_path_type_t type
Definition: fib_types.api:123
#define ARRAY_LEN(x)
Definition: clib.h:70

(constructor) VLIB_REGISTER_NODE (l2_invtr_node)

Definition at line 323 of file l2_input_vtr.c.