summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@nvidia.com>2023-07-11 18:44:01 +0200
committerJakub Kicinski <kuba@kernel.org>2023-07-12 16:57:18 -0700
commit45c5a384765bb879f8a07e0056c0885771124271 (patch)
tree20ce96e88c3b2f51077ec2c1e80e2b38da074701 /tools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh
parentfe22f7410527c2077223b5fd0fc0458db912f0db (diff)
selftests: mlxsw: Add scale test for port ranges
Query the maximum number of supported port range registers using devlink-resource and test that this number can be reached by configuring tc filters with different port ranges. Test that an error is returned in case the maximum number is exceeded. Signed-off-by: Ido Schimmel <idosch@nvidia.com> Reviewed-by: Petr Machata <petrm@nvidia.com> Signed-off-by: Petr Machata <petrm@nvidia.com> Link: https://lore.kernel.org/r/48eee181270d9f291e09d1858c7b26a3f7fcc164.1689092769.git.petrm@nvidia.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-xtools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh1
1 files changed, 1 insertions, 0 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 688338bbeb97..a88d8a8c85f2 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
@@ -33,6 +33,7 @@ ALL_TESTS="
port
rif_mac_profile
rif_counter
+ port_range
"
for current_test in ${TESTS:-$ALL_TESTS}; do