tap: fix tun set mtu
Type: fix
Fixes: 1cd0e5dd53
Change-Id: I64318585fb3b12369b78735c681f3b747c67b53b
Signed-off-by: Benoît Ganne <bganne@cisco.com>
This commit is contained in:
committed by
Neale Ranns
parent
08bd44bce5
commit
30a6f8286e
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user