Force MTU 9216 on lcpng TAP interfaces
The TAP interface does copy forward the host MTU based on the VPP interface's L3 MTU, but it should also ensure that the VPP tap interface has an MTU that is greater-or-equal to those. Considering users can set the interfaces at runtime (set interface mtu packet ...) ensure that the tap MTU is large enough. Ideally, a callback updates the MTU to the same value as the L3 MTU of the VPP interface, or the L3 MTU of the host interface, if either of those change. For now, it's a safe bet to take jumbo 9216.
This commit is contained in:
@ -775,6 +775,15 @@ lcp_itf_pair_create (u32 phy_sw_if_index, u8 *host_if_name,
|
|||||||
return args.rv;
|
return args.rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The TAP interface does copy forward the host MTU based on the VPP
|
||||||
|
* interface's L3 MTU, but it should also ensure that the VPP tap
|
||||||
|
* interface has an MTU that is greater-or-equal to those. Considering
|
||||||
|
* 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);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* get the hw and ethernet of the tap
|
* get the hw and ethernet of the tap
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user