]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb6e7653dee56705127af2a6e9b365401a2c39bc4
tree5bb117494b0171f0eadb9a0f256742a665116ed9
parent1b4bb8e73e116a605700e5f4ca2e0f9ad9efccca
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