diff options
author | Ido Schimmel <idosch@mellanox.com> | 2020-09-29 10:15:56 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-10-01 03:01:26 +0200 |
commit | b7cc6d3c5c9151a0475d643e212279e82531e527 (patch) | |
tree | b4ec6791841bd1d0c639c6d8de1280db3e2b5d09 /tools/testing/selftests/net/config | |
parent | drop_monitor: Filter control packets in drop monitor (diff) | |
download | linux-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/config | 3 |
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 |