]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mptcp: tweak simult_flows for debug kernels
authorPaolo Abeni <pabeni@redhat.com>
Fri, 8 Jul 2022 17:14:09 +0000 (10:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 Jul 2022 11:19:23 +0000 (12:19 +0100)
commit85690613575fe2a089839f0392bf2d1d3f58f7c2
treedd23e8c9bf90f19693d9d0b0e7c6df6d4bd9c234
parent17cfdd6c29a241368e9e2ffee54d4f03537200ca
selftests: mptcp: tweak simult_flows for debug kernels

The mentioned test measures the transfer run-time to verify
that the user-space program is able to use the full aggregate B/W.

Even on (virtual) link-speed-bound tests, debug kernel can slow
down the transfer enough to cause sporadic test failures.

Instead of unconditionally raising the maximum allowed run-time,
tweak when the running kernel is a debug one, and use some simple/
rough heuristic to guess such scenarios.

Note: this intentionally avoids looking for /boot/config-<version> as
the latter file is not always available in our reference CI
environments.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Co-developed-by: Mat Martineau <mathew.j.martineau@linux.intel.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/simult_flows.sh