[PATCH 0/2] dsa: mv88e6xxx: Refactor statistics ready for RMU support

From: Andrew Lunn
Date: Sat Dec 07 2024 - 16:19:21 EST


Marvell Ethernet switches support sending commands to the switch
inside Ethernet frames, which the Remote Management Unit, RMU,
handles. One such command retries all the RMON statistics. The
switches however have other statistics which cannot be retried by this
bulk method, so need to be gathered individually.

This patch series refactors the existing statistics code into a
structure that will allow RMU integration in a future patchset.

There should be no functional change as a result of this refactoring.

Signed-off-by: Andrew Lunn <andrew@xxxxxxx>
---
Andrew Lunn (2):
dsa: mv88e6xxx: Move available stats into info structure
dsa: mv88e6xxx: Centralise common statistics check

drivers/net/dsa/mv88e6xxx/chip.c | 49 ++++++++++++++++++++++++++++++----------
drivers/net/dsa/mv88e6xxx/chip.h | 1 +
2 files changed, 38 insertions(+), 12 deletions(-)
---
base-commit: 860dbab69ad8d07a91117ed9c9eb5fb64adf7e0e
change-id: 20241207-v6-13-rc1-net-next-mv88e6xxx-stats-refactor-8a7cadcdd26b

Best regards,
--
Andrew Lunn <andrew@xxxxxxx>