FD.io VPP  v21.06-3-gbb25fbf28
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, u32 rd_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_itf_add (index_t gbdi, u32 sw_if_index, l2_bd_port_type_t type)
 
void gbp_bridge_domain_itf_del (index_t gbdi, u32 sw_if_index, l2_bd_port_type_t type)
 
void gbp_bridge_domain_unlock (index_t gbdi)
 
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...
 
gbp_scope_tgbp_scope_by_bd_index
 Map of BD index to contract scope. 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

◆ GBP_BD_DBG

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

Definition at line 49 of file gbp_bridge_domain.c.

Function Documentation

◆ format_gbp_bridge_domain()

u8* format_gbp_bridge_domain ( u8 s,
va_list *  args 
)

Definition at line 168 of file gbp_bridge_domain.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ format_gbp_bridge_domain_flags()

u8* format_gbp_bridge_domain_flags ( u8 s,
va_list *  args 
)

Definition at line 124 of file gbp_bridge_domain.c.

+ Here is the caller graph for this function:

◆ format_gbp_bridge_domain_ptr()

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

Definition at line 147 of file gbp_bridge_domain.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gbp_bridge_domain_add_and_lock()

int gbp_bridge_domain_add_and_lock ( u32  bd_id,
u32  rd_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 180 of file gbp_bridge_domain.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this 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 
)
static

Definition at line 376 of file gbp_bridge_domain.c.

+ Here is the call graph for this function:

◆ gbp_bridge_domain_db_add()

static void gbp_bridge_domain_db_add ( gbp_bridge_domain_t gb)
static

Definition at line 106 of file gbp_bridge_domain.c.

+ Here is the caller graph for this function:

◆ gbp_bridge_domain_db_remove()

static void gbp_bridge_domain_db_remove ( gbp_bridge_domain_t gb)
static

Definition at line 117 of file gbp_bridge_domain.c.

+ Here is the caller graph for this function:

◆ gbp_bridge_domain_delete()

int gbp_bridge_domain_delete ( u32  bd_id)

Definition at line 343 of file gbp_bridge_domain.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gbp_bridge_domain_find()

static index_t gbp_bridge_domain_find ( u32  bd_id)
static

Definition at line 78 of file gbp_bridge_domain.c.

+ Here is the caller graph for this function:

◆ gbp_bridge_domain_find_and_lock()

index_t gbp_bridge_domain_find_and_lock ( u32  bd_id)

Definition at line 91 of file gbp_bridge_domain.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gbp_bridge_domain_get_bd_id()

u32 gbp_bridge_domain_get_bd_id ( index_t  gbdi)

Definition at line 68 of file gbp_bridge_domain.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gbp_bridge_domain_index()

index_t gbp_bridge_domain_index ( const gbp_bridge_domain_t gbd)

Definition at line 53 of file gbp_bridge_domain.c.

+ Here is the caller graph for this function:

◆ gbp_bridge_domain_init()

static clib_error_t* gbp_bridge_domain_init ( vlib_main_t vm)
static

Definition at line 488 of file gbp_bridge_domain.c.

+ Here is the call graph for this function:

◆ gbp_bridge_domain_itf_add()

void gbp_bridge_domain_itf_add ( index_t  gbdi,
u32  sw_if_index,
l2_bd_port_type_t  type 
)

Definition at line 282 of file gbp_bridge_domain.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gbp_bridge_domain_itf_del()

void gbp_bridge_domain_itf_del ( index_t  gbdi,
u32  sw_if_index,
l2_bd_port_type_t  type 
)

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:

◆ gbp_bridge_domain_lock()

static void gbp_bridge_domain_lock ( index_t  i)
static

Definition at line 59 of file gbp_bridge_domain.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gbp_bridge_domain_show()

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 462 of file gbp_bridge_domain.c.

+ Here is the call graph for this function:

◆ gbp_bridge_domain_show_one()

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

Definition at line 451 of file gbp_bridge_domain.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gbp_bridge_domain_unlock()

void gbp_bridge_domain_unlock ( index_t  gbdi)

Definition at line 312 of file gbp_bridge_domain.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gbp_bridge_domain_walk()

void gbp_bridge_domain_walk ( gbp_bridge_domain_cb_t  cb,
void *  ctx 
)

Definition at line 362 of file gbp_bridge_domain.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ gb_logger

vlib_log_class_t gb_logger

logger

Definition at line 47 of file gbp_bridge_domain.c.

◆ gbp_bridge_domain_cli_node

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-fwd <interface>] [bm-flood <interface>] [flags <flags>]",
.function = gbp_bridge_domain_cli,
}

(constructor) VLIB_CLI_COMMAND (gbp_bridge_domain_cli_node)

Definition at line 444 of file gbp_bridge_domain.c.

◆ gbp_bridge_domain_db

gbp_bridge_domain_db_t gbp_bridge_domain_db

DB of bridge_domains.

Definition at line 37 of file gbp_bridge_domain.c.

◆ gbp_bridge_domain_pool

gbp_bridge_domain_t* gbp_bridge_domain_pool

Pool of GBP bridge_domains.

Definition at line 32 of file gbp_bridge_domain.c.

◆ gbp_bridge_domain_show_node

vlib_cli_command_t gbp_bridge_domain_show_node
static
Initial value:
= {
.path = "show gbp bridge-domain",
.short_help = "show gbp bridge-domain\n",
}

(constructor) VLIB_CLI_COMMAND (gbp_bridge_domain_show_node)

Definition at line 480 of file gbp_bridge_domain.c.

◆ gbp_scope_by_bd_index

gbp_scope_t* gbp_scope_by_bd_index

Map of BD index to contract scope.

Definition at line 42 of file gbp_bridge_domain.c.

gbp_bridge_domain_show
static clib_error_t * gbp_bridge_domain_show(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: gbp_bridge_domain.c:462
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)
Definition: gbp_bridge_domain.c:376