FD.io VPP  v19.04-6-g6f05f72
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_fib_dump_table_walk_ctx_t_
 

Macros

#define vl_typedefs   /* define message structures */
 
#define vl_endianfun   /* define message structures */
 
#define vl_print(handle, ...)   vlib_cli_output (handle, __VA_ARGS__)
 
#define vl_printfun
 
#define foreach_vpe_api_msg
 
#define vl_msg_name_crc_list
 

Typedefs

typedef struct mpls_tunnel_send_walk_ctx_t_ mpls_tunnel_send_walk_ctx_t
 
typedef struct vl_api_mpls_fib_dump_table_walk_ctx_t_ vl_api_mpls_fib_dump_table_walk_ctx_t
 

Functions

void stats_dslock_with_hint (int hint, int tag)
 
void stats_dsunlock (void)
 
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_fib_details (vpe_api_main_t *am, vl_api_registration_t *reg, const fib_table_t *table, const fib_prefix_t *pfx, fib_route_path_encode_t *api_rpaths, u32 context)
 
static fib_table_walk_rc_t vl_api_mpls_fib_dump_table_walk (fib_node_index_t fei, void *arg)
 
static void vl_api_mpls_fib_dump_t_handler (vl_api_mpls_fib_dump_t *mp)
 
static void setup_message_id_table (api_main_t *am)
 
static clib_error_tmpls_api_hookup (vlib_main_t *vm)
 
 VLIB_API_INIT_FUNCTION (mpls_api_hookup)
 

Macro Definition Documentation

#define foreach_vpe_api_msg
Value:
_(MPLS_IP_BIND_UNBIND, mpls_ip_bind_unbind) \
_(MPLS_ROUTE_ADD_DEL, mpls_route_add_del) \
_(MPLS_TABLE_ADD_DEL, mpls_table_add_del) \
_(MPLS_TUNNEL_ADD_DEL, mpls_tunnel_add_del) \
_(MPLS_TUNNEL_DUMP, mpls_tunnel_dump) \
_(SW_INTERFACE_SET_MPLS_ENABLE, sw_interface_set_mpls_enable) \
_(MPLS_FIB_DUMP, mpls_fib_dump)

Definition at line 50 of file mpls_api.c.

#define vl_endianfun   /* define message structures */

Definition at line 38 of file mpls_api.c.

#define vl_msg_name_crc_list

Definition at line 595 of file mpls_api.c.

#define vl_print (   handle,
  ... 
)    vlib_cli_output (handle, __VA_ARGS__)

Definition at line 43 of file mpls_api.c.

#define vl_printfun

Definition at line 44 of file mpls_api.c.

#define vl_typedefs   /* define message structures */

Definition at line 34 of file mpls_api.c.

Typedef Documentation

Function Documentation

static clib_error_t* mpls_api_hookup ( vlib_main_t vm)
static

Definition at line 608 of file mpls_api.c.

+ Here is the call graph for this function:

static int mpls_ip_bind_unbind_handler ( vnet_main_t vnm,
vl_api_mpls_ip_bind_unbind_t mp 
)
static

Definition at line 106 of file mpls_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 170 of file mpls_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 285 of file mpls_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void mpls_table_delete ( u32  table_id,
u8  is_api 
)

Definition at line 63 of file mpls_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void send_mpls_fib_details ( vpe_api_main_t am,
vl_api_registration_t reg,
const fib_table_t table,
const fib_prefix_t pfx,
fib_route_path_encode_t api_rpaths,
u32  context 
)
static

Definition at line 493 of file mpls_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 434 of file mpls_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void setup_message_id_table ( api_main_t am)
static

Definition at line 600 of file mpls_api.c.

+ Here is the caller graph for this function:

void stats_dslock_with_hint ( int  hint,
int  tag 
)

Definition at line 377 of file interface_api.c.

+ Here is the caller graph for this function:

void stats_dsunlock ( void  )

Definition at line 383 of file interface_api.c.

+ Here is the caller graph for this function:

static void vl_api_mpls_fib_dump_t_handler ( vl_api_mpls_fib_dump_t mp)
static

Definition at line 545 of file mpls_api.c.

+ Here is the call graph for this function:

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

Definition at line 535 of file mpls_api.c.

void vl_api_mpls_ip_bind_unbind_t_handler ( vl_api_mpls_ip_bind_unbind_t mp)

Definition at line 154 of file mpls_api.c.

+ Here is the call graph for this function:

void vl_api_mpls_route_add_del_t_handler ( vl_api_mpls_route_add_del_t mp)

Definition at line 264 of file mpls_api.c.

+ Here is the call graph for this function:

void vl_api_mpls_table_add_del_t_handler ( vl_api_mpls_table_add_del_t mp)

Definition at line 86 of file mpls_api.c.

+ Here is the call graph for this function:

static void vl_api_mpls_tunnel_add_del_t_handler ( vl_api_mpls_tunnel_add_del_t mp)
static

Definition at line 312 of file mpls_api.c.

+ Here is the call graph for this function:

static void vl_api_mpls_tunnel_dump_t_handler ( vl_api_mpls_tunnel_dump_t mp)
static

Definition at line 476 of file mpls_api.c.

+ Here is the call graph for this function:

static void vl_api_sw_interface_set_mpls_enable_t_handler ( vl_api_sw_interface_set_mpls_enable_t mp)
static

Definition at line 411 of file mpls_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VLIB_API_INIT_FUNCTION ( mpls_api_hookup  )

+ Here is the caller graph for this function: