mptcp: consolidate subflow cleanup
authorPaolo Abeni <pabeni@redhat.com>
Tue, 18 Feb 2025 18:36:12 +0000 (19:36 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 20 Feb 2025 03:05:27 +0000 (19:05 -0800)
commitc3349a22c2002947d29a98a77bfb36d97cfbfac1
treeae2b17bb629440426a38c9c717cecac496cc1a90
parent9a6c2b2bdd5ed46f3ab364c975ea7b772b29aec2
mptcp: consolidate subflow cleanup

Consolidate all the cleanup actions requiring the worker in a single
helper and ensure the dummy data fin creation for fallback socket is
performed only when the tcp rx queue is empty.

There are no functional changes intended, but this will simplify the
next patch, when the tcp rx queue spooling could be delayed at release_cb
time.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20250218-net-next-mptcp-rx-path-refactor-v1-1-4a47d90d7998@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/subflow.c