aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh
diff options
context:
space:
mode:
authorDanielle Ratson <danieller@nvidia.com>2021-01-21 15:10:24 +0200
committerJakub Kicinski <kuba@kernel.org>2021-01-22 20:42:13 -0800
commit5154b1b826d9b3e4365e0ca8c864ba28cd305041 (patch)
tree4c3df2ca3fa1deca2ed4f5f1119761cc8cc16f80 /tools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh
parentmlxsw: Register physical ports as a devlink resource (diff)
downloadlinux-dev-5154b1b826d9b3e4365e0ca8c864ba28cd305041.tar.xz
linux-dev-5154b1b826d9b3e4365e0ca8c864ba28cd305041.zip
selftests: mlxsw: Add a scale test for physical ports
Query the maximum number of supported physical ports using devlink-resource and test that this number can be reached by splitting each of the splittable ports to its width. Test that an error is returned in case the maximum number is exceeded. Signed-off-by: Danielle Ratson <danieller@nvidia.com> Signed-off-by: Ido Schimmel <idosch@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.sh2
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 d7cf33a3f18d..4a1c9328555f 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 tc_police"
+ALL_TESTS="router tc_flower mirror_gre tc_police port"
for current_test in ${TESTS:-$ALL_TESTS}; do
source ${current_test}_scale.sh