]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: drv-net: give HW stats sync time extra 25% of margin
authorJakub Kicinski <kuba@kernel.org>
Wed, 18 Mar 2026 03:38:15 +0000 (20:38 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 19 Mar 2026 23:57:28 +0000 (16:57 -0700)
commit9b29afa1166088ca4e8223857508f2a19d88b58b
tree5e9f020bb895f673e74ec5db5a07974c97d6cb86
parent8888bf4fb98057a93f3ac7392aa3913e1b318c86
selftests: drv-net: give HW stats sync time extra 25% of margin

There are transient failures for devices which update stats
periodically, especially if it's the FW DMA'ing the stats
rather than host periodic work querying the FW. Wait 25%
longer than strictly necessary.

For devices which don't report stats-block-usecs we retain
25 msec as the default wait time (0.025sec == 20,000usec * 1.25).

Reviewed-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20260318033819.1469350-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/lib/py/env.py