]> Git Repo - linux.git/commit
net: ip_tunnel: fix mtu calculation
authorVadim Fedorenko <[email protected]>
Fri, 29 Jan 2021 22:27:47 +0000 (01:27 +0300)
committerJakub Kicinski <[email protected]>
Tue, 2 Feb 2021 03:58:23 +0000 (19:58 -0800)
commit28e104d00281ade30250b24e098bf50887671ea4
tree6cae5c0b2a5f65e65718ecddc5f173d19c890195
parentc518adafa39f37858697ac9309c6cf1805581446
net: ip_tunnel: fix mtu calculation

dev->hard_header_len for tunnel interface is set only when header_ops
are set too and already contains full overhead of any tunnel encapsulation.
That's why there is not need to use this overhead twice in mtu calc.

Fixes: fdafed459998 ("ip_gre: set dev->hard_header_len and dev->needed_headroom properly")
Reported-by: Slava Bacherikov <[email protected]>
Signed-off-by: Vadim Fedorenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
net/ipv4/ip_tunnel.c
This page took 0.055745 seconds and 4 git commands to generate.