]> 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)
commit23df80cb30c622c10766f90f31d075ffb0dc4ff4
tree06150d05fc49d87760ec7d558c33b4d1675f0c1b
parentec56c6169dbbd80cdf9e4520916bc28474be3af3
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