Go to the source code of this file.
|
#define | tap_log_err(dev, f, ...) vlib_log (VLIB_LOG_LEVEL_ERR, tap_main.log_default, "tap%u: " f, dev->dev_instance, ## __VA_ARGS__) |
|
#define | tap_log_dbg(dev, f, ...) vlib_log (VLIB_LOG_LEVEL_DEBUG, tap_main.log_default, "tap%u: " f, dev->dev_instance, ## __VA_ARGS__) |
|
#define | TAP_MAX_INSTANCE 1024 |
|
|
| VNET_HW_INTERFACE_CLASS (tun_device_hw_interface_class, static) |
|
static u32 | virtio_eth_flag_change (vnet_main_t *vnm, vnet_hw_interface_t *hi, u32 flags) |
|
static int | open_netns_fd (char *netns) |
|
static void | tap_free (vlib_main_t *vm, virtio_if_t *vif) |
|
void | tap_create_if (vlib_main_t *vm, tap_create_if_args_t *args) |
|
int | tap_delete_if (vlib_main_t *vm, u32 sw_if_index) |
|
int | tap_csum_offload_enable_disable (vlib_main_t *vm, u32 sw_if_index, int enable_disable) |
|
int | tap_gso_enable_disable (vlib_main_t *vm, u32 sw_if_index, int enable_disable, int is_packet_coalesce) |
|
int | tap_dump_ifs (tap_interface_details_t **out_tapids) |
|
int | tap_set_carrier (u32 hw_if_index, u32 carrier_up) |
|
static clib_error_t * | tap_mtu_config (vlib_main_t *vm, unformat_input_t *input) |
|
int | tap_set_speed (u32 hw_if_index, u32 speed) |
|
static clib_error_t * | tap_init (vlib_main_t *vm) |
|
◆ tap_log_dbg
#define tap_log_dbg |
( |
|
dev, |
|
|
|
f, |
|
|
|
... |
|
) |
| vlib_log (VLIB_LOG_LEVEL_DEBUG, tap_main.log_default, "tap%u: " f, dev->dev_instance, ## __VA_ARGS__) |
Definition at line 50 of file tap.c.
◆ tap_log_err
#define tap_log_err |
( |
|
dev, |
|
|
|
f, |
|
|
|
... |
|
) |
| vlib_log (VLIB_LOG_LEVEL_ERR, tap_main.log_default, "tap%u: " f, dev->dev_instance, ## __VA_ARGS__) |
Definition at line 48 of file tap.c.
◆ TAP_MAX_INSTANCE
#define TAP_MAX_INSTANCE 1024 |
Definition at line 96 of file tap.c.
◆ open_netns_fd()
static int open_netns_fd |
( |
char * |
netns | ) |
|
|
static |
Definition at line 79 of file tap.c.
◆ tap_create_if()
◆ tap_csum_offload_enable_disable()
int tap_csum_offload_enable_disable |
( |
vlib_main_t * |
vm, |
|
|
u32 |
sw_if_index, |
|
|
int |
enable_disable |
|
) |
| |
◆ tap_delete_if()
◆ tap_dump_ifs()
◆ tap_free()
Definition at line 99 of file tap.c.
◆ tap_gso_enable_disable()
int tap_gso_enable_disable |
( |
vlib_main_t * |
vm, |
|
|
u32 |
sw_if_index, |
|
|
int |
enable_disable, |
|
|
int |
is_packet_coalesce |
|
) |
| |
◆ tap_init()
◆ tap_mtu_config()
◆ tap_set_carrier()
int tap_set_carrier |
( |
u32 |
hw_if_index, |
|
|
u32 |
carrier_up |
|
) |
| |
◆ tap_set_speed()
int tap_set_speed |
( |
u32 |
hw_if_index, |
|
|
u32 |
speed |
|
) |
| |
◆ virtio_eth_flag_change()
Definition at line 70 of file tap.c.
◆ VNET_HW_INTERFACE_CLASS()
VNET_HW_INTERFACE_CLASS |
( |
tun_device_hw_interface_class |
, |
|
|
static |
|
|
) |
| |
◆ tap_main
Definition at line 46 of file tap.c.