Re: [PATCH net-next v2] ip6_vti: adjust vti mtu according to mtu of output device

2017-12-13 Thread David Miller
From: Alexey Kodanev Date: Tue, 12 Dec 2017 16:53:32 +0300 > + if (tdev) { > + dev->mtu = max_t(int, tdev->mtu - dev->hard_header_len, > + IPV6_MIN_MTU); > + } Please don't use curly braces for a single-statement basic

Re: [PATCH net-next v2] ip6_vti: adjust vti mtu according to mtu of output device

2017-12-12 Thread Shannon Nelson
On 12/12/2017 5:53 AM, Alexey Kodanev wrote: LTP/udp6_ipsec_vti tests fail when sending large UDP datagrams that require fragmentation and the underlying device has MTU <= 1500. This happens because ip6_vti sets mtu to ETH_DATA_LEN and not updating it depending on a destination address or link

[PATCH net-next v2] ip6_vti: adjust vti mtu according to mtu of output device

2017-12-12 Thread Alexey Kodanev
LTP/udp6_ipsec_vti tests fail when sending large UDP datagrams that require fragmentation and the underlying device has MTU <= 1500. This happens because ip6_vti sets mtu to ETH_DATA_LEN and not updating it depending on a destination address or link parameter. Further attempts to send UDP packets