selftests: net: Add drop monitor test
authorIdo Schimmel <idosch@mellanox.com>
Tue, 29 Sep 2020 08:15:56 +0000 (11:15 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Oct 2020 01:01:26 +0000 (18:01 -0700)
commitb7cc6d3c5c9151a0475d643e212279e82531e527
treeb4ec6791841bd1d0c639c6d8de1280db3e2b5d09
parent93e155967ccc053b71d408edf8c0142199df5c8c
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>
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/config
tools/testing/selftests/net/drop_monitor_tests.sh [new file with mode: 0755]