net: enetc: expose some standardized ethtool counters
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 9 Sep 2022 11:38:00 +0000 (14:38 +0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 20 Sep 2022 00:58:25 +0000 (17:58 -0700)
commit38b922c9122789ce7f5dcb39a8f6bcaee10aa1cd
treea16601e6ba4232a82500d5252d8a9cb006d97204
parente2bd065c3b22343083850b240425d300577fa531
net: enetc: expose some standardized ethtool counters

Structure the code in such a way that it can be reused later for the
pMAC statistics, by just changing the "mac" argument to 1.

Usage:
ethtool --include-statistics --show-pause eno2
ethtool -S eno0 --groups eth-mac
ethtool -S eno0 --groups eth-ctrl
ethtool -S eno0 --groups rmon

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/enetc/enetc_ethtool.c