summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorHangbin Liu <liuhangbin@gmail.com>2021-07-09 06:45:02 +0300
committerDavid S. Miller <davem@davemloft.net>2021-07-09 23:53:53 +0300
commit9992a078b1771da354ac1f9737e1e639b687caa2 (patch)
treeebbff5d36d7650cc6db1114e5011f9a36c8ed44b /include/net
parent28b34f01a73435a754956ebae826e728c03ffa38 (diff)
downloadlinux-9992a078b1771da354ac1f9737e1e639b687caa2.tar.xz
net: ip_tunnel: fix mtu calculation for ETHER tunnel devices
Commit 28e104d00281 ("net: ip_tunnel: fix mtu calculation") removed dev->hard_header_len subtraction when calculate MTU for tunnel devices as there is an overhead for device that has header_ops. But there are ETHER tunnel devices, like gre_tap or erspan, which don't have header_ops but set dev->hard_header_len during setup. This makes pkts greater than (MTU - ETH_HLEN) could not be xmited. Fix it by subtracting the ETHER tunnel devices' dev->hard_header_len for MTU calculation. Fixes: 28e104d00281 ("net: ip_tunnel: fix mtu calculation") Reported-by: Jianlin Shi <jishi@redhat.com> Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions