FD.io VPP  v19.08.1-401-g8e4ed521a
Vector Packet Processing
mpls_features.c File Reference
+ Include dependency graph for mpls_features.c:

Go to the source code of this file.

Functions

static u8format_mpls_drop_trace (u8 *s, va_list *args)
 
static void mpls_drop_trace (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword mpls_terminate (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int error_code)
 
VLIB_NODE_FN() mpls_punt_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() mpls_drop_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() mpls_not_enabled_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VNET_FEATURE_ARC_INIT (mpls_input, static)
 
 VNET_FEATURE_INIT (mpls_not_enabled, static)
 
 VNET_FEATURE_INIT (mpls_lookup, static)
 
 VNET_FEATURE_ARC_INIT (mpls_output, static)
 
 VNET_FEATURE_INIT (mpls_interface_output, static)
 
static clib_error_tmpls_sw_interface_add_del (vnet_main_t *vnm, u32 sw_if_index, u32 is_add)
 
 VNET_SW_INTERFACE_ADD_DEL_FUNCTION (mpls_sw_interface_add_del)
 

Variables

vlib_node_registration_t mpls_punt_node
 (constructor) VLIB_REGISTER_NODE (mpls_punt_node) More...
 
vlib_node_registration_t mpls_drop_node
 (constructor) VLIB_REGISTER_NODE (mpls_drop_node) More...
 
vlib_node_registration_t mpls_not_enabled_node
 (constructor) VLIB_REGISTER_NODE (mpls_not_enabled_node) More...
 

Function Documentation

◆ format_mpls_drop_trace()

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

Definition at line 21 of file mpls_features.c.

◆ mpls_drop_node()

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

Definition at line 98 of file mpls_features.c.

+ Here is the call graph for this function:

◆ mpls_drop_trace()

static void mpls_drop_trace ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 30 of file mpls_features.c.

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

◆ mpls_not_enabled_node()

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

Definition at line 116 of file mpls_features.c.

+ Here is the call graph for this function:

◆ mpls_punt_node()

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

Definition at line 80 of file mpls_features.c.

+ Here is the call graph for this function:

◆ mpls_sw_interface_add_del()

static clib_error_t* mpls_sw_interface_add_del ( vnet_main_t vnm,
u32  sw_if_index,
u32  is_add 
)
static

Definition at line 170 of file mpls_features.c.

+ Here is the call graph for this function:

◆ mpls_terminate()

static uword mpls_terminate ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
int  error_code 
)
inlinestatic

Definition at line 58 of file mpls_features.c.

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

◆ VNET_FEATURE_ARC_INIT() [1/2]

VNET_FEATURE_ARC_INIT ( mpls_input  ,
static   
)

◆ VNET_FEATURE_ARC_INIT() [2/2]

VNET_FEATURE_ARC_INIT ( mpls_output  ,
static   
)

◆ VNET_FEATURE_INIT() [1/3]

VNET_FEATURE_INIT ( mpls_not_enabled  ,
static   
)

◆ VNET_FEATURE_INIT() [2/3]

VNET_FEATURE_INIT ( mpls_lookup  ,
static   
)

◆ VNET_FEATURE_INIT() [3/3]

VNET_FEATURE_INIT ( mpls_interface_output  ,
static   
)

◆ VNET_SW_INTERFACE_ADD_DEL_FUNCTION()

VNET_SW_INTERFACE_ADD_DEL_FUNCTION ( mpls_sw_interface_add_del  )
+ Here is the caller graph for this function:

Variable Documentation

◆ mpls_drop_node

vlib_node_registration_t mpls_drop_node
Initial value:
= {
.name = "mpls-drop",
.vector_size = sizeof (u32),
.format_trace = format_mpls_drop_trace,
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}
static u8 * format_mpls_drop_trace(u8 *s, va_list *args)
Definition: mpls_features.c:21
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (mpls_drop_node)

Definition at line 105 of file mpls_features.c.

◆ mpls_not_enabled_node

vlib_node_registration_t mpls_not_enabled_node
Initial value:
= {
.name = "mpls-not-enabled",
.vector_size = sizeof (u32),
.format_trace = format_mpls_drop_trace,
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}
static u8 * format_mpls_drop_trace(u8 *s, va_list *args)
Definition: mpls_features.c:21
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (mpls_not_enabled_node)

Definition at line 123 of file mpls_features.c.

◆ mpls_punt_node

vlib_node_registration_t mpls_punt_node
Initial value:
= {
.name = "mpls-punt",
.vector_size = sizeof (u32),
.format_trace = format_mpls_drop_trace,
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-punt",
},
}
static u8 * format_mpls_drop_trace(u8 *s, va_list *args)
Definition: mpls_features.c:21
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (mpls_punt_node)

Definition at line 87 of file mpls_features.c.