OSDN Git Service

selftests: mlxsw: Reduce test run time
authorIdo Schimmel <idosch@nvidia.com>
Sun, 24 Oct 2021 07:19:11 +0000 (10:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Oct 2021 13:10:11 +0000 (14:10 +0100)
commite860419684b547dd4daa8143ad70a97955571482
tree5bb117494b0171f0eadb9a0f256742a665116ed9
parent535ac9a5fba51acce1cbde2257a0ef8f35d4ac70
selftests: mlxsw: Reduce test run time

Instead of iterating over all the available trap policers, only perform
the tests with three policers: The first, the last and the one in the
middle of the range. On a Spectrum-3 system, this reduces the run time
from almost an hour to a few minutes.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/mlxsw/devlink_trap_policer.sh
tools/testing/selftests/net/forwarding/devlink_lib.sh