]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: drv-net: gro: test GRO stats
authorJakub Kicinski <kuba@kernel.org>
Wed, 18 Mar 2026 03:38:17 +0000 (20:38 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 19 Mar 2026 23:57:28 +0000 (16:57 -0700)
commitba5d4128fca8d141cced21f7ed10d14582cd5c1c
treebb9fc350220fef5627ad7466fee6a7142b7644f0
parentf26d43acf12f914e4562b6cf17f93af3d4a594a0
selftests: drv-net: gro: test GRO stats

Test accuracy of GRO stats. We want to cover two potentially tricky
cases:
 - single segment GRO
 - packets which were eligible but didn't get GRO'd

The first case is trivial, teach gro.c to send one packet, and check
GRO stats didn't move.

Second case requires gro.c to send a lot of flows expecting the NIC
to run out of GRO flow capacity.

To avoid system traffic noise we steer the packets to a dedicated
queue and operate on qstat.

Link: https://patch.msgid.link/20260318033819.1469350-5-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/hw/Makefile
tools/testing/selftests/drivers/net/hw/gro_hw.py [new file with mode: 0755]
tools/testing/selftests/net/lib/gro.c