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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 May 2019 19:19:19 +0000 (12:19 -0700)
commitff6ab32bd4e073976e4d8797b4d514a172cfe6cb
tree0bc9badb4752b52b2988bc64ea8793f140ca0b06
parent68be930249d051fd54d3d99156b3dcadcb2a1f9b
vrf: sit mtu should not be updated when vrf netdev is the link

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>
net/ipv6/sit.c