diff options
author | Ido Schimmel <idosch@mellanox.com> | 2020-07-15 11:27:32 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-07-15 18:10:00 -0700 |
commit | 5061e773264b11fdc51c61d6619aca76efd3424f (patch) | |
tree | 4bec9f85c72c37658c0a596b9fe3fbe9d75ce89d /tools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh | |
parent | selftests: mlxsw: tc_restrictions: Test tc-police restrictions (diff) | |
download | linux-dev-5061e773264b11fdc51c61d6619aca76efd3424f.tar.xz linux-dev-5061e773264b11fdc51c61d6619aca76efd3424f.zip |
selftests: mlxsw: Add scale test for tc-police
Query the maximum number of supported policers using devlink-resource
and test that this number can be reached by configuring tc filters with
police action. Test that an error is returned in case the maximum number
is exceeded.
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh')
-rwxr-xr-x | tools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh b/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh index fd583a171db7..d7cf33a3f18d 100755 --- a/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh +++ b/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh @@ -28,7 +28,7 @@ cleanup() trap cleanup EXIT -ALL_TESTS="router tc_flower mirror_gre" +ALL_TESTS="router tc_flower mirror_gre tc_police" for current_test in ${TESTS:-$ALL_TESTS}; do source ${current_test}_scale.sh |