[PATCH net-next 0/7] mptcp: rx path refactor
From: Matthieu Baerts (NGI0)
Date: Tue Feb 18 2025 - 13:36:39 EST
Paolo worked on this RX path refactor for these two main reasons:
- Currently, the MPTCP RX path introduces quite a bit of 'exceptional'
accounting/locking processing WRT to plain TCP, adding up to the
implementation complexity in a miserable way.
- The performance gap WRT plain TCP for single subflow connections is
quite measurable.
The present refactor addresses both the above items: most of the
additional complexity is dropped, and single stream performances
increase measurably, from 55Gbps to 71Gbps in Paolo's loopback test. As
a reference, plain TCP was around 84Gbps on the same host.
The above comes to a price: the patch are invasive, even in subtle ways.
Note: patch 5/7 removes the sk_forward_alloc_get() helper, which caused
some trivial modifications in different places in the net tree: sockets,
IPv4, sched. That's why a few more people have been Cc here. Feel free
to only look at this patch 5/7.
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@xxxxxxxxxx>
---
Paolo Abeni (7):
mptcp: consolidate subflow cleanup
mptcp: drop __mptcp_fastopen_gen_msk_ackseq()
mptcp: move the whole rx path under msk socket lock protection
mptcp: cleanup mem accounting
net: dismiss sk_forward_alloc_get()
mptcp: dismiss __mptcp_rmem()
mptcp: micro-optimize __mptcp_move_skb()
include/net/sock.h | 13 ---
net/core/sock.c | 2 +-
net/ipv4/af_inet.c | 2 +-
net/ipv4/inet_diag.c | 2 +-
net/mptcp/fastopen.c | 27 +----
net/mptcp/protocol.c | 317 ++++++++++++++++-----------------------------------
net/mptcp/protocol.h | 22 ++--
net/mptcp/subflow.c | 36 +++---
net/sched/em_meta.c | 2 +-
9 files changed, 134 insertions(+), 289 deletions(-)
---
base-commit: b4cb730862cf4f59ac3dcb83b9ac4eeb29dbfb0e
change-id: 20250106-net-next-mptcp-rx-path-refactor-f44579efb57c
Best regards,
--
Matthieu Baerts (NGI0) <matttbe@xxxxxxxxxx>