selftests: mlxsw: Reduce router scale running time using offload indication
authorDanielle Ratson <danieller@mellanox.com>
Thu, 27 Feb 2020 07:50:20 +0000 (08:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Feb 2020 19:10:15 +0000 (11:10 -0800)
commite781eedae215ed42d6967d396f64ffad8e427a39
treec736ff1ea9f5ae40d8bd919320b977b203d5746f
parentabfce9e0620216ba8098346172165370a875e3e5
selftests: mlxsw: Reduce router scale running time using offload indication

Currently, the test inserts X /32 routes and for each route it is
testing that a packet sent from the first host is received by the second
host, which is very time-consuming.

Instead only validate the offload flag of each route and get the same result.

Wait between the creation of the routes and the offload validation in
order to make sure that all the routes were successfully offloaded.

Signed-off-by: Danielle Ratson <danieller@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/router_scale.sh