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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Oct 2017 09:51:23 +0000 (11:51 +0200)
commit09788d46b756a71313378b56d1a927a5ee64f7ce
treef8b139ae89b03f3671a696debffdebb447f095df
parentab4da56f61bed798a833b8fd9cf64d88b1ba27a3
ip6_tunnel: update mtu properly for ARPHRD_ETHER tunnel device in tx path

[ Upstream commit d41bb33ba33b8f8debe54ed36be6925eb496e354 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/ip6_tunnel.c