]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit804046daa3a8453db04c5fb49b7a9b7b824ee478
treeb4ec6791841bd1d0c639c6d8de1280db3e2b5d09
parent410c3f310dead2d63a5e77b468cedbdc83ceb487
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]