ip6_tunnel: update mtu properly for ARPHRD_ETHER tunnel device in tx path

[ Upstream commit d41bb33ba3 ]

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>
This commit is contained in:
Xin Long 2017-09-28 13:24:07 +08:00 • committed by Greg Kroah-Hartman
commit 1186e0435f