Skip to content

mptcp: introduce backlog processing

Paolo Abeni mptcp 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest4 patches 5 repliesIn review
  2. v7 posting 2/24 patches 6 repliesSuperseded
  3. v7 posting 1/24 patches 1 replySuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v611 patches11 repliesSuperseded
v510 patches22 repliesSuperseded
v48 patches5 repliesSuperseded

Changes in v8 from the cover letter

- only minor changes: typos, added warn_on().
- notably no BL loop limiting, as discussed on previous iteration

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mptcp: handle first subflow closing consistentlynet/mptcp/protocol.c net/mptcp/protocol.h+11 -60 replies
2/4mptcp: borrow forward memory from subflownet/mptcp/fastopen.c net/mptcp/mib.c net/mptcp/mib.h +2 more+46 -110 replies
3/4mptcp: introduce mptcp-level backlognet/mptcp/mptcp_diag.c net/mptcp/protocol.c net/mptcp/protocol.h+97 -90 replies
4/4mptcp: leverage the backlog for RX packet processingnet/mptcp/protocol.c net/mptcp/protocol.h+68 -542 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMat Martineau
SeriesR-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v8 thread

Cover letter [PATCH mptcp-next v8 0/4] mptcp: introduce backlog processing

This series includes RX path improvement built around backlog processing

The main goals are improving the RX performances _and_ increase the long term maintainability.

Patch 1 and 2 refactor the memory account logic in the RX path, so that the msk don't need anymore to do fwd allocation, removing possible drop sources.

Patch 3 and 4 cope with backlog processing. Patch 3 introduces the helpers needed to manipulate the msk-level backlog, and the data struct itself, without any actual functional change. Patch 4 finally use the backlog for RX skb processing. Note that MPTCP can't use the sk_backlog, as the mptcp release callback can also release and re-acquire the msk-level spinlock and core backlog processing works under the assumption that such event is not possible.

A relevant point is memory accounts for skbs in the backlog.

It's somewhat "original" due to MPTCP constraints. Such skbs use space from the incoming subflow receive buffer, but are fwd memory accounted on the msk, using memory borrowed by the subflow.

Instead the msk borrows memory from the subflow and reserve it for the backlog - see patch 2 and 4 for the gory details.
---
v7 -> v8:
- only minor changes: typos, added warn_on().
- notably no BL loop limiting, as discussed on previous iteration

Paolo Abeni (4):
mptcp: handle first subflow closing consistently
mptcp: borrow forward memory from subflow
mptcp: introduce mptcp-level backlog
mptcp: leverage the backlog for RX packet processing

 net/mptcp/fastopen.c   |   4 +-
 net/mptcp/mib.c        |   1 -
 net/mptcp/mib.h        |   1 -
 net/mptcp/mptcp_diag.c |   3 +-
 net/mptcp/protocol.c   | 232 +++++++++++++++++++++++++++++------------
 net/mptcp/protocol.h   |  45 +++++++-
 6 files changed, 214 insertions(+), 72 deletions(-)
Signature · 1 line
2.51.0