FD.io VPP  v20.01-48-g3e0dafb74
Vector Packet Processing
lisp_gpe_api.c File Reference
+ Include dependency graph for lisp_gpe_api.c:

Go to the source code of this file.

Macros

#define vl_api_gpe_locator_pair_t_endian   vl_noop_handler
 
#define vl_api_gpe_locator_pair_t_print   vl_noop_handler
 
#define vl_api_gpe_add_del_fwd_entry_t_endian   vl_noop_handler
 
#define vl_api_gpe_add_del_fwd_entry_t_print   vl_noop_handler
 
#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
 

Functions

static locator_pair_tunformat_gpe_loc_pairs (void *locs, u32 rloc_num)
 
static int unformat_lisp_eid_api (gid_address_t *dst, u32 vni, u8 type, void *src, u8 len)
 
static void gpe_fwd_entry_path_dump_t_net_to_host (vl_api_gpe_fwd_entry_path_dump_t *mp)
 
static void lisp_api_set_locator (vl_api_gpe_locator_t *loc, const ip_address_t *addr, u8 weight)
 
static void vl_api_gpe_fwd_entry_path_dump_t_handler (vl_api_gpe_fwd_entry_path_dump_t *mp)
 
static void gpe_fwd_entries_copy (vl_api_gpe_fwd_entry_t *dst, lisp_api_gpe_fwd_entry_t *src)
 
static void gpe_fwd_entries_get_t_net_to_host (vl_api_gpe_fwd_entries_get_t *mp)
 
static void gpe_entry_t_host_to_net (vl_api_gpe_fwd_entry_t *e)
 
static void gpe_fwd_entries_get_reply_t_host_to_net (vl_api_gpe_fwd_entries_get_reply_t *mp)
 
static void vl_api_gpe_fwd_entry_vnis_get_t_handler (vl_api_gpe_fwd_entry_vnis_get_t *mp)
 
static void vl_api_gpe_fwd_entries_get_t_handler (vl_api_gpe_fwd_entries_get_t *mp)
 
static void gpe_add_del_fwd_entry_t_net_to_host (vl_api_gpe_add_del_fwd_entry_t *mp)
 
static void vl_api_gpe_add_del_fwd_entry_t_handler (vl_api_gpe_add_del_fwd_entry_t *mp)
 
static void vl_api_gpe_enable_disable_t_handler (vl_api_gpe_enable_disable_t *mp)
 
static void vl_api_gpe_add_del_iface_t_handler (vl_api_gpe_add_del_iface_t *mp)
 
static void vl_api_gpe_set_encap_mode_t_handler (vl_api_gpe_set_encap_mode_t *mp)
 
static void vl_api_gpe_get_encap_mode_t_handler (vl_api_gpe_get_encap_mode_t *mp)
 
static void vl_api_gpe_add_del_native_fwd_rpath_t_handler (vl_api_gpe_add_del_native_fwd_rpath_t *mp)
 
static void gpe_native_fwd_rpaths_copy (vl_api_gpe_native_fwd_rpath_t *dst, fib_route_path_t *src, u8 is_ip4)
 
static void gpe_native_fwd_rpath_t_host_to_net (vl_api_gpe_native_fwd_rpath_t *e)
 
static void gpe_native_fwd_rpaths_get_reply_t_host_to_net (vl_api_gpe_native_fwd_rpaths_get_reply_t *mp)
 
static void vl_api_gpe_native_fwd_rpaths_get_t_handler (vl_api_gpe_native_fwd_rpaths_get_t *mp)
 
static void setup_message_id_table (api_main_t *am)
 
static clib_error_tgpe_api_hookup (vlib_main_t *vm)
 
 VLIB_API_INIT_FUNCTION (gpe_api_hookup)
 

Macro Definition Documentation

◆ foreach_vpe_api_msg

#define foreach_vpe_api_msg
Value:
_(GPE_ADD_DEL_FWD_ENTRY, gpe_add_del_fwd_entry) \
_(GPE_FWD_ENTRIES_GET, gpe_fwd_entries_get) \
_(GPE_FWD_ENTRY_PATH_DUMP, gpe_fwd_entry_path_dump) \
_(GPE_ENABLE_DISABLE, gpe_enable_disable) \
_(GPE_ADD_DEL_IFACE, gpe_add_del_iface) \
_(GPE_FWD_ENTRY_VNIS_GET, gpe_fwd_entry_vnis_get) \
_(GPE_SET_ENCAP_MODE, gpe_set_encap_mode) \
_(GPE_GET_ENCAP_MODE, gpe_get_encap_mode) \
_(GPE_ADD_DEL_NATIVE_FWD_RPATH, gpe_add_del_native_fwd_rpath) \
_(GPE_NATIVE_FWD_RPATHS_GET, gpe_native_fwd_rpaths_get)

Definition at line 54 of file lisp_gpe_api.c.

◆ vl_api_gpe_add_del_fwd_entry_t_endian

#define vl_api_gpe_add_del_fwd_entry_t_endian   vl_noop_handler

Definition at line 35 of file lisp_gpe_api.c.

◆ vl_api_gpe_add_del_fwd_entry_t_print

#define vl_api_gpe_add_del_fwd_entry_t_print   vl_noop_handler

Definition at line 36 of file lisp_gpe_api.c.

◆ vl_api_gpe_locator_pair_t_endian

#define vl_api_gpe_locator_pair_t_endian   vl_noop_handler

Definition at line 33 of file lisp_gpe_api.c.

◆ vl_api_gpe_locator_pair_t_print

#define vl_api_gpe_locator_pair_t_print   vl_noop_handler

Definition at line 34 of file lisp_gpe_api.c.

◆ vl_endianfun

#define vl_endianfun   /* define message structures */

Definition at line 42 of file lisp_gpe_api.c.

◆ vl_msg_name_crc_list

#define vl_msg_name_crc_list

Definition at line 554 of file lisp_gpe_api.c.

◆ vl_print

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

Definition at line 47 of file lisp_gpe_api.c.

◆ vl_printfun

#define vl_printfun

Definition at line 48 of file lisp_gpe_api.c.

◆ vl_typedefs

#define vl_typedefs   /* define message structures */

Definition at line 38 of file lisp_gpe_api.c.

Function Documentation

◆ gpe_add_del_fwd_entry_t_net_to_host()

static void gpe_add_del_fwd_entry_t_net_to_host ( vl_api_gpe_add_del_fwd_entry_t mp)
static

Definition at line 319 of file lisp_gpe_api.c.

+ Here is the caller graph for this function:

◆ gpe_api_hookup()

static clib_error_t* gpe_api_hookup ( vlib_main_t vm)
static

Definition at line 567 of file lisp_gpe_api.c.

+ Here is the call graph for this function:

◆ gpe_entry_t_host_to_net()

static void gpe_entry_t_host_to_net ( vl_api_gpe_fwd_entry_t *  e)
static

Definition at line 246 of file lisp_gpe_api.c.

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

◆ gpe_fwd_entries_copy()

static void gpe_fwd_entries_copy ( vl_api_gpe_fwd_entry_t *  dst,
lisp_api_gpe_fwd_entry_t src 
)
static

Definition at line 195 of file lisp_gpe_api.c.

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

◆ gpe_fwd_entries_get_reply_t_host_to_net()

static void gpe_fwd_entries_get_reply_t_host_to_net ( vl_api_gpe_fwd_entries_get_reply_t mp)
static

Definition at line 255 of file lisp_gpe_api.c.

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

◆ gpe_fwd_entries_get_t_net_to_host()

static void gpe_fwd_entries_get_t_net_to_host ( vl_api_gpe_fwd_entries_get_t mp)
static

Definition at line 240 of file lisp_gpe_api.c.

+ Here is the caller graph for this function:

◆ gpe_fwd_entry_path_dump_t_net_to_host()

static void gpe_fwd_entry_path_dump_t_net_to_host ( vl_api_gpe_fwd_entry_path_dump_t mp)
static

Definition at line 128 of file lisp_gpe_api.c.

+ Here is the caller graph for this function:

◆ gpe_native_fwd_rpath_t_host_to_net()

static void gpe_native_fwd_rpath_t_host_to_net ( vl_api_gpe_native_fwd_rpath_t *  e)
static

Definition at line 500 of file lisp_gpe_api.c.

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

◆ gpe_native_fwd_rpaths_copy()

static void gpe_native_fwd_rpaths_copy ( vl_api_gpe_native_fwd_rpath_t *  dst,
fib_route_path_t src,
u8  is_ip4 
)
static

Definition at line 477 of file lisp_gpe_api.c.

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

◆ gpe_native_fwd_rpaths_get_reply_t_host_to_net()

static void gpe_native_fwd_rpaths_get_reply_t_host_to_net ( vl_api_gpe_native_fwd_rpaths_get_reply_t mp)
static

Definition at line 508 of file lisp_gpe_api.c.

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

◆ lisp_api_set_locator()

static void lisp_api_set_locator ( vl_api_gpe_locator_t *  loc,
const ip_address_t addr,
u8  weight 
)
static

Definition at line 134 of file lisp_gpe_api.c.

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

◆ setup_message_id_table()

static void setup_message_id_table ( api_main_t am)
static

Definition at line 559 of file lisp_gpe_api.c.

+ Here is the caller graph for this function:

◆ unformat_gpe_loc_pairs()

static locator_pair_t* unformat_gpe_loc_pairs ( void *  locs,
u32  rloc_num 
)
static

Definition at line 67 of file lisp_gpe_api.c.

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

◆ unformat_lisp_eid_api()

static int unformat_lisp_eid_api ( gid_address_t dst,
u32  vni,
u8  type,
void *  src,
u8  len 
)
static

Definition at line 95 of file lisp_gpe_api.c.

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

◆ vl_api_gpe_add_del_fwd_entry_t_handler()

static void vl_api_gpe_add_del_fwd_entry_t_handler ( vl_api_gpe_add_del_fwd_entry_t mp)
static

Definition at line 327 of file lisp_gpe_api.c.

+ Here is the call graph for this function:

◆ vl_api_gpe_add_del_iface_t_handler()

static void vl_api_gpe_add_del_iface_t_handler ( vl_api_gpe_add_del_iface_t mp)
static

Definition at line 385 of file lisp_gpe_api.c.

+ Here is the call graph for this function:

◆ vl_api_gpe_add_del_native_fwd_rpath_t_handler()

static void vl_api_gpe_add_del_native_fwd_rpath_t_handler ( vl_api_gpe_add_del_native_fwd_rpath_t mp)
static

Definition at line 444 of file lisp_gpe_api.c.

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

◆ vl_api_gpe_enable_disable_t_handler()

static void vl_api_gpe_enable_disable_t_handler ( vl_api_gpe_enable_disable_t mp)
static

Definition at line 372 of file lisp_gpe_api.c.

+ Here is the call graph for this function:

◆ vl_api_gpe_fwd_entries_get_t_handler()

static void vl_api_gpe_fwd_entries_get_t_handler ( vl_api_gpe_fwd_entries_get_t mp)
static

Definition at line 294 of file lisp_gpe_api.c.

+ Here is the call graph for this function:

◆ vl_api_gpe_fwd_entry_path_dump_t_handler()

static void vl_api_gpe_fwd_entry_path_dump_t_handler ( vl_api_gpe_fwd_entry_path_dump_t mp)
static

Definition at line 152 of file lisp_gpe_api.c.

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

◆ vl_api_gpe_fwd_entry_vnis_get_t_handler()

static void vl_api_gpe_fwd_entry_vnis_get_t_handler ( vl_api_gpe_fwd_entry_vnis_get_t mp)
static

Definition at line 269 of file lisp_gpe_api.c.

+ Here is the call graph for this function:

◆ vl_api_gpe_get_encap_mode_t_handler()

static void vl_api_gpe_get_encap_mode_t_handler ( vl_api_gpe_get_encap_mode_t mp)
static

Definition at line 429 of file lisp_gpe_api.c.

+ Here is the call graph for this function:

◆ vl_api_gpe_native_fwd_rpaths_get_t_handler()

static void vl_api_gpe_native_fwd_rpaths_get_t_handler ( vl_api_gpe_native_fwd_rpaths_get_t mp)
static

Definition at line 522 of file lisp_gpe_api.c.

+ Here is the call graph for this function:

◆ vl_api_gpe_set_encap_mode_t_handler()

static void vl_api_gpe_set_encap_mode_t_handler ( vl_api_gpe_set_encap_mode_t mp)
static

Definition at line 419 of file lisp_gpe_api.c.

+ Here is the call graph for this function:

◆ VLIB_API_INIT_FUNCTION()

VLIB_API_INIT_FUNCTION ( gpe_api_hookup  )
+ Here is the caller graph for this function: