]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit927c94212f034414eb1c18cf426ed095d47dacaf
tree8006aac8da0eeeb418446dfb270cddc948cb864a
parentc88fc29aa553d0a986b61bb3599f89b72a2dc1d7
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]