FD.io VPP  v18.07-34-g55fbdb9
Vector Packet Processing
adj_l2.c File Reference
+ Include dependency graph for adj_l2.c:

Go to the source code of this file.

Data Structures

struct  adj_l2_trace_t_
 Trace data for a L2 Midchain. More...
 

Typedefs

typedef struct adj_l2_trace_t_ adj_l2_trace_t
 Trace data for a L2 Midchain. More...
 
typedef enum adj_l2_rewrite_next_t_ adj_l2_rewrite_next_t
 

Enumerations

enum  adj_l2_rewrite_next_t_ { ADJ_L2_REWRITE_NEXT_DROP }
 

Functions

static u8format_adj_l2_trace (u8 *s, va_list *args)
 
static uword adj_l2_rewrite_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int is_midchain)
 
static uword adj_l2_rewrite (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword adj_l2_midchain (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

vlib_node_registration_t adj_l2_rewrite_node
 (constructor) VLIB_REGISTER_NODE (adj_l2_rewrite_node) More...
 
vlib_node_registration_t adj_l2_midchain_node
 (constructor) VLIB_REGISTER_NODE (adj_l2_midchain_node) More...
 

Typedef Documentation

Trace data for a L2 Midchain.

Enumeration Type Documentation

Enumerator
ADJ_L2_REWRITE_NEXT_DROP 

Definition at line 42 of file adj_l2.c.

Function Documentation

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

Definition at line 164 of file adj_l2.c.

+ Here is the call graph for this function:

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

Definition at line 156 of file adj_l2.c.

+ Here is the call graph for this function:

static uword adj_l2_rewrite_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
int  is_midchain 
)
inlinestatic

Definition at line 48 of file adj_l2.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 30 of file adj_l2.c.

+ Here is the call graph for this function:

Variable Documentation

vlib_node_registration_t adj_l2_midchain_node
Initial value:
= {
.function = adj_l2_midchain,
.name = "adj-l2-midchain",
.vector_size = sizeof (u32),
.format_trace = format_adj_l2_trace,
.n_next_nodes = 1,
.next_nodes = {
[ADJ_L2_REWRITE_NEXT_DROP] = "error-drop",
},
}
unsigned int u32
Definition: types.h:88
static u8 * format_adj_l2_trace(u8 *s, va_list *args)
Definition: adj_l2.c:30
static uword adj_l2_midchain(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: adj_l2.c:164

(constructor) VLIB_REGISTER_NODE (adj_l2_midchain_node)

Definition at line 186 of file adj_l2.c.

vlib_node_registration_t adj_l2_rewrite_node
Initial value:
= {
.function = adj_l2_rewrite,
.name = "adj-l2-rewrite",
.vector_size = sizeof (u32),
.format_trace = format_adj_l2_trace,
.n_next_nodes = 1,
.next_nodes = {
[ADJ_L2_REWRITE_NEXT_DROP] = "error-drop",
},
}
unsigned int u32
Definition: types.h:88
static u8 * format_adj_l2_trace(u8 *s, va_list *args)
Definition: adj_l2.c:30
static uword adj_l2_rewrite(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: adj_l2.c:156

(constructor) VLIB_REGISTER_NODE (adj_l2_rewrite_node)

Definition at line 171 of file adj_l2.c.