vrf: sit mtu should not be updated when vrf netdev is the link
authorStephen Suryaputra <ssuryaextr@gmail.com>
Mon, 6 May 2019 19:00:01 +0000 (15:00 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2019 17:42:34 +0000 (19:42 +0200)
commit4911bfb00de358ddfd25a5467c90d6b0eaef071a
treed437a92c6146faa3aaa08ec0e5855396c4a1470f
parent64651ef94cf587204d7d0dd60c21a93aeb2f1102
vrf: sit mtu should not be updated when vrf netdev is the link

[ Upstream commit ff6ab32bd4e073976e4d8797b4d514a172cfe6cb ]

VRF netdev mtu isn't typically set and have an mtu of 65536. When the
link of a tunnel is set, the tunnel mtu is changed from 1480 to the link
mtu minus tunnel header. In the case of VRF netdev is the link, then the
tunnel mtu becomes 65516. So, fix it by not setting the tunnel mtu in
this case.

Signed-off-by: Stephen Suryaputra <ssuryaextr@gmail.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/sit.c