]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: enetc: fix ethtool counter name for PM0_TERR
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 20 Oct 2021 16:52:06 +0000 (19:52 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Oct 2021 07:54:26 +0000 (09:54 +0200)
[ Upstream commit fb8dc5fc8cbdfd62ecd16493848aee2f42ed84d9 ]

There are two counters named "MAC tx frames", one of them is actually
incorrect. The correct name for that counter should be "MAC tx error
frames", which is symmetric to the existing "MAC rx error frames".

Fixes: e9bb9a66a34f ("enetc: Add ethtool statistics")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: <Claudiu Manoil <claudiu.manoil@nxp.com>
Link: https://lore.kernel.org/r/20211020165206.1069889-1-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/freescale/enetc/enetc_ethtool.c

index 89121d7ce3e6f438f5ed2ad73a07274b5969dd0a..636aa6d81d8fea7fb8bf565bc607b606e8028e0f 100644 (file)
@@ -155,7 +155,7 @@ static const struct {
        { ENETC_PM0_TFRM,   "MAC tx frames" },
        { ENETC_PM0_TFCS,   "MAC tx fcs errors" },
        { ENETC_PM0_TVLAN,  "MAC tx VLAN frames" },
-       { ENETC_PM0_TERR,   "MAC tx frames" },
+       { ENETC_PM0_TERR,   "MAC tx frame errors" },
        { ENETC_PM0_TUCA,   "MAC tx unicast frames" },
        { ENETC_PM0_TMCA,   "MAC tx multicast frames" },
        { ENETC_PM0_TBCA,   "MAC tx broadcast frames" },