![]() |
FD.io VPP
v21.01
Vector Packet Processing
|
Ethernet MAC Address FIB Table Management. More...
Go to the source code of this file.
Data Structures | |
struct | l2fib_dump_walk_ctx_t_ |
struct | l2fib_show_walk_ctx_t_ |
Macros | |
#define | vl_typedefs /* define message structures */ |
#define | vl_endianfun /* define message structures */ |
Typedefs | |
typedef struct l2fib_dump_walk_ctx_t_ | l2fib_dump_walk_ctx_t |
typedef struct l2fib_show_walk_ctx_t_ | l2fib_show_walk_ctx_t |
Variables | |
l2fib_main_t | l2fib_main |
static vlib_cli_command_t | show_l2fib_cli |
(constructor) VLIB_CLI_COMMAND (show_l2fib_cli) More... | |
static vlib_cli_command_t | clear_l2fib_cli |
(constructor) VLIB_CLI_COMMAND (clear_l2fib_cli) More... | |
static vlib_cli_command_t | l2fib_add_cli |
(constructor) VLIB_CLI_COMMAND (l2fib_add_cli) More... | |
static vlib_cli_command_t | l2fib_test_command |
(constructor) VLIB_CLI_COMMAND (l2fib_test_command) More... | |
static vlib_cli_command_t | l2fib_del_cli |
(constructor) VLIB_CLI_COMMAND (l2fib_del_cli) More... | |
static vlib_cli_command_t | l2fib_flush_mac_all_cli |
(constructor) VLIB_CLI_COMMAND (l2fib_flush_mac_all_cli) More... | |
static vlib_cli_command_t | l2fib_flush_mac_int_cli |
(constructor) VLIB_CLI_COMMAND (l2fib_flush_mac_int_cli) More... | |
static vlib_cli_command_t | l2fib_flush_mac_bd_cli |
(constructor) VLIB_CLI_COMMAND (l2fib_flush_mac_bd_cli) More... | |
vlib_node_registration_t | l2fib_mac_age_scanner_process_node |
(constructor) VLIB_REGISTER_NODE (l2fib_mac_age_scanner_process_node) More... | |
Ethernet MAC Address FIB Table Management.
The MAC Address forwarding table for bridge-domains is called the l2fib. Entries are added automatically as part of mac learning, but MAC Addresses entries can also be added manually.
Definition in file l2_fib.c.
typedef struct l2fib_dump_walk_ctx_t_ l2fib_dump_walk_ctx_t |
typedef struct l2fib_show_walk_ctx_t_ l2fib_show_walk_ctx_t |
static_always_inline void* allocate_mac_evt_buf | ( | u32 | client, |
u32 | client_index | ||
) |
BVT | ( | clib_bihash | ) |
|
static |
|
static |
void l2_fib_extract_seq_num | ( | l2fib_seq_num_t | sn, |
u8 * | bd_sn, | ||
u8 * | if_sn | ||
) |
|
static |
void l2fib_add_entry | ( | const u8 * | mac, |
u32 | bd_index, | ||
u32 | sw_if_index, | ||
l2fib_entry_result_flags_t | flags | ||
) |
void l2fib_clear_table | ( | void | ) |
|
static |
|
static |
|
static |
void l2fib_flush_all_mac | ( | vlib_main_t * | vm | ) |
void l2fib_flush_bd_mac | ( | vlib_main_t * | vm, |
u32 | bd_index | ||
) |
void l2fib_flush_int_mac | ( | vlib_main_t * | vm, |
u32 | sw_if_index | ||
) |
|
static |
|
static |
|
static |
clib_error_t* l2fib_init | ( | vlib_main_t * | vm | ) |
|
static |
static_always_inline f64 l2fib_scan | ( | vlib_main_t * | vm, |
f64 | start_time, | ||
u8 | event_only | ||
) |
|
static |
void l2fib_start_ager_scan | ( | vlib_main_t * | vm | ) |
clib_error_t* l2fib_sw_interface_up_down | ( | vnet_main_t * | vnm, |
u32 | sw_if_index, | ||
u32 | flags | ||
) |
void l2fib_table_dump | ( | u32 | bd_index, |
l2fib_entry_key_t ** | l2fe_key, | ||
l2fib_entry_result_t ** | l2fe_res | ||
) |
void l2fib_table_init | ( | void | ) |
|
static |
|
static |
|
static |
VNET_SW_INTERFACE_ADMIN_UP_DOWN_FUNCTION | ( | l2fib_sw_interface_up_down | ) |
|
static |
(constructor) VLIB_CLI_COMMAND (clear_l2fib_cli)
|
static |
(constructor) VLIB_CLI_COMMAND (l2fib_add_cli)
|
static |
(constructor) VLIB_CLI_COMMAND (l2fib_del_cli)
|
static |
(constructor) VLIB_CLI_COMMAND (l2fib_flush_mac_all_cli)
|
static |
(constructor) VLIB_CLI_COMMAND (l2fib_flush_mac_bd_cli)
|
static |
(constructor) VLIB_CLI_COMMAND (l2fib_flush_mac_int_cli)
vlib_node_registration_t l2fib_mac_age_scanner_process_node |
(constructor) VLIB_REGISTER_NODE (l2fib_mac_age_scanner_process_node)
l2fib_main_t l2fib_main |
|
static |
(constructor) VLIB_CLI_COMMAND (l2fib_test_command)
|
static |
(constructor) VLIB_CLI_COMMAND (show_l2fib_cli)