OSDN Git Service

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)
commit9f3e63c5d69814a9df85f7f0fc77eac0765d4fba
tree3a4b1046c12981dfd0c83afdf09c017e92ca7822
parent39defcbba0cd24ef4d5547370c4d689d4a7863af
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