FD.io VPP  v18.10-34-gcce845e
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_t_handler (vl_api_gbp_endpoint_add_t *mp)
 
static void vl_api_gbp_endpoint_del_t_handler (vl_api_gbp_endpoint_del_t *mp)
 
static walk_rc_t 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, gbp_endpoint_add) \
_(GBP_ENDPOINT_DEL, gbp_endpoint_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 56 of file gbp_api.c.

#define GBP_MSG_BASE   msg_id_base

Definition at line 73 of file gbp_api.c.

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

Definition at line 50 of file gbp_api.c.

#define vl_endianfun   /* define message structures */

Definition at line 39 of file gbp_api.c.

#define vl_msg_name_crc_list

Definition at line 449 of file gbp_api.c.

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

Definition at line 44 of file gbp_api.c.

#define vl_printfun

Definition at line 45 of file gbp_api.c.

#define vl_typedefs   /* define message structures */

Definition at line 35 of file gbp_api.c.

Typedef Documentation

Function Documentation

static void gbp_api_hookup ( vlib_main_t vm)
static

Definition at line 463 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 402 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 278 of file gbp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 134 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 478 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 344 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 232 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 454 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 385 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 426 of file gbp_api.c.

+ Here is the call graph for this function:

static void vl_api_gbp_endpoint_add_t_handler ( vl_api_gbp_endpoint_add_t mp)
static

Definition at line 76 of file gbp_api.c.

+ Here is the call graph for this function:

static void vl_api_gbp_endpoint_del_t_handler ( vl_api_gbp_endpoint_del_t mp)
static

Definition at line 117 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 167 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 185 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 304 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 322 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 368 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 214 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 261 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 69 of file gbp_api.c.

u16 msg_id_base
static

Definition at line 71 of file gbp_api.c.