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

Go to the source code of this file.

Data Structures

struct  gbp_route_domain_db_t
 DB of route_domains. More...
 

Macros

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

Typedefs

typedef struct gbp_route_domain_db_t gbp_route_domain_db_t
 DB of route_domains. More...
 

Functions

index_t gbp_route_domain_index (const gbp_route_domain_t *grd)
 
gbp_route_domain_tgbp_route_domain_get (index_t i)
 
static void gbp_route_domain_lock (index_t i)
 
index_t gbp_route_domain_find (u32 rd_id)
 
index_t gbp_route_domain_find_and_lock (u32 rd_id)
 
static void gbp_route_domain_db_add (gbp_route_domain_t *grd)
 
static void gbp_route_domain_db_remove (gbp_route_domain_t *grd)
 
int gbp_route_domain_add_and_lock (u32 rd_id, u32 ip4_table_id, u32 ip6_table_id, u32 ip4_uu_sw_if_index, u32 ip6_uu_sw_if_index)
 
void gbp_route_domain_unlock (index_t index)
 
u32 gbp_route_domain_get_rd_id (index_t grdi)
 
int gbp_route_domain_delete (u32 rd_id)
 
const mac_address_tgbp_route_domain_get_local_mac (void)
 
const mac_address_tgbp_route_domain_get_remote_mac (void)
 
void gbp_route_domain_walk (gbp_route_domain_cb_t cb, void *ctx)
 
static clib_error_tgbp_route_domain_cli (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
u8format_gbp_route_domain (u8 *s, va_list *args)
 
static int gbp_route_domain_show_one (gbp_route_domain_t *gb, void *ctx)
 
static clib_error_tgbp_route_domain_show (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tgbp_route_domain_init (vlib_main_t *vm)
 

Variables

static const mac_address_t GBP_ROUTED_SRC_MAC
 A fixed MAC address to use as the source MAC for packets L3 switched onto the routed uu-fwd interfaces. More...
 
static const mac_address_t GBP_ROUTED_DST_MAC
 
gbp_route_domain_tgbp_route_domain_pool
 Pool of GBP route_domains. More...
 
static gbp_route_domain_db_t gbp_route_domain_db
 
vlib_log_class_t grd_logger
 logger More...
 
static vlib_cli_command_t gbp_route_domain_cli_node
 (constructor) VLIB_CLI_COMMAND (gbp_route_domain_cli_node) More...
 
static vlib_cli_command_t gbp_route_domain_show_node
 (constructor) VLIB_CLI_COMMAND (gbp_route_domain_show_node) More...
 

Macro Definition Documentation

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

Definition at line 62 of file gbp_route_domain.c.

Typedef Documentation

DB of route_domains.

Function Documentation

u8* format_gbp_route_domain ( u8 s,
va_list *  args 
)

Definition at line 359 of file gbp_route_domain.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int gbp_route_domain_add_and_lock ( u32  rd_id,
u32  ip4_table_id,
u32  ip6_table_id,
u32  ip4_uu_sw_if_index,
u32  ip6_uu_sw_if_index 
)

Definition at line 128 of file gbp_route_domain.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 291 of file gbp_route_domain.c.

+ Here is the call graph for this function:

static void gbp_route_domain_db_add ( gbp_route_domain_t grd)
static

Definition at line 114 of file gbp_route_domain.c.

+ Here is the caller graph for this function:

static void gbp_route_domain_db_remove ( gbp_route_domain_t grd)
static

Definition at line 122 of file gbp_route_domain.c.

+ Here is the caller graph for this function:

int gbp_route_domain_delete ( u32  rd_id)

Definition at line 245 of file gbp_route_domain.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

index_t gbp_route_domain_find ( u32  rd_id)

Definition at line 87 of file gbp_route_domain.c.

+ Here is the caller graph for this function:

index_t gbp_route_domain_find_and_lock ( u32  rd_id)

Definition at line 100 of file gbp_route_domain.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

gbp_route_domain_t* gbp_route_domain_get ( index_t  i)

Definition at line 72 of file gbp_route_domain.c.

+ Here is the caller graph for this function:

const mac_address_t* gbp_route_domain_get_local_mac ( void  )

Definition at line 265 of file gbp_route_domain.c.

+ Here is the caller graph for this function:

u32 gbp_route_domain_get_rd_id ( index_t  grdi)

Definition at line 235 of file gbp_route_domain.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const mac_address_t* gbp_route_domain_get_remote_mac ( void  )

Definition at line 271 of file gbp_route_domain.c.

+ Here is the caller graph for this function:

index_t gbp_route_domain_index ( const gbp_route_domain_t grd)

Definition at line 66 of file gbp_route_domain.c.

+ Here is the caller graph for this function:

static clib_error_t* gbp_route_domain_init ( vlib_main_t vm)
static

Definition at line 414 of file gbp_route_domain.c.

+ Here is the call graph for this function:

static void gbp_route_domain_lock ( index_t  i)
static

Definition at line 78 of file gbp_route_domain.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 389 of file gbp_route_domain.c.

+ Here is the call graph for this function:

static int gbp_route_domain_show_one ( gbp_route_domain_t gb,
void *  ctx 
)
static

Definition at line 378 of file gbp_route_domain.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gbp_route_domain_unlock ( index_t  index)

Definition at line 206 of file gbp_route_domain.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gbp_route_domain_walk ( gbp_route_domain_cb_t  cb,
void *  ctx 
)

Definition at line 277 of file gbp_route_domain.c.

+ Here is the caller graph for this function:

Variable Documentation

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

(constructor) VLIB_CLI_COMMAND (gbp_route_domain_cli_node)

Definition at line 352 of file gbp_route_domain.c.

gbp_route_domain_db_t gbp_route_domain_db
static

Definition at line 55 of file gbp_route_domain.c.

gbp_route_domain_t* gbp_route_domain_pool

Pool of GBP route_domains.

Definition at line 45 of file gbp_route_domain.c.

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

(constructor) VLIB_CLI_COMMAND (gbp_route_domain_show_node)

Definition at line 406 of file gbp_route_domain.c.

const mac_address_t GBP_ROUTED_DST_MAC
static
Initial value:
= {
.bytes = {
00, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c,
}
}

Definition at line 35 of file gbp_route_domain.c.

const mac_address_t GBP_ROUTED_SRC_MAC
static
Initial value:
= {
.bytes = {
0x0, 0x22, 0xBD, 0xF8, 0x19, 0xFF,
}
}

A fixed MAC address to use as the source MAC for packets L3 switched onto the routed uu-fwd interfaces.

Magic values - origin lost to the mists of time...

Definition at line 29 of file gbp_route_domain.c.

vlib_log_class_t grd_logger

logger

Definition at line 60 of file gbp_route_domain.c.