selftests: mlxsw: Add test cases for devlink-trap L2 drops
authorIdo Schimmel <idosch@mellanox.com>
Wed, 21 Aug 2019 07:19:36 +0000 (10:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Aug 2019 19:58:39 +0000 (12:58 -0700)
commit170270329b1b5f854e8a98aea16bfa4af6922146
tree2d628268b9d5a986ad49f4c98ca95f49df7e324e
parentb5ce611fd96e18711d1b580170676fba9cafe258
selftests: mlxsw: Add test cases for devlink-trap L2 drops

Test that each supported packet trap is triggered under the right
conditions and that packets are indeed dropped and not forwarded.

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_l2_drops.sh [new file with mode: 0755]