summaryrefslogtreecommitdiff
path: root/net/sched/cls_tcindex.c
diff options
context:
space:
mode:
authorVadim Fedorenko <vfedorenko@novek.ru>2021-06-25 19:21:39 +0300
committerDavid S. Miller <davem@davemloft.net>2021-06-28 12:42:14 -0700
commitfade56410c22cacafb1be9f911a0afd3701d8366 (patch)
tree842aa81df2724b2eca90b7f5aad43fc8f9512e8f /net/sched/cls_tcindex.c
parentd6765985a42a660f078896d5c5b27f97c580a490 (diff)
net: lwtunnel: handle MTU calculation in forwading
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 <dsahern@gmail.com> Signed-off-by: Vadim Fedorenko <vfedorenko@novek.ru> Reviewed-by: David Ahern <dsahern@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/cls_tcindex.c')
0 files changed, 0 insertions, 0 deletions