Thread (2 messages) flat view 2 messages, 1 author, 2021-06-25

Re: [PATCH net] net: lwtunnel: handle MTU calculation in forwading

From: Vadim Fedorenko <hidden>
Date: 2021-06-25 16:16:19

On 25.06.2021 16:57, Vadim Fedorenko wrote:
Commit 14972cbd34ff ("net: lwtunnel: Handle fragmentation") moved
fragmentation logic away from lwtunnel by carry encap headroom and
use it in output MTU calculation. But the forwarding part was not
covered and created difference in MTU for output and forwarding and
further to silent drops on ipv4 forwarding path. Fix it by taking
into account lwtunnel encap headroom.

The same commit also introduced difference in how to treat RTAX_MTU
in IPv4 and IPv6 where latter explicitly removes lwtunnel encap
headroom from route MTU. Make IPv4 version do the same.

Fixes: 14972cbd34ff ("net: lwtunnel: Handle fragmentation")
Suggested-by: David Ahern <redacted>
Signed-off-by: Vadim Fedorenko <redacted>
---
  include/net/ip.h        | 10 ++++++----
  include/net/ip6_route.h | 16 ++++++++++++----
  net/ipv4/route.c        |  3 ++-
  3 files changed, 20 insertions(+), 9 deletions(-)
Please, ingore it, I was too fast, sorry. Will post v2 soon
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help