Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: a5ee171d087e ("selftests: mlxsw: qos_mc_aware: Add a test for UC awareness")
Signed-off-by: Amit Cohen <amitc@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Amit Cohen and committed by
David S. Miller
46ca1117 4340f42f

+1 -1
+1 -1
tools/testing/selftests/drivers/net/mlxsw/qos_mc_aware.sh
··· 300 300 local i 301 301 302 302 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 304 304 ((passes++)) 305 305 fi 306 306