]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mptcp: fix diag instability
authorPaolo Abeni <pabeni@redhat.com>
Fri, 18 Feb 2022 21:35:38 +0000 (13:35 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Feb 2022 12:28:00 +0000 (12:28 +0000)
commit2eb01c83f952685a2e11cf3cd7d4e32131458c88
tree0e83ec0c299bcede55e34e77ba83722e6bfdd9f5
parent72bbe1dc9a428d7b93c03a620e79c5ce9f45067e
selftests: mptcp: fix diag instability

Instead of waiting for an arbitrary amount of time for the MPTCP
MP_CAPABLE handshake to complete, explicitly wait for the relevant
socket to enter into the established status.

Additionally let the data transfer application use the slowest
transfer mode available (-r), to cope with very slow host, or
high jitter caused by hosting VMs.

Fixes: cae0962fd3c5 ("selftests/mptcp: add diag interface tests")
Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/258
Reported-and-tested-by: Matthieu Baerts <matthieu.baerts@tessares.net>
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/diag.sh