mptcp: address stall under memory pressure
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest12 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | mptcp: do not drop partial packetsnet/ | +19 | 0 replies | |
| 2/12 | mptcp: explicitly drop over memory limitsnet/ net/ | +50 | 1 reply | |
| 3/12 | mptcp: enforce hard limit on backlog flushingnet/ | +6 | 0 replies | |
| 4/12 | mptcp: drop the mptcp_ooo_try_coalesce() helpernet/ | +6 | 0 replies | |
| 5/12 | mptcp: drop the cant_coalesce CB fieldnet/ net/ net/ +1 more | +37 | 0 replies | |
| 6/12 | mptcp: remove CB offset fieldnet/ net/ net/ +1 more | +63 | 1 reply | |
| 7/12 | mptcp: sync mptcp skb cb layout with tcp onenet/ net/ net/ | +66 | 0 replies | |
| 8/12 | tcp: expose the tcp_collapse_ofo_queue() helper to mptcp usage, tooinclude/ net/ | +43 | 0 replies | |
| 9/12 | mptcp: implemented OoO queue pruningnet/ net/ net/ +2 more | +112 | 1 reply | |
| 10/12 | mptcp: track prune recovery statusnet/ net/ net/ +1 more | +25 | 1 reply | |
| 11/12 | mptcp: move the retrans loop to a separate helpernet/ | +43 | 0 replies | |
| 12/12 | mptcp: let the retrans scheduler do its job.net/ | +76 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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