]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dsa: mv88e6xxx: Move available stats into info structure
authorAndrew Lunn <andrew@lunn.ch>
Sat, 7 Dec 2024 21:18:44 +0000 (15:18 -0600)
committerJakub Kicinski <kuba@kernel.org>
Wed, 11 Dec 2024 02:23:12 +0000 (18:23 -0800)
commit5595e3613ea768b81f600d37ea6880983339f21a
treed9fff8214f4a53b40b4aae4dadd05b39b1672b45
parenta0e1fc921cb0651cd11469bf5378ec342bf7094d
dsa: mv88e6xxx: Move available stats into info structure

Different families of switches have different statistics available.
This information is current hard coded into functions, however this
information will also soon be needed when getting statistics from the
RMU. Move it into the info structure.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20241207-v6-13-rc1-net-next-mv88e6xxx-stats-refactor-v1-1-b9960f839846@lunn.ch
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/chip.h