]> www.infradead.org Git - users/willy/pagecache.git/commit
mptcp: pm: do not remove closing subflows
authorMatthieu Baerts (NGI0) <matttbe@kernel.org>
Tue, 8 Oct 2024 11:04:55 +0000 (13:04 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 10 Oct 2024 02:43:44 +0000 (19:43 -0700)
commitdb0a37b7ac27d8ca27d3dc676a16d081c16ec7b9
tree5646c135f52ca6941f2cc8c7754ff0deacdf8489
parent119d51e225febc8152476340a880f5415a01e99e
mptcp: pm: do not remove closing subflows

In a previous fix, the in-kernel path-manager has been modified not to
retrigger the removal of a subflow if it was already closed, e.g. when
the initial subflow is removed, but kept in the subflows list.

To be complete, this fix should also skip the subflows that are in any
closing state: mptcp_close_ssk() will initiate the closure, but the
switch to the TCP_CLOSE state depends on the other peer.

Fixes: 58e1b66b4e4b ("mptcp: pm: do not remove already closed subflows")
Cc: stable@vger.kernel.org
Suggested-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20241008-net-mptcp-fallback-fixes-v1-4-c6fb8e93e551@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/pm_netlink.c