Skip to content

RFC mptcp: just another receive path refactor

Paolo Abeni mptcp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mptcp: wake-up readers only for in sequence data.net/mptcp/protocol.c net/mptcp/protocol.h net/mptcp/subflow.c+14 -270 replies
2/4mptcp: don't clear MPTCP_DATA_READY in sk_wait_event()net/mptcp/protocol.c+2 -40 replies
3/4mptcp: move the whole rx path under msk socket lock protectionnet/mptcp/protocol.c net/mptcp/protocol.h+39 -572 replies
4/4mptcp: cleanup mem accounting.net/mptcp/protocol.c net/mptcp/protocol.h+14 -1782 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by.

PatchPaolo Abeni
1/4
2/4
3/4
4/4Singed-off-by

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

Read the v1 thread

Cover letter [RFC PATCH 0/4] mptcp: just another receive path refactor

Some recent issues outlined we have perhaps too much complexity in the receive path and memory accounting.

After recent changes in release_cb() we can drop most such complexity in favour of some more traditional RX/memory accounting schema.

This is the result.

The first 2 patches are actually bugfixes, even if I don't understand why we almost never hit the condition addressed by patch 1/4 (and the patched kernel hits hit frequently).

The 3rd patch introduces the major change, and the fouth is just cleanup.

This could have some negative performance effects, as on average more locking is required for each packet. I'm doing some perf test and will report the results.

Paolo Abeni (4):
mptcp: wake-up readers only for in sequence data.
mptcp: don't clear MPTCP_DATA_READY in sk_wait_event()
mptcp: move the whole rx path under msk socket lock protection
mptcp: cleanup mem accounting.

 net/mptcp/protocol.c | 298 +++++++++----------------------------------
 net/mptcp/protocol.h |  20 +--
 net/mptcp/subflow.c  |  15 +--
 3 files changed, 68 insertions(+), 265 deletions(-)
Signature · 1 line
2.26.3