]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit92955e2dab8dddf8f2e0df057d4955ce7104fecb
tree0bc9badb4752b52b2988bc64ea8793f140ca0b06
parente5f30b0675a213ac7e67b38311b26fcacd991ae6
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