OSDN Git Service

selftests: mlxsw: Use busywait helper in blackhole routes test
authorDanielle Ratson <danieller@mellanox.com>
Thu, 27 Feb 2020 07:50:11 +0000 (08:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Feb 2020 19:10:14 +0000 (11:10 -0800)
commit0c22f993c91a7c215466b9aa833d25df05367dee
tree7892dd8b26f032f65a04dbd2cb7ad143f9148cee
parent5d66773f4158894f2266398ecbdaf2f94a89348b
selftests: mlxsw: Use busywait helper in blackhole routes test

Blackhole routes test uses offload indication checks.

Use busywait helper and wait until the routes offload indication is set or
fail if it reaches timeout.

Signed-off-by: Danielle Ratson <danieller@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/mlxsw/blackhole_routes.sh
tools/testing/selftests/net/forwarding/lib.sh