]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: mptcp: join: check RM_ADDR not sent over same subflow
authorMatthieu Baerts (NGI0) <matttbe@kernel.org>
Tue, 3 Mar 2026 10:56:04 +0000 (11:56 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 Mar 2026 02:21:12 +0000 (18:21 -0800)
commit560edd99b5f58b2d4bbe3c8e51e1eed68d887b0e
treee6a1501b60bf68aaa3ebac80cdefc10b2c7b7e16
parentfb8d0bccb221080630efcd9660c9f9349e53cc9e
selftests: mptcp: join: check RM_ADDR not sent over same subflow

This validates the previous commit: RM_ADDR were sent over the first
found active subflow which could be the same as the one being removed.
It is more likely to loose this notification.

For this check, RM_ADDR are explicitly dropped when trying to send them
over the initial subflow, when removing the endpoint attached to it. If
it is dropped, the test will complain because some RM_ADDR have not been
received.

Note that only the RM_ADDR are dropped, to allow the linked subflow to
be quickly and cleanly closed. To only drop those RM_ADDR, a cBPF byte
code is used. If the IPTables commands fail, that's OK, the tests will
continue to pass, but not validate this part. This can be ignored:
another subtest fully depends on such command, and will be marked as
skipped.

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: 8dd5efb1f91b ("mptcp: send ack for rm_addr")
Cc: stable@vger.kernel.org
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-3-4b5462b6f016@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/mptcp_join.sh