FD.io VPP  v19.01.3-6-g70449b9b9
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

◆ adj_gpe_rewrite_next_t

◆ adj_nsh_trace_t

Trace data for a NSH Midchain.

Enumeration Type Documentation

◆ adj_nsh_rewrite_next_t_

Enumerator
ADJ_NSH_REWRITE_NEXT_DROP 

Definition at line 43 of file adj_nsh.c.

Function Documentation

◆ adj_nsh_midchain()

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

Definition at line 161 of file adj_nsh.c.

+ Here is the call graph for this function:

◆ adj_nsh_rewrite()

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

Definition at line 153 of file adj_nsh.c.

+ Here is the call graph for this function:

◆ adj_nsh_rewrite_inline()

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:

◆ format_adj_nsh_trace()

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()

VNET_FEATURE_ARC_INIT ( nsh_output  ,
static   
)

◆ VNET_FEATURE_INIT()

VNET_FEATURE_INIT ( nsh_tx_drop  ,
static   
)

Variable Documentation

◆ adj_nsh_midchain_node

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

(constructor) VLIB_REGISTER_NODE (adj_nsh_midchain_node)

Definition at line 183 of file adj_nsh.c.

◆ adj_nsh_rewrite_node

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
unsigned int u32
Definition: types.h:88
static uword adj_nsh_rewrite(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: adj_nsh.c:153

(constructor) VLIB_REGISTER_NODE (adj_nsh_rewrite_node)

Definition at line 168 of file adj_nsh.c.

◆ nsh_main_dummy

nsh_main_dummy_t nsh_main_dummy

Definition at line 20 of file adj_nsh.c.