selftests: mlxsw: Add a test case for devlink-trap
authorIdo Schimmel <idosch@mellanox.com>
Wed, 21 Aug 2019 07:19:37 +0000 (10:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Aug 2019 19:58:39 +0000 (12:58 -0700)
commit1455865a040a0f632dce5d8f7cb6604517f56c6d
tree4ebf3007476943062990dcad912ec9f85f873f1f
parent170270329b1b5f854e8a98aea16bfa4af6922146
selftests: mlxsw: Add a test case for devlink-trap

Test generic devlink-trap functionality over mlxsw. These tests are not
specific to a single trap, but do not check the devlink-trap common
infrastructure either.

Currently, the only test case is device deletion (by reloading the
driver) while packets are being trapped.

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