FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
mpls_api.c File Reference
+ Include dependency graph for mpls_api.c:

Go to the source code of this file.

Data Structures

struct  mpls_tunnel_send_walk_ctx_t_
 
struct  vl_api_mpls_route_dump_table_walk_ctx_t_
 

Macros

#define REPLY_MSG_ID_BASE   mpls_main.msg_id_base
 

Typedefs

typedef struct mpls_tunnel_send_walk_ctx_t_ mpls_tunnel_send_walk_ctx_t
 
typedef struct vl_api_mpls_route_dump_table_walk_ctx_t_ vl_api_mpls_route_dump_table_walk_ctx_t
 

Functions

void mpls_table_delete (u32 table_id, u8 is_api)
 
void vl_api_mpls_table_add_del_t_handler (vl_api_mpls_table_add_del_t *mp)
 
static int mpls_ip_bind_unbind_handler (vnet_main_t *vnm, vl_api_mpls_ip_bind_unbind_t *mp)
 
void vl_api_mpls_ip_bind_unbind_t_handler (vl_api_mpls_ip_bind_unbind_t *mp)
 
static int mpls_route_add_del_t_handler (vnet_main_t *vnm, vl_api_mpls_route_add_del_t *mp, u32 *stats_index)
 
void vl_api_mpls_route_add_del_t_handler (vl_api_mpls_route_add_del_t *mp)
 
void mpls_table_create (u32 table_id, u8 is_api, const u8 *name)
 
static void vl_api_mpls_tunnel_add_del_t_handler (vl_api_mpls_tunnel_add_del_t *mp)
 
static void vl_api_sw_interface_set_mpls_enable_t_handler (vl_api_sw_interface_set_mpls_enable_t *mp)
 
static void send_mpls_tunnel_entry (u32 mti, void *arg)
 
static void vl_api_mpls_tunnel_dump_t_handler (vl_api_mpls_tunnel_dump_t *mp)
 
static void send_mpls_table_details (vpe_api_main_t *am, vl_api_registration_t *reg, u32 context, const fib_table_t *table)
 
static void vl_api_mpls_table_dump_t_handler (vl_api_mpls_table_dump_t *mp)
 
static void send_mpls_route_details (vpe_api_main_t *am, vl_api_registration_t *reg, u32 context, fib_node_index_t fib_entry_index)
 
static fib_table_walk_rc_t vl_api_mpls_route_dump_table_walk (fib_node_index_t fei, void *arg)
 
static void vl_api_mpls_route_dump_t_handler (vl_api_mpls_route_dump_t *mp)
 
static clib_error_tmpls_api_hookup (vlib_main_t *vm)
 
 VLIB_API_INIT_FUNCTION (mpls_api_hookup)
 

Macro Definition Documentation

◆ REPLY_MSG_ID_BASE

#define REPLY_MSG_ID_BASE   mpls_main.msg_id_base

Definition at line 37 of file mpls_api.c.

Typedef Documentation

◆ mpls_tunnel_send_walk_ctx_t

◆ vl_api_mpls_route_dump_table_walk_ctx_t

Function Documentation

◆ mpls_api_hookup()

static clib_error_t* mpls_api_hookup ( vlib_main_t vm)
static

Definition at line 512 of file mpls_api.c.

+ Here is the call graph for this function:

◆ mpls_ip_bind_unbind_handler()

static int mpls_ip_bind_unbind_handler ( vnet_main_t vnm,
vl_api_mpls_ip_bind_unbind_t mp 
)
static

Definition at line 85 of file mpls_api.c.

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

◆ mpls_route_add_del_t_handler()

static int mpls_route_add_del_t_handler ( vnet_main_t vnm,
vl_api_mpls_route_add_del_t mp,
u32 stats_index 
)
static

Definition at line 132 of file mpls_api.c.

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

◆ mpls_table_create()

void mpls_table_create ( u32  table_id,
u8  is_api,
const u8 name 
)

Definition at line 211 of file mpls_api.c.

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

◆ mpls_table_delete()

void mpls_table_delete ( u32  table_id,
u8  is_api 
)

Definition at line 41 of file mpls_api.c.

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

◆ send_mpls_route_details()

static void send_mpls_route_details ( vpe_api_main_t am,
vl_api_registration_t reg,
u32  context,
fib_node_index_t  fib_entry_index 
)
static

Definition at line 421 of file mpls_api.c.

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

◆ send_mpls_table_details()

static void send_mpls_table_details ( vpe_api_main_t am,
vl_api_registration_t reg,
u32  context,
const fib_table_t table 
)
static

Definition at line 381 of file mpls_api.c.

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

◆ send_mpls_tunnel_entry()

static void send_mpls_tunnel_entry ( u32  mti,
void *  arg 
)
static

Definition at line 314 of file mpls_api.c.

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

◆ vl_api_mpls_ip_bind_unbind_t_handler()

void vl_api_mpls_ip_bind_unbind_t_handler ( vl_api_mpls_ip_bind_unbind_t mp)

Definition at line 116 of file mpls_api.c.

+ Here is the call graph for this function:

◆ vl_api_mpls_route_add_del_t_handler()

void vl_api_mpls_route_add_del_t_handler ( vl_api_mpls_route_add_del_t mp)

Definition at line 190 of file mpls_api.c.

+ Here is the call graph for this function:

◆ vl_api_mpls_route_dump_t_handler()

static void vl_api_mpls_route_dump_t_handler ( vl_api_mpls_route_dump_t mp)
static

Definition at line 477 of file mpls_api.c.

+ Here is the call graph for this function:

◆ vl_api_mpls_route_dump_table_walk()

static fib_table_walk_rc_t vl_api_mpls_route_dump_table_walk ( fib_node_index_t  fei,
void *  arg 
)
static

Definition at line 467 of file mpls_api.c.

+ Here is the caller graph for this function:

◆ vl_api_mpls_table_add_del_t_handler()

void vl_api_mpls_table_add_del_t_handler ( vl_api_mpls_table_add_del_t mp)

Definition at line 64 of file mpls_api.c.

+ Here is the call graph for this function:

◆ vl_api_mpls_table_dump_t_handler()

static void vl_api_mpls_table_dump_t_handler ( vl_api_mpls_table_dump_t mp)
static

Definition at line 401 of file mpls_api.c.

+ Here is the call graph for this function:

◆ vl_api_mpls_tunnel_add_del_t_handler()

static void vl_api_mpls_tunnel_add_del_t_handler ( vl_api_mpls_tunnel_add_del_t mp)
static

Definition at line 238 of file mpls_api.c.

+ Here is the call graph for this function:

◆ vl_api_mpls_tunnel_dump_t_handler()

static void vl_api_mpls_tunnel_dump_t_handler ( vl_api_mpls_tunnel_dump_t mp)
static

Definition at line 364 of file mpls_api.c.

+ Here is the call graph for this function:

◆ vl_api_sw_interface_set_mpls_enable_t_handler()

static void vl_api_sw_interface_set_mpls_enable_t_handler ( vl_api_sw_interface_set_mpls_enable_t mp)
static

Definition at line 291 of file mpls_api.c.

+ Here is the call graph for this function:

◆ VLIB_API_INIT_FUNCTION()

VLIB_API_INIT_FUNCTION ( mpls_api_hookup  )