]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2ec1415a51b8bb25d594d553ee37e113b4fb851b
treea16601e6ba4232a82500d5252d8a9cb006d97204
parent4b2599ff7c996de08c493cc8f445585b124a1420
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