]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9b9dd1cf7cee776b1e5bcf88296a6c2777513e24
tree24b9521f5ebe9be976ab47812fe9e557207c68e0
parent82752fa048151707ce9c96eb82ddf0cb7e846a4b
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