]> git.baikalelectronics.ru Git - kernel.git/commit
enetc: Fix reporting of h/w packet counters
authorClaudiu Manoil <claudiu.manoil@nxp.com>
Fri, 4 Dec 2020 17:15:05 +0000 (19:15 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 8 Dec 2020 00:57:38 +0000 (16:57 -0800)
commit54cacc5cc5e3f81c1197944bd0f120fb6025f3e3
tree1ca0e921cee7b3e9622e7515415a603744cfcbe7
parentfc092afce9fa8a4f21a28439b03eee31a1e0cf42
enetc: Fix reporting of h/w packet counters

Noticed some inconsistencies in packet statistics reporting.
This patch adds the missing Tx packet counter registers to
ethtool reporting and fixes the information strings for a
few of them.

Fixes: e9bb9a66a34f ("enetc: Add ethtool statistics")
Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Link: https://lore.kernel.org/r/20201204171505.21389-1-claudiu.manoil@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/enetc/enetc_ethtool.c
drivers/net/ethernet/freescale/enetc/enetc_hw.h