summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2022-03-01 16:48:40 +0100
committerNeale Ranns <neale@graphiant.com>2022-03-02 11:09:00 +0000
commit30a6f8286e60914ca4eec3db3edae739b178a75b (patch)
tree82b488b18fc8bc159e4b7ac6a6003d1380896c8e
parent08bd44bce59d79c71e5b39db9e28cb34a65434ca (diff)
tap: fix tun set mtu
Type: fix Fixes: 1cd0e5dd533f4209dde453eaa43215e52cd42985 Change-Id: I64318585fb3b12369b78735c681f3b747c67b53b Signed-off-by: Benoît Ganne <bganne@cisco.com>
-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);
}