]> www.infradead.org Git - users/willy/xarray.git/commit
eth: lan966x: don't clear unsupported stats
authorJakub Kicinski <kuba@kernel.org>
Thu, 13 Jun 2024 00:32:22 +0000 (17:32 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 15 Jun 2024 01:31:19 +0000 (18:31 -0700)
commit72421f35540c3e8830be8897ef1b99d2b7aa0981
tree9d6c420a51c966e596cadfb5789df89a327fdcd9
parent404dbd26322f50c8123bf5bff9a409356889035f
eth: lan966x: don't clear unsupported stats

Commit 12c2d0a5b8e2 ("net: lan966x: add ethtool configuration and statistics")
added support for various standard stats. We should not clear the stats
which are not collected by the device. Core code uses a special
initializer to detect when device does not report given stat.

Acked-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Link: https://lore.kernel.org/r/20240613003222.3327368-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/lan966x/lan966x_ethtool.c