FD.io VPP  v19.08-23-g4b943d6
Vector Packet Processing
adj_nsh.c File Reference
+ Include dependency graph for adj_nsh.c:

Go to the source code of this file.

Data Structures

struct  adj_nsh_trace_t_
 Trace data for a NSH Midchain. More...
 

Typedefs

typedef struct adj_nsh_trace_t_ adj_nsh_trace_t
 Trace data for a NSH Midchain. More...
 
typedef enum adj_nsh_rewrite_next_t_ adj_gpe_rewrite_next_t
 

Enumerations

enum  adj_nsh_rewrite_next_t_ { ADJ_NSH_REWRITE_NEXT_DROP }
 

Functions

static u8format_adj_nsh_trace (u8 *s, va_list *args)
 
static uword adj_nsh_rewrite_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int is_midchain)
 
VLIB_NODE_FN() adj_nsh_rewrite_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() adj_nsh_midchain_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VNET_FEATURE_ARC_INIT (nsh_output, static)
 
 VNET_FEATURE_INIT (nsh_tx_drop, static)
 

Variables

nsh_main_dummy_t nsh_main_dummy
 
vlib_node_registration_t adj_nsh_rewrite_node
 (constructor) VLIB_REGISTER_NODE (adj_nsh_rewrite_node) More...
 
vlib_node_registration_t adj_nsh_midchain_node
 (constructor) VLIB_REGISTER_NODE (adj_nsh_midchain_node) More...
 

Typedef Documentation

Trace data for a NSH Midchain.

Enumeration Type Documentation

Enumerator
ADJ_NSH_REWRITE_NEXT_DROP 

Definition at line 45 of file adj_nsh.c.

Function Documentation

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

Definition at line 161 of file adj_nsh.c.

+ Here is the call graph for this function:

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

Definition at line 51 of file adj_nsh.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 154 of file adj_nsh.c.

+ Here is the call graph for this function:

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

Definition at line 33 of file adj_nsh.c.

+ Here is the call graph for this function:

VNET_FEATURE_ARC_INIT ( nsh_output  ,
static   
)
VNET_FEATURE_INIT ( nsh_tx_drop  ,
static   
)

Variable Documentation

vlib_node_registration_t adj_nsh_midchain_node
Initial value:
= {
.name = "adj-nsh-midchain",
.vector_size = sizeof (u32),
.format_trace = format_adj_nsh_trace,
.n_next_nodes = 1,
.next_nodes = {
[ADJ_NSH_REWRITE_NEXT_DROP] = "error-drop",
},
}
static u8 * format_adj_nsh_trace(u8 *s, va_list *args)
Definition: adj_nsh.c:33
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (adj_nsh_midchain_node)

Definition at line 180 of file adj_nsh.c.

vlib_node_registration_t adj_nsh_rewrite_node
Initial value:
= {
.name = "adj-nsh-rewrite",
.vector_size = sizeof (u32),
.format_trace = format_adj_nsh_trace,
.n_next_nodes = 1,
.next_nodes = {
[ADJ_NSH_REWRITE_NEXT_DROP] = "error-drop",
},
}
static u8 * format_adj_nsh_trace(u8 *s, va_list *args)
Definition: adj_nsh.c:33
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (adj_nsh_rewrite_node)

Definition at line 168 of file adj_nsh.c.

nsh_main_dummy_t nsh_main_dummy

Definition at line 21 of file adj_nsh.c.