OSDN Git Service

selftests: mlxsw: Test policers' occupancy
authorIdo Schimmel <idosch@mellanox.com>
Wed, 15 Jul 2020 08:27:33 +0000 (11:27 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 16 Jul 2020 01:10:00 +0000 (18:10 -0700)
commit46b171d7d73aedfae8070622f1798ac4b124284c
tree2be3e396469bd2376f5b6a981c306a7ef9665084
parent5061e773264b11fdc51c61d6619aca76efd3424f
selftests: mlxsw: Test policers' occupancy

Test that policers shared by different tc filters are correctly
reference counted by observing policers' occupancy via devlink-resource.

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/tc_police_occ.sh [new file with mode: 0755]
tools/testing/selftests/net/forwarding/devlink_lib.sh