FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
mpls_lookup.c File Reference
+ Include dependency graph for mpls_lookup.c:

Go to the source code of this file.

Data Structures

struct  mpls_lookup_trace_t
 
struct  mpls_load_balance_trace_t
 

Macros

#define mpls_error(n, s)   s,
 

Functions

static u8format_mpls_lookup_trace (u8 *s, va_list *args)
 
VLIB_NODE_FN() mpls_lookup_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static u8format_mpls_load_balance_trace (u8 *s, va_list *args)
 
VLIB_NODE_FN() mpls_load_balance_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static clib_error_tmpls_lookup_init (vlib_main_t *vm)
 

Variables

u32 mpls_lookup_to_replicate_edge
 The arc/edge from the MPLS lookup node to the MPLS replicate node. More...
 
static char * mpls_error_strings []
 
vlib_node_registration_t mpls_lookup_node
 (constructor) VLIB_REGISTER_NODE (mpls_lookup_node) More...
 
vlib_node_registration_t mpls_load_balance_node
 (constructor) VLIB_REGISTER_NODE (mpls_load_balance_node) More...
 

Macro Definition Documentation

◆ mpls_error

#define mpls_error (   n,
 
)    s,

Function Documentation

◆ format_mpls_load_balance_trace()

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

Definition at line 484 of file mpls_lookup.c.

◆ format_mpls_lookup_trace()

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

Definition at line 40 of file mpls_lookup.c.

+ Here is the call graph for this function:

◆ mpls_load_balance_node()

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

Definition at line 495 of file mpls_lookup.c.

+ Here is the call graph for this function:

◆ mpls_lookup_init()

static clib_error_t* mpls_lookup_init ( vlib_main_t vm)
static

Definition at line 714 of file mpls_lookup.c.

+ Here is the call graph for this function:

◆ mpls_lookup_node()

VLIB_NODE_FN() mpls_lookup_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)

Definition at line 56 of file mpls_lookup.c.

+ Here is the call graph for this function:

Variable Documentation

◆ mpls_error_strings

char* mpls_error_strings[]
static
Initial value:
= {
#define mpls_error(n,s)
}

Definition at line 457 of file mpls_lookup.c.

◆ mpls_load_balance_node

vlib_node_registration_t mpls_load_balance_node
Initial value:
= {
.name = "mpls-load-balance",
.vector_size = sizeof (u32),
.n_next_nodes = 1,
.next_nodes =
{
[MPLS_LOOKUP_NEXT_DROP] = "mpls-drop",
},
}

(constructor) VLIB_REGISTER_NODE (mpls_load_balance_node)

Definition at line 699 of file mpls_lookup.c.

◆ mpls_lookup_node

vlib_node_registration_t mpls_lookup_node
Initial value:
= {
.name = "mpls-lookup",
.vector_size = sizeof (u32),
.n_errors = MPLS_N_ERROR,
.error_strings = mpls_error_strings,
.sibling_of = "mpls-load-balance",
.format_buffer = format_mpls_header,
.format_trace = format_mpls_lookup_trace,
.unformat_buffer = unformat_mpls_header,
}

(constructor) VLIB_REGISTER_NODE (mpls_lookup_node)

Definition at line 463 of file mpls_lookup.c.

◆ mpls_lookup_to_replicate_edge

u32 mpls_lookup_to_replicate_edge

The arc/edge from the MPLS lookup node to the MPLS replicate node.

Definition at line 28 of file mpls_lookup.c.

format_mpls_lookup_trace
static u8 * format_mpls_lookup_trace(u8 *s, va_list *args)
Definition: mpls_lookup.c:40
format_mpls_header
format_function_t format_mpls_header
Definition: mpls.h:72
u32
unsigned int u32
Definition: types.h:88
MPLS_LOOKUP_NEXT_DROP
@ MPLS_LOOKUP_NEXT_DROP
Definition: mpls_lookup.h:35
MPLS_N_ERROR
@ MPLS_N_ERROR
Definition: mpls.h:31
mpls_error_strings
static char * mpls_error_strings[]
Definition: mpls_lookup.c:457
format_mpls_load_balance_trace
static u8 * format_mpls_load_balance_trace(u8 *s, va_list *args)
Definition: mpls_lookup.c:484
unformat_mpls_header
unformat_function_t unformat_mpls_header
Definition: mpls.h:84