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)
commitd41bb33ba33b8f8debe54ed36be6925eb496e354
tree06150d05fc49d87760ec7d558c33b4d1675f0c1b
parent2d40557cc702ed8e5edd9bd422233f86652d932e
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