Skip to content

Commit 46ca111

Browse files
amitcohen1davem330
authored andcommitted
selftests: mlxsw: qos_mc_aware: Specify arping timeout as an integer
Starting from iputils s20190709 (used in Fedora 31), arping does not support timeout being specified as a decimal: $ arping -c 1 -I swp1 -b 192.0.2.66 -q -w 0.1 arping: invalid argument: '0.1' Previously, such timeouts were rounded to an integer. Fix this by specifying the timeout as an integer. Fixes: a5ee171 ("selftests: mlxsw: qos_mc_aware: Add a test for UC awareness") Signed-off-by: Amit Cohen <[email protected]> Reviewed-by: Petr Machata <[email protected]> Signed-off-by: Ido Schimmel <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 4340f42 commit 46ca111

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/drivers/net/mlxsw/qos_mc_aware.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ test_uc_aware()
300300
local i
301301

302302
for ((i = 0; i < attempts; ++i)); do
303-
if $ARPING -c 1 -I $h1 -b 192.0.2.66 -q -w 0.1; then
303+
if $ARPING -c 1 -I $h1 -b 192.0.2.66 -q -w 1; then
304304
((passes++))
305305
fi
306306

0 commit comments

Comments
 (0)