summaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/tap/tap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/devices/tap/tap.c')
-rw-r--r--src/vnet/devices/tap/tap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/devices/tap/tap.c b/src/vnet/devices/tap/tap.c
index 7c8a9b04779..b7ccba92572 100644
--- a/src/vnet/devices/tap/tap.c
+++ b/src/vnet/devices/tap/tap.c
@@ -694,7 +694,7 @@ tap_create_if (vlib_main_t * vm, tap_create_if_args_t * args)
{
hw->min_frame_size = TUN_MIN_PACKET_BYTES;
vnet_hw_interface_set_mtu (
- vnm, hw->sw_if_index,
+ vnm, hw->hw_if_index,
args->host_mtu_size ? args->host_mtu_size : TUN_DEFAULT_PACKET_BYTES);
}