Linux Kernel Selftest development
 help / color / mirror / Atom feed
* [PATCH net-next 1/2] selftests: drv-net: pace ethtool_std_stats packet generation
@ 2026-08-08 16:36 Jakub Kicinski
  2026-08-08 16:36 ` [PATCH net-next 2/2] selftests: drv-net: let ethtool stats settle before reading Jakub Kicinski
  2026-08-11  0:00 ` [PATCH net-next 1/2] selftests: drv-net: pace ethtool_std_stats packet generation patchwork-bot+netdevbpf
  0 siblings, 2 replies; 4+ messages in thread
From: Jakub Kicinski @ 2026-08-08 16:36 UTC (permalink / raw)
  To: davem
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, Jakub Kicinski,
	andrew, shuah, petrm, ioana.ciornei, linux-kselftest

mausezahn defaults to sending packets back to back at the maximum rate,
which can cause packet loss, especially if receiver is running a debug
kernel. Space the generated packets out (-d 10usec), like ethtool_rmon
already does.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
CC: andrew@lunn.ch
CC: shuah@kernel.org
CC: petrm@nvidia.com
CC: ioana.ciornei@nxp.com
CC: linux-kselftest@vger.kernel.org
---
 tools/testing/selftests/drivers/net/hw/ethtool_std_stats.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/testing/selftests/drivers/net/hw/ethtool_std_stats.sh b/tools/testing/selftests/drivers/net/hw/ethtool_std_stats.sh
index c085d2a4c989..1b329b3f60c2 100755
--- a/tools/testing/selftests/drivers/net/hw/ethtool_std_stats.sh
+++ b/tools/testing/selftests/drivers/net/hw/ethtool_std_stats.sh
@@ -43,10 +43,10 @@ traffic_test()
 	done
 
 	# shellcheck disable=SC2086 # needs split options
-	run_on "$iface" "$MZ" "$iface" -q -c "$num_tx" $pkt_format
+	run_on "$iface" "$MZ" "$iface" -q -d 10usec -c "$num_tx" $pkt_format
 
 	# shellcheck disable=SC2086 # needs split options
-	run_on "$neigh" "$MZ" "$neigh" -q -c "$num_rx" $pkt_format
+	run_on "$neigh" "$MZ" "$neigh" -q -d 10usec -c "$num_rx" $pkt_format
 
 	for i in "${!counters[@]}"; do
 		read -r int grp cnt target exact_check xfail_message \
-- 
2.55.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-08-11  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-08 16:36 [PATCH net-next 1/2] selftests: drv-net: pace ethtool_std_stats packet generation Jakub Kicinski
2026-08-08 16:36 ` [PATCH net-next 2/2] selftests: drv-net: let ethtool stats settle before reading Jakub Kicinski
2026-08-08 16:52   ` Andrew Lunn
2026-08-11  0:00 ` [PATCH net-next 1/2] selftests: drv-net: pace ethtool_std_stats packet generation patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox