FD.io VPP  v18.07-rc0-415-g6c78436
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_main_t_
 L2 Emulation Main. More...
 
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   gbp_main.msg_id_base
 
#define vl_msg_name_crc_list
 

Typedefs

typedef struct gbp_main_t_ gbp_main_t
 L2 Emulation Main. More...
 
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

static gbp_main_t gbp_main
 

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   gbp_main.msg_id_base

Definition at line 76 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 452 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

typedef struct gbp_main_t_ gbp_main_t

L2 Emulation Main.

Function Documentation

static void gbp_api_hookup ( vlib_main_t vm)
static

Definition at line 466 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 405 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 281 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 121 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 481 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 347 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 227 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 457 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 388 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 429 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 79 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 154 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 172 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 307 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 325 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 371 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 201 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 264 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
static

Definition at line 74 of file gbp_api.c.