FD.io VPP  v19.04.4-rc0-5-ge88582fac
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)
 
VLIB_NODE_FN() adj_l2_rewrite_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() adj_l2_midchain_node (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

◆ adj_l2_rewrite_next_t

◆ adj_l2_trace_t

Trace data for a L2 Midchain.

Enumeration Type Documentation

◆ adj_l2_rewrite_next_t_

Enumerator
ADJ_L2_REWRITE_NEXT_DROP 

Definition at line 42 of file adj_l2.c.

Function Documentation

◆ adj_l2_midchain_node()

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

Definition at line 162 of file adj_l2.c.

+ Here is the call graph for this function:

◆ adj_l2_rewrite_inline()

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:

◆ adj_l2_rewrite_node()

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

Definition at line 155 of file adj_l2.c.

+ Here is the call graph for this function:

◆ format_adj_l2_trace()

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

◆ adj_l2_midchain_node

vlib_node_registration_t adj_l2_midchain_node
Initial value:
= {
.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

(constructor) VLIB_REGISTER_NODE (adj_l2_midchain_node)

Definition at line 181 of file adj_l2.c.

◆ adj_l2_rewrite_node

vlib_node_registration_t adj_l2_rewrite_node
Initial value:
= {
.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

(constructor) VLIB_REGISTER_NODE (adj_l2_rewrite_node)

Definition at line 169 of file adj_l2.c.