]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: drv-net: assume stats refresh is 0 if no ethtool -c support
authorJakub Kicinski <kuba@kernel.org>
Fri, 20 Dec 2024 00:31:16 +0000 (16:31 -0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 23 Dec 2024 18:12:20 +0000 (10:12 -0800)
commitf288c7a1ba268a9ed58a7971142a98a1e41a3c73
tree34ad53fb7fc79e8a54708e781912e1d6dbbcae5f
parent85101bda1387e85eabf77cd416bfc38e14f1bce6
selftests: drv-net: assume stats refresh is 0 if no ethtool -c support

Tests using HW stats wait for them to stabilize, using data from
ethtool -c as the delay. Not all drivers implement ethtool -c
so handle the errors gracefully.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20241220003116.1458863-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/lib/py/env.py
tools/testing/selftests/net/lib/py/utils.py