Skip to content

mptcp: address stall under memory pressure

Paolo Abeni mptcp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12mptcp: do not drop partial packetsnet/mptcp/protocol.c+19 -50 replies
2/12mptcp: explicitly drop over memory limitsnet/mptcp/options.c net/mptcp/protocol.c+50 -101 reply
3/12mptcp: enforce hard limit on backlog flushingnet/mptcp/protocol.c+6 -150 replies
4/12mptcp: drop the mptcp_ooo_try_coalesce() helpernet/mptcp/protocol.c+6 -150 replies
5/12mptcp: drop the cant_coalesce CB fieldnet/mptcp/fastopen.c net/mptcp/protocol.c net/mptcp/protocol.h +1 more+37 -40 replies
6/12mptcp: remove CB offset fieldnet/mptcp/fastopen.c net/mptcp/protocol.c net/mptcp/protocol.h +1 more+63 -601 reply
7/12mptcp: sync mptcp skb cb layout with tcp onenet/mptcp/fastopen.c net/mptcp/protocol.c net/mptcp/protocol.h+66 -530 replies
8/12tcp: expose the tcp_collapse_ofo_queue() helper to mptcp usage, tooinclude/net/tcp.h net/ipv4/tcp_input.c+43 -190 replies
9/12mptcp: implemented OoO queue pruningnet/mptcp/mib.c net/mptcp/mib.h net/mptcp/options.c +2 more+112 -71 reply
10/12mptcp: track prune recovery statusnet/mptcp/options.c net/mptcp/protocol.c net/mptcp/protocol.h +1 more+25 -21 reply
11/12mptcp: move the retrans loop to a separate helpernet/mptcp/protocol.c+43 -310 replies
12/12mptcp: let the retrans scheduler do its job.net/mptcp/protocol.c+76 -280 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH mptcp-next 00/12] mptcp: address stall under memory pressure

This an attempt to fix the data transfer stall reported by Geliang and Gang more carefully enforcing memory constraints at the MPTCP level.

The first path is from Shardul, included here as the condition addressed by such a patch is frequently hit in the relevant test-cased.

Patch 2 and 3 makes the admission check much more strict for incoming packets exceeding the memory limits, with some exception for fallback sockets.
Patch 4, 5, 6 and 7 are cleanups/refactors finalized to safely re-using TCP helpers on MPTCP skbs.
Patch 8 makes TCP pruning related helpers available to MPTCP and patch 9 makes use of them. Patch 10 addresses an edge scenario that could still lead to transfer stall under memory pressure.
Finally patch 11 and 12 improve the MPTCP-level retransmission schema to make recovery from memory pressure significanly faster.

Tested successfully vs the test cases proposed by Geliang and Gang and vs the selftests.
---
Some notes on each patch WRT ignored or false positive issues noticed by sashiko so far.
Patch 1 should go via net, included here for my own sake :-P

Paolo Abeni (12):
mptcp: do not drop partial packets
mptcp: explicitly drop over memory limits
mptcp: enforce hard limit on backlog flushing
mptcp: drop the mptcp_ooo_try_coalesce() helper
mptcp: drop the cant_coalesce CB field
mptcp: remove CB offset field
mptcp: sync mptcp skb cb layout with tcp one
tcp: expose the tcp_collapse_ofo_queue() helper to mptcp usage, too
mptcp: implemented OoO queue pruning
mptcp: track prune recovery status
mptcp: move the retrans loop to a separate helper
mptcp: let the retrans scheduler do its job.

 include/net/tcp.h    |   8 +
 net/ipv4/tcp_input.c |  54 +++--
 net/mptcp/fastopen.c |  17 +-
 net/mptcp/mib.c      |   3 +
 net/mptcp/mib.h      |   3 +
 net/mptcp/options.c  |  73 ++++++-
 net/mptcp/protocol.c | 478 +++++++++++++++++++++++++++++--------------
 net/mptcp/protocol.h |  24 ++-
 net/mptcp/subflow.c  |  11 +
 9 files changed, 484 insertions(+), 187 deletions(-)
Signature · 1 line
2.54.0