FD.io VPP  v19.01.2-3-gf61a1a8
Vector Packet Processing
gbp_bridge_domain.c File Reference
+ Include dependency graph for gbp_bridge_domain.c:

Go to the source code of this file.

Macros

#define GBP_BD_DBG(...)   vlib_log_debug (gb_logger, __VA_ARGS__);
 

Functions

index_t gbp_bridge_domain_index (const gbp_bridge_domain_t *gbd)
 
static void gbp_bridge_domain_lock (index_t i)
 
u32 gbp_bridge_domain_get_bd_id (index_t gbdi)
 
static index_t gbp_bridge_domain_find (u32 bd_id)
 
index_t gbp_bridge_domain_find_and_lock (u32 bd_id)
 
static void gbp_bridge_domain_db_add (gbp_bridge_domain_t *gb)
 
static void gbp_bridge_domain_db_remove (gbp_bridge_domain_t *gb)
 
static u8format_gbp_bridge_domain_ptr (u8 *s, va_list *args)
 
u8format_gbp_bridge_domain (u8 *s, va_list *args)
 
int gbp_bridge_domain_add_and_lock (u32 bd_id, gbp_bridge_domain_flags_t flags, u32 bvi_sw_if_index, u32 uu_fwd_sw_if_index)
 
void gbp_bridge_domain_unlock (index_t index)
 
int gbp_bridge_domain_delete (u32 bd_id)
 
void gbp_bridge_domain_walk (gbp_bridge_domain_cb_t cb, void *ctx)
 
static clib_error_tgbp_bridge_domain_cli (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static int gbp_bridge_domain_show_one (gbp_bridge_domain_t *gb, void *ctx)
 
static clib_error_tgbp_bridge_domain_show (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tgbp_bridge_domain_init (vlib_main_t *vm)
 

Variables

gbp_bridge_domain_tgbp_bridge_domain_pool
 Pool of GBP bridge_domains. More...
 
gbp_bridge_domain_db_t gbp_bridge_domain_db
 DB of bridge_domains. More...
 
vlib_log_class_t gb_logger
 logger More...
 
static vlib_cli_command_t gbp_bridge_domain_cli_node
 (constructor) VLIB_CLI_COMMAND (gbp_bridge_domain_cli_node) More...
 
static vlib_cli_command_t gbp_bridge_domain_show_node
 (constructor) VLIB_CLI_COMMAND (gbp_bridge_domain_show_node) More...
 

Macro Definition Documentation

#define GBP_BD_DBG (   ...)    vlib_log_debug (gb_logger, __VA_ARGS__);

Definition at line 41 of file gbp_bridge_domain.c.

Function Documentation

u8* format_gbp_bridge_domain ( u8 s,
va_list *  args 
)

Definition at line 136 of file gbp_bridge_domain.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8* format_gbp_bridge_domain_ptr ( u8 s,
va_list *  args 
)
static

Definition at line 116 of file gbp_bridge_domain.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int gbp_bridge_domain_add_and_lock ( u32  bd_id,
gbp_bridge_domain_flags_t  flags,
u32  bvi_sw_if_index,
u32  uu_fwd_sw_if_index 
)

Definition at line 148 of file gbp_bridge_domain.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* gbp_bridge_domain_cli ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 279 of file gbp_bridge_domain.c.

+ Here is the call graph for this function:

static void gbp_bridge_domain_db_add ( gbp_bridge_domain_t gb)
static

Definition at line 98 of file gbp_bridge_domain.c.

+ Here is the caller graph for this function:

static void gbp_bridge_domain_db_remove ( gbp_bridge_domain_t gb)
static

Definition at line 109 of file gbp_bridge_domain.c.

+ Here is the caller graph for this function:

int gbp_bridge_domain_delete ( u32  bd_id)

Definition at line 246 of file gbp_bridge_domain.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static index_t gbp_bridge_domain_find ( u32  bd_id)
static

Definition at line 70 of file gbp_bridge_domain.c.

+ Here is the caller graph for this function:

index_t gbp_bridge_domain_find_and_lock ( u32  bd_id)

Definition at line 83 of file gbp_bridge_domain.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 gbp_bridge_domain_get_bd_id ( index_t  gbdi)

Definition at line 60 of file gbp_bridge_domain.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

index_t gbp_bridge_domain_index ( const gbp_bridge_domain_t gbd)

Definition at line 45 of file gbp_bridge_domain.c.

+ Here is the caller graph for this function:

static clib_error_t* gbp_bridge_domain_init ( vlib_main_t vm)
static

Definition at line 375 of file gbp_bridge_domain.c.

+ Here is the call graph for this function:

static void gbp_bridge_domain_lock ( index_t  i)
static

Definition at line 51 of file gbp_bridge_domain.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* gbp_bridge_domain_show ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 349 of file gbp_bridge_domain.c.

+ Here is the call graph for this function:

static int gbp_bridge_domain_show_one ( gbp_bridge_domain_t gb,
void *  ctx 
)
static

Definition at line 338 of file gbp_bridge_domain.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gbp_bridge_domain_unlock ( index_t  index)

Definition at line 215 of file gbp_bridge_domain.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gbp_bridge_domain_walk ( gbp_bridge_domain_cb_t  cb,
void *  ctx 
)

Definition at line 265 of file gbp_bridge_domain.c.

+ Here is the caller graph for this function:

Variable Documentation

vlib_log_class_t gb_logger

logger

Definition at line 39 of file gbp_bridge_domain.c.

vlib_cli_command_t gbp_bridge_domain_cli_node
static
Initial value:
= {
.path = "gbp bridge-domain",
.short_help = "gbp bridge-domain [del] epg bd <ID> bvi <interface> uu-flood <interface>",
.function = gbp_bridge_domain_cli,
}
static clib_error_t * gbp_bridge_domain_cli(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (gbp_bridge_domain_cli_node)

Definition at line 331 of file gbp_bridge_domain.c.

gbp_bridge_domain_db_t gbp_bridge_domain_db

DB of bridge_domains.

Definition at line 34 of file gbp_bridge_domain.c.

gbp_bridge_domain_t* gbp_bridge_domain_pool

Pool of GBP bridge_domains.

Definition at line 29 of file gbp_bridge_domain.c.

vlib_cli_command_t gbp_bridge_domain_show_node
static
Initial value:
= {
.path = "show gbp bridge-domain",
.short_help = "show gbp bridge-domain\n",
}
static clib_error_t * gbp_bridge_domain_show(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (gbp_bridge_domain_show_node)

Definition at line 367 of file gbp_bridge_domain.c.