]> git.baikalelectronics.ru Git - kernel.git/commit
ip6_tunnel: update mtu properly for ARPHRD_ETHER tunnel device in tx path
authorXin Long <lucien.xin@gmail.com>
Thu, 28 Sep 2017 05:24:07 +0000 (13:24 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Oct 2017 02:46:42 +0000 (03:46 +0100)
commite49598837c2f3f23b1a247847e63dc9ef05d242c
tree06150d05fc49d87760ec7d558c33b4d1675f0c1b
parent8411e827490773c2b02edb9a1bed610a84a3b478
ip6_tunnel: update mtu properly for ARPHRD_ETHER tunnel device in tx path

Now when updating mtu in tx path, it doesn't consider ARPHRD_ETHER tunnel
device, like ip6gre_tap tunnel, for which it should also subtract ether
header to get the correct mtu.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_tunnel.c