diff options
author | Ido Schimmel <idosch@nvidia.com> | 2021-10-24 10:19:11 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-25 14:10:11 +0100 |
commit | e860419684b547dd4daa8143ad70a97955571482 (patch) | |
tree | 5bb117494b0171f0eadb9a0f256742a665116ed9 /tools/testing/selftests/net | |
parent | 535ac9a5fba51acce1cbde2257a0ef8f35d4ac70 (diff) | |
download | linux-e860419684b547dd4daa8143ad70a97955571482.tar.gz |
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>
Diffstat (limited to 'tools/testing/selftests/net')
-rw-r--r-- | tools/testing/selftests/net/forwarding/devlink_lib.sh | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tools/testing/selftests/net/forwarding/devlink_lib.sh b/tools/testing/selftests/net/forwarding/devlink_lib.sh index 2c14a86adaaa..de9944d42027 100644 --- a/tools/testing/selftests/net/forwarding/devlink_lib.sh +++ b/tools/testing/selftests/net/forwarding/devlink_lib.sh @@ -563,12 +563,6 @@ devlink_trap_group_policer_get() | jq '.[][][]["policer"]' } -devlink_trap_policer_ids_get() -{ - devlink -j -p trap policer show \ - | jq '.[]["'$DEVLINK_DEV'"][]["policer"]' -} - devlink_port_by_netdev() { local if_name=$1 |