]> 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)
commit2dfa8e4aa687e6713a3608b33db0616f0c7f60bd
treee753c9aa09a5c5f2bb2559fa97d064bbe78323e1
parente8db28423fd3f3d170c7c1318487c8e6c8de8e28
selftests: mptcp: be more conservative with cookie MPJ limits

Since commit bac18ec7784a ("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: bac18ec7784a ("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