diff options
| author | Vadim Fedorenko <[email protected]> | 2021-01-29 22:27:47 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2021-02-02 03:58:23 +0000 |
| commit | 28e104d00281ade30250b24e098bf50887671ea4 (patch) | |
| tree | 6cae5c0b2a5f65e65718ecddc5f173d19c890195 /net/lapb/lapb_out.c | |
| parent | vsock: fix the race conditions in multi-transport support (diff) | |
| download | kernel-28e104d00281ade30250b24e098bf50887671ea4.tar.gz kernel-28e104d00281ade30250b24e098bf50887671ea4.zip | |
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]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions
