All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH mptcp-next v8 0/4] mptcp: introduce backlog processing
@ 2025-11-04 15:59 Paolo Abeni
  2025-11-04 15:59 ` [PATCH mptcp-next v8 1/4] mptcp: handle first subflow closing consistently Paolo Abeni
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Paolo Abeni @ 2025-11-04 15:59 UTC (permalink / raw)
  To: mptcp; +Cc: Mat Martineau

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(-)

-- 
2.51.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-11-05 15:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-04 15:59 [PATCH mptcp-next v8 0/4] mptcp: introduce backlog processing Paolo Abeni
2025-11-04 15:59 ` [PATCH mptcp-next v8 1/4] mptcp: handle first subflow closing consistently Paolo Abeni
2025-11-04 15:59 ` [PATCH mptcp-next v8 2/4] mptcp: borrow forward memory from subflow Paolo Abeni
2025-11-04 15:59 ` [PATCH mptcp-next v8 3/4] mptcp: introduce mptcp-level backlog Paolo Abeni
2025-11-04 15:59 ` [PATCH mptcp-next v8 4/4] mptcp: leverage the backlog for RX packet processing Paolo Abeni
2025-11-05 10:43   ` Matthieu Baerts
2025-11-05 15:05     ` Paolo Abeni
2025-11-04 17:38 ` [PATCH mptcp-next v8 0/4] mptcp: introduce backlog processing MPTCP CI
2025-11-04 22:50 ` Mat Martineau
2025-11-05  9:42 ` Matthieu Baerts

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.