]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfafe25982e1feeb4157e842425e7b69eddc32b9e
treebf1bf1ec7f8ebf6674afa9b7975c33f3f9a16134
parenta69c61f677725b6b329fdad5423beb07ab5de245
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