Vadim Fedorenko 28e104d002 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 <mail@slava.cc>
Signed-off-by: Vadim Fedorenko <vfedorenko@novek.ru>
Link: https://lore.kernel.org/r/1611959267-20536-1-git-send-email-vfedorenko@novek.ru
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2021-02-01 19:58:23 -08:00
..
2020-03-12 15:55:00 -07:00
2021-01-11 18:20:09 -08:00
2020-11-09 17:50:28 -08:00
2020-03-30 13:45:04 -07:00
2020-11-09 17:50:28 -08:00
2020-11-09 17:50:28 -08:00
2020-12-16 11:01:04 -08:00
2020-03-16 18:26:54 -07:00
2020-12-14 16:40:27 -08:00
2020-03-16 18:26:55 -07:00