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

Rtnetlink test uses offload indication checks.

Use a busywait helper and wait until the 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/rtnetlink.sh