]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: mptcp: validate MPJoinRejected counter
authorMatthieu Baerts (NGI0) <matttbe@kernel.org>
Sun, 13 Apr 2025 09:34:37 +0000 (11:34 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Apr 2025 15:21:47 +0000 (08:21 -0700)
commit98dea4fd6315c17f4e072deada6047d641995777
tree0a36b5110f06e9b70074eb9359ee2804372b2e64
parent4ce7fb8de556c0a16c17b5d11d54fa21479f2552
selftests: mptcp: validate MPJoinRejected counter

The parent commit adds this new counter, incremented when receiving a
connection request, if the PM didn't allow the creation of new subflows.

Most of the time, it is then kept at 0, except when the PM limits cause
the receiver side to reject new MPJoin connections. This is the case in
the following tests:

 - single subflow, limited by server
 - multiple subflows, limited by server
 - subflows limited by server w cookies
 - userspace pm type rejects join
 - userspace pm type prevents mp_prio

Simply set join_syn_rej=1 when checking the MPJoin counters for these
tests.

Reviewed-by: Geliang Tang <geliang@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20250413-net-next-mptcp-sched-mib-sft-misc-v2-6-0f83a4350150@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/mptcp_join.sh