FD.io VPP  v19.04.1-1-ge4a0f9f
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)
 
u8format_gbp_bridge_domain_flags (u8 *s, va_list *args)
 
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, u32 bm_flood_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 42 of file gbp_bridge_domain.c.

Function Documentation

u8* format_gbp_bridge_domain ( u8 s,
va_list *  args 
)

Definition at line 160 of file gbp_bridge_domain.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_gbp_bridge_domain_flags ( u8 s,
va_list *  args 
)

Definition at line 117 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 140 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,
u32  bm_flood_sw_if_index 
)

Definition at line 172 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 333 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 99 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 110 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 300 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 71 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 84 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 61 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 46 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 441 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 52 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 415 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 404 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 260 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 319 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 40 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] bd <ID> bvi <interface>"
" uu-flood <interface> [flags <flags>]",
.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 396 of file gbp_bridge_domain.c.

gbp_bridge_domain_db_t gbp_bridge_domain_db

DB of bridge_domains.

Definition at line 35 of file gbp_bridge_domain.c.

gbp_bridge_domain_t* gbp_bridge_domain_pool

Pool of GBP bridge_domains.

Definition at line 30 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 433 of file gbp_bridge_domain.c.