OSDN Git Service

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)
commit5feba47273952918e6563d692d9c5ce35a2165b3
treedb3b4ab5d50418a3c4163031194b2311576919ee
parent9ee152ee3ee3568b1a3302f2bb816d5440e6f5f1
selftests: fib_nexthops: Make ping timeout configurable

Commit 49bb39bddad2 ("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