]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mptcp: fix mibit vs mbit mix up
authorMatthieu Baerts <matthieu.baerts@tessares.net>
Tue, 15 Nov 2022 22:10:46 +0000 (14:10 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 18 Nov 2022 05:43:58 +0000 (21:43 -0800)
commita387743d7c99ebdabc377e5be467a379f82f33e0
treed50730a7452e89519a4a178de6ba251b8aff20ee
parent8cbf37038af3f6e1b47932b30b12eaae078f18f1
selftests: mptcp: fix mibit vs mbit mix up

The estimated time was supposing the rate was expressed in mibit
(bit * 1024^2) but it is in mbit (bit * 1000^2).

This makes the threshold higher but in a more realistic way to avoid
false positives reported by CI instances.

Before this patch, the thresholds were at 7561/4005ms and now they are
at 7906/4178ms.

While at it, also fix a typo in the linked comment, spotted by Mat.

Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/310
Fixes: 3896873079e5 ("mptcp: simult flow self-tests")
Suggested-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/simult_flows.sh