]> 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)
commit0518bbf00595553ad0a8ab709be94c7bce838bc9
tree4c3df2ca3fa1deca2ed4f5f1119761cc8cc16f80
parentc3b65be59258a4b95ff1b6ff1072175a739c5827
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