FD.io VPP  v18.07.1-19-g511ce25
Vector Packet Processing
gbp_api.c File Reference
+ Include dependency graph for gbp_api.c:

Go to the source code of this file.

Data Structures

struct  gbp_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 vl_api_version(n, v)   static u32 api_version=(v);
 
#define foreach_gbp_api_msg
 
#define GBP_MSG_BASE   msg_id_base
 
#define vl_msg_name_crc_list
 

Typedefs

typedef struct gbp_walk_ctx_t_ gbp_walk_ctx_t
 

Functions

static void vl_api_gbp_endpoint_add_del_t_handler (vl_api_gbp_endpoint_add_del_t *mp)
 
static int gbp_endpoint_send_details (gbp_endpoint_t *gbpe, void *args)
 
static void vl_api_gbp_endpoint_dump_t_handler (vl_api_gbp_endpoint_dump_t *mp)
 
static void vl_api_gbp_endpoint_group_add_del_t_handler (vl_api_gbp_endpoint_group_add_del_t *mp)
 
static void vl_api_gbp_subnet_add_del_t_handler (vl_api_gbp_subnet_add_del_t *mp)
 
static int gbp_subnet_send_details (u32 table_id, const fib_prefix_t *pfx, u32 sw_if_index, epg_id_t epg, u8 is_internal, void *args)
 
static void vl_api_gbp_subnet_dump_t_handler (vl_api_gbp_subnet_dump_t *mp)
 
static int gbp_endpoint_group_send_details (gbp_endpoint_group_t *gepg, void *args)
 
static void vl_api_gbp_endpoint_group_dump_t_handler (vl_api_gbp_endpoint_group_dump_t *mp)
 
static void vl_api_gbp_recirc_add_del_t_handler (vl_api_gbp_recirc_add_del_t *mp)
 
static int gbp_recirc_send_details (gbp_recirc_t *gr, void *args)
 
static void vl_api_gbp_recirc_dump_t_handler (vl_api_gbp_recirc_dump_t *mp)
 
static void vl_api_gbp_contract_add_del_t_handler (vl_api_gbp_contract_add_del_t *mp)
 
static int gbp_contract_send_details (gbp_contract_t *gbpc, void *args)
 
static void vl_api_gbp_contract_dump_t_handler (vl_api_gbp_contract_dump_t *mp)
 
static void setup_message_id_table (api_main_t *am)
 
static void gbp_api_hookup (vlib_main_t *vm)
 
static clib_error_tgbp_init (vlib_main_t *vm)
 
 VLIB_API_INIT_FUNCTION (gbp_init)
 
 VLIB_PLUGIN_REGISTER ()
 

Variables

gbp_main_t gbp_main
 
static u16 msg_id_base
 

Macro Definition Documentation

#define foreach_gbp_api_msg
Value:
_(GBP_ENDPOINT_ADD_DEL, gbp_endpoint_add_del) \
_(GBP_ENDPOINT_DUMP, gbp_endpoint_dump) \
_(GBP_SUBNET_ADD_DEL, gbp_subnet_add_del) \
_(GBP_SUBNET_DUMP, gbp_subnet_dump) \
_(GBP_ENDPOINT_GROUP_ADD_DEL, gbp_endpoint_group_add_del) \
_(GBP_ENDPOINT_GROUP_DUMP, gbp_endpoint_group_dump) \
_(GBP_RECIRC_ADD_DEL, gbp_recirc_add_del) \
_(GBP_RECIRC_DUMP, gbp_recirc_dump) \
_(GBP_CONTRACT_ADD_DEL, gbp_contract_add_del) \
_(GBP_CONTRACT_DUMP, gbp_contract_dump)
int gbp_subnet_add_del(u32 table_id, const fib_prefix_t *pfx, u32 sw_if_index, epg_id_t epg, u8 is_add, u8 is_internal)
Definition: gbp_subnet.c:71

Definition at line 54 of file gbp_api.c.

#define GBP_MSG_BASE   msg_id_base

Definition at line 70 of file gbp_api.c.

#define vl_api_version (   n,
  v 
)    static u32 api_version=(v);

Definition at line 48 of file gbp_api.c.

#define vl_endianfun   /* define message structures */

Definition at line 37 of file gbp_api.c.

#define vl_msg_name_crc_list

Definition at line 446 of file gbp_api.c.

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

Definition at line 42 of file gbp_api.c.

#define vl_printfun

Definition at line 43 of file gbp_api.c.

#define vl_typedefs   /* define message structures */

Definition at line 33 of file gbp_api.c.

Typedef Documentation

Function Documentation

static void gbp_api_hookup ( vlib_main_t vm)
static

Definition at line 460 of file gbp_api.c.

+ Here is the caller graph for this function:

static int gbp_contract_send_details ( gbp_contract_t gbpc,
void *  args 
)
static

Definition at line 399 of file gbp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int gbp_endpoint_group_send_details ( gbp_endpoint_group_t gepg,
void *  args 
)
static

Definition at line 275 of file gbp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int gbp_endpoint_send_details ( gbp_endpoint_t gbpe,
void *  args 
)
static

Definition at line 115 of file gbp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* gbp_init ( vlib_main_t vm)
static

Definition at line 475 of file gbp_api.c.

+ Here is the call graph for this function:

static int gbp_recirc_send_details ( gbp_recirc_t gr,
void *  args 
)
static

Definition at line 341 of file gbp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int gbp_subnet_send_details ( u32  table_id,
const fib_prefix_t pfx,
u32  sw_if_index,
epg_id_t  epg,
u8  is_internal,
void *  args 
)
static

Definition at line 221 of file gbp_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 451 of file gbp_api.c.

+ Here is the caller graph for this function:

static void vl_api_gbp_contract_add_del_t_handler ( vl_api_gbp_contract_add_del_t mp)
static

Definition at line 382 of file gbp_api.c.

+ Here is the call graph for this function:

static void vl_api_gbp_contract_dump_t_handler ( vl_api_gbp_contract_dump_t mp)
static

Definition at line 423 of file gbp_api.c.

+ Here is the call graph for this function:

static void vl_api_gbp_endpoint_add_del_t_handler ( vl_api_gbp_endpoint_add_del_t mp)
static

Definition at line 73 of file gbp_api.c.

+ Here is the call graph for this function:

static void vl_api_gbp_endpoint_dump_t_handler ( vl_api_gbp_endpoint_dump_t mp)
static

Definition at line 148 of file gbp_api.c.

+ Here is the call graph for this function:

static void vl_api_gbp_endpoint_group_add_del_t_handler ( vl_api_gbp_endpoint_group_add_del_t mp)
static

Definition at line 166 of file gbp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_gbp_endpoint_group_dump_t_handler ( vl_api_gbp_endpoint_group_dump_t mp)
static

Definition at line 301 of file gbp_api.c.

+ Here is the call graph for this function:

static void vl_api_gbp_recirc_add_del_t_handler ( vl_api_gbp_recirc_add_del_t mp)
static

Definition at line 319 of file gbp_api.c.

+ Here is the call graph for this function:

static void vl_api_gbp_recirc_dump_t_handler ( vl_api_gbp_recirc_dump_t mp)
static

Definition at line 365 of file gbp_api.c.

+ Here is the call graph for this function:

static void vl_api_gbp_subnet_add_del_t_handler ( vl_api_gbp_subnet_add_del_t mp)
static

Definition at line 195 of file gbp_api.c.

+ Here is the call graph for this function:

static void vl_api_gbp_subnet_dump_t_handler ( vl_api_gbp_subnet_dump_t mp)
static

Definition at line 258 of file gbp_api.c.

+ Here is the call graph for this function:

VLIB_API_INIT_FUNCTION ( gbp_init  )

+ Here is the caller graph for this function:

VLIB_PLUGIN_REGISTER ( )

+ Here is the caller graph for this function:

Variable Documentation

gbp_main_t gbp_main

Definition at line 66 of file gbp_api.c.

u16 msg_id_base
static

Definition at line 68 of file gbp_api.c.