selftests: devlink_trap: Add test cases for devlink-trap
authorIdo Schimmel <idosch@mellanox.com>
Sat, 17 Aug 2019 13:28:24 +0000 (16:28 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Aug 2019 19:40:09 +0000 (12:40 -0700)
commitb3cb7df9ecb5d73a7a116a50a92ad992f20798cf
tree8006aac8da0eeeb418446dfb270cddc948cb864a
parenta054c8d90bac321d804b789a82f9238f5a80a668
selftests: devlink_trap: Add test cases for devlink-trap

Add test cases for devlink-trap on top of the netdevsim implementation.

The tests focus on the devlink-trap core infrastructure and user space
API. They test both good and bad flows and also dismantle of the netdev
and devlink device used to report trapped packets.

This allows device drivers to focus their tests on device-specific
functionality.

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