summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/config
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@mellanox.com>2020-09-29 10:15:56 +0200
committerDavid S. Miller <davem@davemloft.net>2020-10-01 03:01:26 +0200
commitb7cc6d3c5c9151a0475d643e212279e82531e527 (patch)
treeb4ec6791841bd1d0c639c6d8de1280db3e2b5d09 /tools/testing/selftests/net/config
parentdrop_monitor: Filter control packets in drop monitor (diff)
downloadlinux-b7cc6d3c5c9151a0475d643e212279e82531e527.tar.xz
linux-b7cc6d3c5c9151a0475d643e212279e82531e527.zip
selftests: net: Add drop monitor test
Test that drop monitor correctly captures both software and hardware originated packet drops. # ./drop_monitor_tests.sh Software drops test TEST: Capturing active software drops [ OK ] TEST: Capturing inactive software drops [ OK ] Hardware drops test TEST: Capturing active hardware drops [ OK ] TEST: Capturing inactive hardware drops [ OK ] Tests passed: 4 Tests failed: 0 Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net/config')
-rw-r--r--tools/testing/selftests/net/config3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/config b/tools/testing/selftests/net/config
index 5a57ea02802d..43649242adc0 100644
--- a/tools/testing/selftests/net/config
+++ b/tools/testing/selftests/net/config
@@ -30,3 +30,6 @@ CONFIG_NET_SCH_ETF=m
CONFIG_NET_SCH_NETEM=y
CONFIG_TEST_BLACKHOLE_DEV=m
CONFIG_KALLSYMS=y
+CONFIG_TRACEPOINTS=y
+CONFIG_NET_DROP_MONITOR=m
+CONFIG_NETDEVSIM=m