FD.io VPP  v16.06
Vector Packet Processing
l2_fib.c File Reference
+ Include dependency graph for l2_fib.c:

Go to the source code of this file.

Data Structures

struct  l2fib_main_t
 

Functions

u8format_vnet_sw_if_index_name_with_NA (u8 *s, va_list *args)
 
void l2fib_table_dump (u32 bd_index, l2fib_entry_key_t **l2fe_key, l2fib_entry_result_t **l2fe_res)
 
static clib_error_tshow_l2fib (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
void l2fib_clear_table (uint keep_static)
 
static clib_error_tclear_l2fib (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
void l2fib_add_entry (u64 mac, u32 bd_index, u32 sw_if_index, u32 static_mac, u32 filter_mac, u32 bvi_mac)
 
static clib_error_tl2fib_add (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tl2fib_test_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
u32 l2fib_del_entry (u64 mac, u32 bd_index)
 
static clib_error_tl2fib_del (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
 BVT (clib_bihash)
 
clib_error_tl2fib_init (vlib_main_t *vm)
 

Variables

l2fib_main_t l2fib_main
 
vlib_cli_command_t show_l2fib_cli
 (constructor) VLIB_CLI_COMMAND (show_l2fib_cli) More...
 
vlib_cli_command_t clear_l2fib_cli
 (constructor) VLIB_CLI_COMMAND (clear_l2fib_cli) More...
 
vlib_cli_command_t l2fib_add_cli
 (constructor) VLIB_CLI_COMMAND (l2fib_add_cli) More...
 
vlib_cli_command_t l2fib_test_command
 (constructor) VLIB_CLI_COMMAND (l2fib_test_command) More...
 
vlib_cli_command_t l2fib_del_cli
 (constructor) VLIB_CLI_COMMAND (l2fib_del_cli) More...
 

Function Documentation

BVT ( clib_bihash  )

Definition at line 538 of file l2_fib.c.

+ Here is the caller graph for this function:

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

Definition at line 226 of file l2_fib.c.

+ Here is the call graph for this function:

u8* format_vnet_sw_if_index_name_with_NA ( u8 s,
va_list *  args 
)

Definition at line 47 of file l2_fib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 282 of file l2_fib.c.

+ Here is the call graph for this function:

void l2fib_add_entry ( u64  mac,
u32  bd_index,
u32  sw_if_index,
u32  static_mac,
u32  filter_mac,
u32  bvi_mac 
)

Definition at line 243 of file l2_fib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void l2fib_clear_table ( uint  keep_static)

Definition at line 207 of file l2_fib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 490 of file l2_fib.c.

+ Here is the call graph for this function:

u32 l2fib_del_entry ( u64  mac,
u32  bd_index 
)

Definition at line 459 of file l2_fib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* l2fib_init ( vlib_main_t vm)

Definition at line 543 of file l2_fib.c.

+ Here is the call graph for this function:

void l2fib_table_dump ( u32  bd_index,
l2fib_entry_key_t **  l2fe_key,
l2fib_entry_result_t **  l2fe_res 
)

Definition at line 59 of file l2_fib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 351 of file l2_fib.c.

+ Here is the call graph for this function:

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

Definition at line 99 of file l2_fib.c.

+ Here is the call graph for this function:

Variable Documentation

vlib_cli_command_t clear_l2fib_cli
Initial value:
= {
.path = "clear l2fib",
.short_help = "Clear l2fib mac forwarding entries",
.function = clear_l2fib,
}
static clib_error_t * clear_l2fib(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: l2_fib.c:226

(constructor) VLIB_CLI_COMMAND (clear_l2fib_cli)

Definition at line 234 of file l2_fib.c.

vlib_cli_command_t l2fib_add_cli
Initial value:
= {
.path = "l2fib add",
.short_help = "Add l2fib mac forwarding entry <mac> <bd-id> filter | <intf> [static | bvi]",
.function = l2fib_add,
}
static clib_error_t * l2fib_add(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: l2_fib.c:282

(constructor) VLIB_CLI_COMMAND (l2fib_add_cli)

Definition at line 343 of file l2_fib.c.

vlib_cli_command_t l2fib_del_cli
Initial value:
= {
.path = "l2fib del",
.short_help = "Delete l2fib mac forwarding entry <mac> <bd-id>",
.function = l2fib_del,
}
static clib_error_t * l2fib_del(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: l2_fib.c:490

(constructor) VLIB_CLI_COMMAND (l2fib_del_cli)

Definition at line 531 of file l2_fib.c.

l2fib_main_t l2fib_main

Definition at line 43 of file l2_fib.c.

vlib_cli_command_t l2fib_test_command
Initial value:
= {
.path = "test l2fib",
.short_help = "test l2fib [del] mac <base-addr> count <nn>",
.function = l2fib_test_command_fn,
}
static clib_error_t * l2fib_test_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: l2_fib.c:351

(constructor) VLIB_CLI_COMMAND (l2fib_test_command)

Definition at line 450 of file l2_fib.c.

vlib_cli_command_t show_l2fib_cli
Initial value:
= {
.path = "show l2fib",
.short_help = "show l2fib [verbose | bd_id <nn> | bd_index <nn> | raw]",
.function = show_l2fib,
}
static clib_error_t * show_l2fib(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: l2_fib.c:99

(constructor) VLIB_CLI_COMMAND (show_l2fib_cli)

Definition at line 199 of file l2_fib.c.