]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: drv-net: xdp: add test for interface level qstats
authorJakub Kicinski <kuba@kernel.org>
Tue, 7 Oct 2025 23:26:49 +0000 (16:26 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 9 Oct 2025 09:10:02 +0000 (11:10 +0200)
commit27ba92560bcc8a121214a22a55217ba54696495c
tree5ed1eeecf727be69f286c0da59068335b15ecc79
parent1ad3f62089af2bae95f7c49909c4065f8b1dc4b6
selftests: drv-net: xdp: add test for interface level qstats

Send a non-trivial number of packets and make sure that they
are counted correctly in qstats. Per qstats specification
XDP is the first layer of the stack so we should see Rx and Tx
counters go up for packets which went thru XDP.

Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20251007232653.2099376-6-kuba@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/drivers/net/xdp.py