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

Vxlan 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/vxlan.sh
tools/testing/selftests/net/forwarding/lib.sh