X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fdevices%2Ftap%2Ftap.c;fp=src%2Fvnet%2Fdevices%2Ftap%2Ftap.c;h=b7ccba925723029af97065beb8235187045d1f7b;hb=30a6f8286e60914ca4eec3db3edae739b178a75b;hp=7c8a9b04779f2005caa1b1992c0983f0220d914d;hpb=08bd44bce59d79c71e5b39db9e28cb34a65434ca;p=vpp.git 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); }