FD.io VPP  v20.05.1-6-gf53edbc3b
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

◆ 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 45 of file adj_nsh.c.

Function Documentation

◆ adj_nsh_midchain_node()

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:

◆ 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 51 of file adj_nsh.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ adj_nsh_rewrite_node()

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:

◆ format_adj_nsh_trace()

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

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:
= {
.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.

◆ adj_nsh_rewrite_node

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

nsh_main_dummy_t nsh_main_dummy

Definition at line 21 of file adj_nsh.c.