All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v7 mptcp-next 0/4] mptcp: introduce backlog processing
@ 2025-10-27 14:40 Paolo Abeni
  2025-10-27 14:40 ` [PATCH v7 mptcp-next 1/4] DO-NOT-MERGE: mptcp: enabled by default Paolo Abeni
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Paolo Abeni @ 2025-10-27 14:40 UTC (permalink / raw)
  To: mptcp; +Cc: Mat Martineau, geliang

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 3 and 11 for the gory details.
---
v6 -> v7:
 - dropped merged patches
 - added patch 1/4
 - refactor borrow/account logic, see individual patches for the details

Matthieu Baerts (1):
  DO-NOT-MERGE: mptcp: enabled by default

Paolo Abeni (3):
  mptcp: handle first subflow closing consistently
  mptcp: borrow forward memory from subflow
  mptcp: introduce mptcp-level backlog

 net/mptcp/Kconfig      |   1 +
 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   | 112 +++++++++++++++++++++++++++++++++++------
 net/mptcp/protocol.h   |  39 +++++++++++++-
 7 files changed, 142 insertions(+), 19 deletions(-)

-- 
2.51.0


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

end of thread, other threads:[~2025-10-27 14:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-27 14:40 [PATCH v7 mptcp-next 0/4] mptcp: introduce backlog processing Paolo Abeni
2025-10-27 14:40 ` [PATCH v7 mptcp-next 1/4] DO-NOT-MERGE: mptcp: enabled by default Paolo Abeni
2025-10-27 14:40 ` [PATCH v7 mptcp-next 2/4] mptcp: handle first subflow closing consistently Paolo Abeni
2025-10-27 14:40 ` [PATCH v7 mptcp-next 3/4] mptcp: borrow forward memory from subflow Paolo Abeni
2025-10-27 14:54 ` [PATCH v7 mptcp-next 0/4] mptcp: introduce backlog processing Paolo Abeni

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.