testing: net-drv: add a driver test for stats reporting
authorJakub Kicinski <kuba@kernel.org>
Fri, 5 Apr 2024 02:45:26 +0000 (19:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2024 10:40:41 +0000 (11:40 +0100)
commitf0e6c86e4bab228ca51b863af180ade0a970a393
treef14ba4546dfd3423aad6315ec710ee8b926ae852
parentb4db9f840283caca0d904436f187ef56a9126eaa
testing: net-drv: add a driver test for stats reporting

Add a very simple test to make sure drivers report expected
stats. Drivers which implement FEC or pause configuration
should report relevant stats. Qstats must be reported,
at least packet and byte counts, and they must match
total device stats.

Tested with netdevsim, bnxt, in-tree and installed.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/stats.py [new file with mode: 0755]