Go to the source code of this file.
|
void | l2bvi_register_input_type (vlib_main_t *vm, ethernet_type_t type, u32 node_index) |
|
static u8 * | format_bvi_name (u8 *s, va_list *args) |
|
static clib_error_t * | bvi_admin_up_down (vnet_main_t *vnm, u32 hw_if_index, u32 flags) |
|
static clib_error_t * | bvi_mac_change (vnet_hw_interface_t *hi, const u8 *old_address, const u8 *mac_address) |
|
| VNET_DEVICE_CLASS (bvi_device_class) |
|
static u32 | bvi_instance_alloc (u32 want) |
|
static int | bvi_instance_free (u32 instance) |
|
int | l2_bvi_create (u32 user_instance, const mac_address_t *mac_in, u32 *sw_if_indexp) |
|
int | l2_bvi_delete (u32 sw_if_index) |
|
static clib_error_t * | l2_bvi_create_cli (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static clib_error_t * | l2_bvi_delete_cli (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
◆ BVI_MAX_INSTANCE
#define BVI_MAX_INSTANCE (16 * 1024) |
◆ bvi_admin_up_down()
◆ bvi_instance_alloc()
static u32 bvi_instance_alloc |
( |
u32 |
want | ) |
|
|
static |
◆ bvi_instance_free()
static int bvi_instance_free |
( |
u32 |
instance | ) |
|
|
static |
◆ bvi_mac_change()
◆ format_bvi_name()
static u8* format_bvi_name |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
◆ l2_bvi_create()
◆ l2_bvi_create_cli()
◆ l2_bvi_delete()
int l2_bvi_delete |
( |
u32 |
sw_if_index | ) |
|
◆ l2_bvi_delete_cli()
◆ l2bvi_register_input_type()
◆ VNET_DEVICE_CLASS()
◆ l2_bvi_create_command
Initial value:= {
.path = "bvi create",
.short_help = "bvi create [mac <mac-addr>] [instance <instance>]",
}
static clib_error_t * l2_bvi_create_cli(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (l2_bvi_create_command)
Definition at line 286 of file l2_bvi.c.
◆ l2_bvi_delete_command
Initial value:= {
.path = "bvi delete",
.short_help = "bvi delete <interface>",
}
static clib_error_t * l2_bvi_delete_cli(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (l2_bvi_delete_command)
Definition at line 337 of file l2_bvi.c.
◆ l2_bvi_instances