]> 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)
commit27ec44380fab1d728707e60edba7f1042f6cbb83
tree0bc9badb4752b52b2988bc64ea8793f140ca0b06
parent576e170b26d0f166b089a9d27bf56149b11ee613
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