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)
commit5061e773264b11fdc51c61d6619aca76efd3424f
tree4bec9f85c72c37658c0a596b9fe3fbe9d75ce89d
parentcb12d176326722e2f4ede4e459e86ea36607c555
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]