]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mptcp: pm: in-kernel: record fullmesh endp nb
authorMatthieu Baerts (NGI0) <matttbe@kernel.org>
Sat, 1 Nov 2025 17:56:51 +0000 (18:56 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 5 Nov 2025 01:15:06 +0000 (17:15 -0800)
commitf88191c7f3618405f1fc5c331a94ebfe601c5b08
tree8fd66c5c769a64a6410a5beec4e2b5b922fa12e4
parentb117befe8afde52fe8d961e763b54bf907950b30
mptcp: pm: in-kernel: record fullmesh endp nb

Instead of iterating over all endpoints, under RCU read lock, just to
check if one of them as the fullmesh flag, we can keep a counter of
fullmesh endpoint, similar to what is done with the other flags.

This counter is now checked, before iterating over all endpoints.

Similar to the other counters, this new one is also exposed. A userspace
app can then know when it is being used in a fullmesh mode, with
potentially (too) many subflows.

Reviewed-by: Geliang Tang <geliang@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20251101-net-next-mptcp-fm-endp-nb-bind-v1-1-b4166772d6bb@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/uapi/linux/mptcp.h
net/mptcp/pm_kernel.c
net/mptcp/protocol.h
net/mptcp/sockopt.c