summaryrefslogtreecommitdiff
path: root/Documentation/networking/devlink-trap.rst
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@mellanox.com>2019-08-17 16:28:25 +0300
committerDavid S. Miller <davem@davemloft.net>2019-08-17 22:40:09 +0300
commit95766451bfb82f972bf3fea93fc6e91a904cf624 (patch)
treece77ccefee1384488408d9b9e49e2148359f30d9 /Documentation/networking/devlink-trap.rst
parentb3cb7df9ecb5d73a7a116a50a92ad992f20798cf (diff)
downloadlinux-95766451bfb82f972bf3fea93fc6e91a904cf624.tar.xz
Documentation: Add a section for devlink-trap testing
Signed-off-by: Ido Schimmel <idosch@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/networking/devlink-trap.rst')
-rw-r--r--Documentation/networking/devlink-trap.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/networking/devlink-trap.rst b/Documentation/networking/devlink-trap.rst
index fe4f6e149623..c20c7c483664 100644
--- a/Documentation/networking/devlink-trap.rst
+++ b/Documentation/networking/devlink-trap.rst
@@ -196,3 +196,13 @@ narrow. The description of these groups must be added to the following table:
* - ``buffer_drops``
- Contains packet traps for packets that were dropped by the device due to
an enqueue decision
+
+Testing
+=======
+
+See ``tools/testing/selftests/drivers/net/netdevsim/devlink_trap.sh`` for a
+test covering the core infrastructure. Test cases should be added for any new
+functionality.
+
+Device drivers should focus their tests on device-specific functionality, such
+as the triggering of supported packet traps.