Remove hardcoded 9216 with ETHERNET_MAX_PACKET_BYTES

This commit is contained in:
Pim van Pelt
2021-08-08 21:40:56 +02:00
parent 8111d1e9a8
commit 4b79f042bf

View File

@ -782,7 +782,7 @@ lcp_itf_pair_create (u32 phy_sw_if_index, u8 *host_if_name,
* users can set the interfaces at runtime (set interface mtu packet ...) * users can set the interfaces at runtime (set interface mtu packet ...)
* ensure that the tap MTU is large enough. * ensure that the tap MTU is large enough.
*/ */
vnet_sw_interface_set_mtu (vnm, args.sw_if_index, 9216); vnet_sw_interface_set_mtu (vnm, args.sw_if_index, ETHERNET_MAX_PACKET_BYTES);
/* /*
* get the hw and ethernet of the tap * get the hw and ethernet of the tap