From 4b79f042bfae247fc55f4e104c8268f61ada2fcc Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Sun, 8 Aug 2021 21:40:56 +0200 Subject: [PATCH] Remove hardcoded 9216 with ETHERNET_MAX_PACKET_BYTES --- lcpng_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lcpng_interface.c b/lcpng_interface.c index 2d77039..374dc0b 100644 --- a/lcpng_interface.c +++ b/lcpng_interface.c @@ -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 ...) * 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