]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: fib_nexthops: Make ping timeout configurable
authorAmit Cohen <amcohen@nvidia.com>
Thu, 19 May 2022 07:09:21 +0000 (10:09 +0300)
committerJakub Kicinski <kuba@kernel.org>
Sat, 21 May 2022 00:21:37 +0000 (17:21 -0700)
commite7bdde8d68f2b9df119938ad08311ce6b11df64a
treedb3b4ab5d50418a3c4163031194b2311576919ee
parent1c06b385eb9acf01b2ec267cc38afd248b89d817
selftests: fib_nexthops: Make ping timeout configurable

Commit 66f41b38a6fa ("selftests: fib_nexthops: Make the test more robust")
increased the timeout of ping commands to 5 seconds, to make the test
more robust. Make the timeout configurable using '-w' argument to allow
user to change it depending on the system that runs the test. Some systems
suffer from slow forwarding performance, so they may need to change the
timeout.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20220519070921.3559701-1-amcohen@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/fib_nexthops.sh