net: dsa: rzn1-a5psw: add statistics support
authorClément Léger <clement.leger@bootlin.com>
Fri, 24 Jun 2022 14:39:53 +0000 (16:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jun 2022 10:37:55 +0000 (11:37 +0100)
commitc7243fd4a62f2f891811d3d1cd4f9e8e93acd41c
tree24b9521f5ebe9be976ab47812fe9e557207c68e0
parent888cdb892b61d7a77ac07a73c388bd237933b8f8
net: dsa: rzn1-a5psw: add statistics support

Add statistics support to the rzn1-a5psw driver by implementing the
following dsa_switch_ops callbacks:
- get_sset_count()
- get_strings()
- get_ethtool_stats()
- get_eth_mac_stats()
- get_eth_ctrl_stats()
- get_rmon_stats()

Signed-off-by: Clément Léger <clement.leger@bootlin.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/rzn1_a5psw.c
drivers/net/dsa/rzn1_a5psw.h