]> 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)
commitc9f7849abff70b0aff875bd394f500551bc309fb
treebf1bf1ec7f8ebf6674afa9b7975c33f3f9a16134
parent225ebe4fd393e156a2fed2a377af7fabc567c2bc
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