selftests: netdevsim: Add test cases for devlink-trap policers
authorIdo Schimmel <idosch@mellanox.com>
Mon, 30 Mar 2020 19:38:24 +0000 (22:38 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Mar 2020 00:54:59 +0000 (17:54 -0700)
commit5fbff58e27a16abd8213671ff73ec866629c5fdf
treef2a5d7b8f958020af9a61c48b81cdac2907cc484
parent0dc8249a2e7ce38d9b307d1277b64f8189f53dfc
selftests: netdevsim: Add test cases for devlink-trap policers

Add test cases for packet trap policer set / show commands as well as
for the binding of these policers to packet trap groups.

Both good and bad flows are tested for maximum coverage.

v2:
* Add test case with new 'fail_trap_policer_set' knob
* Add test case for partially modified trap group

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/netdevsim/devlink_trap.sh
tools/testing/selftests/net/forwarding/devlink_lib.sh