]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mlxsw: Add test cases for devlink-trap policers
authorIdo Schimmel <idosch@mellanox.com>
Mon, 30 Mar 2020 19:38:32 +0000 (22:38 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Mar 2020 00:54:59 +0000 (17:54 -0700)
commita3e3194a2d9096fc6b1192fa3b258b779e78d472
tree3a4b1046c12981dfd0c83afdf09c017e92ca7822
parentfd30d816bf7b5eb14cb6dd2e8db3079abb2d0ffc
selftests: mlxsw: Add test cases for devlink-trap policers

Add test cases that verify that each registered packet trap policer:

* Honors that imposed limitations of rate and burst size
* Able to police trapped packets to the specified rate
* Able to police trapped packets to the specified burst size
* Able to be unbound from its trap group

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/mlxsw/devlink_trap_policer.sh [new file with mode: 0755]
tools/testing/selftests/net/forwarding/devlink_lib.sh