]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mlxsw: Add scale test for tc-police
authorIdo Schimmel <idosch@mellanox.com>
Wed, 15 Jul 2020 08:27:32 +0000 (11:27 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 16 Jul 2020 01:10:00 +0000 (18:10 -0700)
commit88b20255acadf6c2ef9d4c24f3e9f7e4dbd7dcfa
tree4bec9f85c72c37658c0a596b9fe3fbe9d75ce89d
parent29dea57b7be2e0a7f0bc304372c959d2c2ebba71
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>
tools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh
tools/testing/selftests/drivers/net/mlxsw/spectrum-2/tc_police_scale.sh [new file with mode: 0644]
tools/testing/selftests/drivers/net/mlxsw/spectrum/resource_scale.sh
tools/testing/selftests/drivers/net/mlxsw/spectrum/tc_police_scale.sh [new file with mode: 0644]
tools/testing/selftests/drivers/net/mlxsw/tc_police_scale.sh [new file with mode: 0644]