mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02:00
selftests: drv-net: pace ethtool_std_stats packet generation
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. Reviewed-by: Petr Machata <petrm@nvidia.com> Link: https://patch.msgid.link/20260808163653.2460381-1-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
4d2cbd620a
commit
f4cf605687
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user