]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests: mptcp: check no dup close events after error
authorMatthieu Baerts (NGI0) <matttbe@kernel.org>
Tue, 27 Jan 2026 19:27:24 +0000 (20:27 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 29 Jan 2026 04:58:50 +0000 (20:58 -0800)
commit8467458dfa61b37e259e3485a5d3e415d08193c1
tree43b131c65d3ae5ae9c45135709f3148e8252cb2d
parent280d654324e33f8e6e3641f76764694c7b64c5db
selftests: mptcp: check no dup close events after error

This validates the previous commit: subflow closed events are re-sent
with less info when the initial subflow is disconnected after an error
and each time a subflow is closed after that.

In this new test, the userspace PM is involved because that's how it was
discovered, but it is not specific to it. The initial subflow is
terminated with a RESET, and that will cause the subflow disconnect.
Then, a new subflow is initiated, but also got rejected, which cause a
second subflow closed event, but not a third one.

While at it, in case of failure to get the expected amount of events,
the events are printed.

The 'Fixes' tag here below is the same as the one from the previous
commit: this patch here is not fixing anything wrong in the selftests,
but it validates the previous fix for an issue introduced by this commit
ID.

Fixes: d82809b6c5f2 ("mptcp: avoid duplicated SUB_CLOSED events")
Cc: stable@vger.kernel.org
Reviewed-by: Geliang Tang <geliang@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20260127-net-mptcp-dup-nl-events-v1-2-7f71e1bc4feb@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/mptcp_join.sh