]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mptcp: pm: avoid sending RM_ADDR over same subflow
authorMatthieu Baerts (NGI0) <matttbe@kernel.org>
Tue, 3 Mar 2026 10:56:03 +0000 (11:56 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 Mar 2026 02:21:12 +0000 (18:21 -0800)
commitfb8d0bccb221080630efcd9660c9f9349e53cc9e
tree91c279a402616695fe7ab51b744eb28d59fef245
parent8c09412e584d9bcc0e71d758ec1008d1c8d1a326
mptcp: pm: avoid sending RM_ADDR over same subflow

RM_ADDR are sent over an active subflow, the first one in the subflows
list. There is then a high chance the initial subflow is picked. With
the in-kernel PM, when an endpoint is removed, a RM_ADDR is sent, then
linked subflows are closed. This is done for each active MPTCP
connection.

MPTCP endpoints are likely removed because the attached network is no
longer available or usable. In this case, it is better to avoid sending
this RM_ADDR over the subflow that is going to be removed, but prefer
sending it over another active and non stale subflow, if any.

This modification avoids situations where the other end is not notified
when a subflow is no longer usable: typically when the endpoint linked
to the initial subflow is removed, especially on the server side.

Fixes: 8dd5efb1f91b ("mptcp: send ack for rm_addr")
Cc: stable@vger.kernel.org
Reported-by: Frank Lorenz <lorenz-frank@web.de>
Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/612
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20260303-net-mptcp-misc-fixes-7-0-rc2-v1-2-4b5462b6f016@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/pm.c