]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mptcp: be more conservative with cookie MPJ limits
authorPaolo Abeni <pabeni@redhat.com>
Fri, 18 Feb 2022 21:35:44 +0000 (13:35 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Feb 2022 12:28:01 +0000 (12:28 +0000)
commitc6d6a57f2b3e69c25f5725a7a1a69dbe93c81072
treee753c9aa09a5c5f2bb2559fa97d064bbe78323e1
parent0e78ba343056894e9365c245da782681a1075e47
selftests: mptcp: be more conservative with cookie MPJ limits

Since commit 360b6444f049 ("mptcp: remote addresses fullmesh"), an
MPTCP client can attempt creating multiple MPJ subflow simultaneusly.

In such scenario the server, when syncookies are enabled, could end-up
accepting incoming MPJ syn even above the configured subflow limit, as
the such limit can be enforced in a reliable way only after the subflow
creation. In case of syncookie, only after the 3rd ack reception.

As a consequence the related self-tests case sporadically fails, as it
verify that the server always accept the expected number of MPJ syn.

Address the issues relaxing the MPJ syn number constrain. Note that the
check on the accepted number of MPJ 3rd ack still remains intact.

Fixes: 360b6444f049 ("mptcp: remote addresses fullmesh")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/mptcp/mptcp_join.sh