]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mlxsw: Add a scale test for physical ports
authorDanielle Ratson <danieller@nvidia.com>
Thu, 21 Jan 2021 13:10:24 +0000 (15:10 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 23 Jan 2021 04:42:13 +0000 (20:42 -0800)
commit5154b1b826d9b3e4365e0ca8c864ba28cd305041
tree4c3df2ca3fa1deca2ed4f5f1119761cc8cc16f80
parent321f7ab0d45899fe0313139822d69c2d5adbb760
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>
tools/testing/selftests/drivers/net/mlxsw/port_scale.sh [new file with mode: 0644]
tools/testing/selftests/drivers/net/mlxsw/spectrum-2/port_scale.sh [new file with mode: 0644]
tools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh
tools/testing/selftests/drivers/net/mlxsw/spectrum/port_scale.sh [new file with mode: 0644]
tools/testing/selftests/drivers/net/mlxsw/spectrum/resource_scale.sh