From: Jakub Kicinski Date: Thu, 18 Aug 2022 04:58:48 +0000 (-0700) Subject: Merge branch 'fixes-for-ocelot-driver-statistics' X-Git-Tag: v6.6-pxa1908~3123^2~9 X-Git-Url: https://git.dujemihanovic.xyz/?a=commitdiff_plain;h=5b6a07297bdca1701dc983bf084d6c0b2569ff18;p=linux.git Merge branch 'fixes-for-ocelot-driver-statistics' Vladimir Oltean says: ==================== Fixes for Ocelot driver statistics This series contains bug fixes for the ocelot drivers (both switchdev and DSA). Some concern the counters exposed to ethtool -S, and others to the counters exposed to ifconfig. I'm aware that the changes are fairly large, but I wanted to prioritize on a proper approach to addressing the issues rather than a quick hack. Some of the noticed problems: - bad register offsets for some counters - unhandled concurrency leading to corrupted counters - unhandled 32-bit wraparound of ifconfig counters The issues on the ocelot switchdev driver were noticed through code inspection, I do not have the hardware to test. This patch set necessarily converts ocelot->stats_lock from a mutex to a spinlock. I know this affects Colin Foster's development with the SPI controlled VSC7512. I have other changes prepared for net-next that convert this back into a mutex (along with other changes in this area). ==================== Link: https://lore.kernel.org/r/20220816135352.1431497-1-vladimir.oltean@nxp.com Signed-off-by: Jakub Kicinski --- 5b6a07297bdca1701dc983bf084d6c0b2569ff18