FD.io VPP  v16.12-rc0-308-g931be3a
Vector Packet Processing
mpls_label_dpo.c File Reference
+ Include dependency graph for mpls_label_dpo.c:

Go to the source code of this file.

Data Structures

struct  mpls_label_imposition_trace_t_
 A struct to hold tracing information for the MPLS label imposition node. More...
 

Typedefs

typedef struct mpls_label_imposition_trace_t_ mpls_label_imposition_trace_t
 A struct to hold tracing information for the MPLS label imposition node. More...
 

Functions

static mpls_label_dpo_tmpls_label_dpo_alloc (void)
 
static index_t mpls_label_dpo_get_index (mpls_label_dpo_t *mld)
 
index_t mpls_label_dpo_create (mpls_label_t label, mpls_eos_bit_t eos, u8 ttl, u8 exp, const dpo_id_t *dpo)
 
u8format_mpls_label_dpo (u8 *s, va_list *args)
 
static void mpls_label_dpo_lock (dpo_id_t *dpo)
 
static void mpls_label_dpo_unlock (dpo_id_t *dpo)
 
static uword mpls_label_imposition (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static u8format_mpls_label_imposition_trace (u8 *s, va_list *args)
 
static void mpls_label_dpo_mem_show (void)
 
void mpls_label_dpo_module_init (void)
 

Variables

mpls_label_dpo_tmpls_label_dpo_pool
 
vlib_node_registration_t mpls_label_imposition_node
 (constructor) VLIB_REGISTER_NODE (mpls_label_imposition_node) More...
 
static const dpo_vft_t mld_vft
 
static const char *const mpls_label_imp_ip4_nodes []
 
static const char *const mpls_label_imp_ip6_nodes []
 
static const char *const mpls_label_imp_mpls_nodes []
 
static const char *const *const mpls_label_imp_nodes [DPO_PROTO_NUM]
 

Typedef Documentation

A struct to hold tracing information for the MPLS label imposition node.

Function Documentation

u8* format_mpls_label_dpo ( u8 s,
va_list *  args 
)

Definition at line 73 of file mpls_label_dpo.c.

+ Here is the call graph for this function:

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

Definition at line 200 of file mpls_label_dpo.c.

+ Here is the call graph for this function:

static mpls_label_dpo_t* mpls_label_dpo_alloc ( void  )
static

Definition at line 26 of file mpls_label_dpo.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

index_t mpls_label_dpo_create ( mpls_label_t  label,
mpls_eos_bit_t  eos,
u8  ttl,
u8  exp,
const dpo_id_t dpo 
)

Definition at line 45 of file mpls_label_dpo.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static index_t mpls_label_dpo_get_index ( mpls_label_dpo_t mld)
static

Definition at line 39 of file mpls_label_dpo.c.

+ Here is the caller graph for this function:

static void mpls_label_dpo_lock ( dpo_id_t dpo)
static

Definition at line 94 of file mpls_label_dpo.c.

+ Here is the call graph for this function:

static void mpls_label_dpo_mem_show ( void  )
static

Definition at line 232 of file mpls_label_dpo.c.

+ Here is the call graph for this function:

void mpls_label_dpo_module_init ( void  )

Definition at line 271 of file mpls_label_dpo.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void mpls_label_dpo_unlock ( dpo_id_t dpo)
static

Definition at line 104 of file mpls_label_dpo.c.

+ Here is the call graph for this function:

static uword mpls_label_imposition ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)
inlinestatic

Definition at line 132 of file mpls_label_dpo.c.

+ Here is the call graph for this function:

Variable Documentation

const dpo_vft_t mld_vft
static
Initial value:
= {
.dv_lock = mpls_label_dpo_lock,
.dv_unlock = mpls_label_dpo_unlock,
.dv_format = format_mpls_label_dpo,
.dv_mem_show = mpls_label_dpo_mem_show,
}
u8 * format_mpls_label_dpo(u8 *s, va_list *args)
static void mpls_label_dpo_lock(dpo_id_t *dpo)
static void mpls_label_dpo_mem_show(void)
static void mpls_label_dpo_unlock(dpo_id_t *dpo)

Definition at line 240 of file mpls_label_dpo.c.

mpls_label_dpo_t* mpls_label_dpo_pool

Definition at line 23 of file mpls_label_dpo.c.

const char* const mpls_label_imp_ip4_nodes[]
static
Initial value:
=
{
"mpls-label-imposition",
}
#define NULL
Definition: clib.h:55

Definition at line 247 of file mpls_label_dpo.c.

const char* const mpls_label_imp_ip6_nodes[]
static
Initial value:
=
{
"mpls-label-imposition",
}
#define NULL
Definition: clib.h:55

Definition at line 252 of file mpls_label_dpo.c.

const char* const mpls_label_imp_mpls_nodes[]
static
Initial value:
=
{
"mpls-label-imposition",
}
#define NULL
Definition: clib.h:55

Definition at line 257 of file mpls_label_dpo.c.

const char* const* const mpls_label_imp_nodes[DPO_PROTO_NUM]
static
Initial value:
=
{
}
static const char *const mpls_label_imp_ip6_nodes[]
static const char *const mpls_label_imp_mpls_nodes[]
static const char *const mpls_label_imp_ip4_nodes[]

Definition at line 262 of file mpls_label_dpo.c.

vlib_node_registration_t mpls_label_imposition_node
Initial value:
= {
.function = mpls_label_imposition,
.name = "mpls-label-imposition",
.vector_size = sizeof (u32),
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
}
}
static uword mpls_label_imposition(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
unsigned int u32
Definition: types.h:88
static u8 * format_mpls_label_imposition_trace(u8 *s, va_list *args)

(constructor) VLIB_REGISTER_NODE (mpls_label_imposition_node)

Definition at line 218 of file mpls_label_dpo.c.