FD.io VPP  v18.01.2-1-g9b554f3
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)
 
static uword adj_nsh_rewrite (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword adj_nsh_midchain (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 43 of file adj_nsh.c.

Function Documentation

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

Definition at line 159 of file adj_nsh.c.

+ Here is the call graph for this function:

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

Definition at line 151 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 49 of file adj_nsh.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 31 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:
= {
.function = adj_nsh_midchain,
.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:31
static uword adj_nsh_midchain(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: adj_nsh.c:159
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (adj_nsh_midchain_node)

Definition at line 181 of file adj_nsh.c.

vlib_node_registration_t adj_nsh_rewrite_node
Initial value:
= {
.function = adj_nsh_rewrite,
.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:31
static uword adj_nsh_rewrite(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: adj_nsh.c:151
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (adj_nsh_rewrite_node)

Definition at line 166 of file adj_nsh.c.

nsh_main_dummy_t nsh_main_dummy

Definition at line 20 of file adj_nsh.c.