]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Dec 2020 12:28:16 +0000 (13:28 +0100)
commit2b8d6b54103f60a8e9183d60cda051c903bf3119
treebb94cc703aedfa738a65348ae36cfb22d7786c6d
parent41097c9c282156ca6fe5d514d2b20913648c988e
enetc: Fix reporting of h/w packet counters

[ Upstream commit eb96b686fc2c601e78903cc61b6cf4588ddde013 ]

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: 16eb4c85c964 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/freescale/enetc/enetc_ethtool.c
drivers/net/ethernet/freescale/enetc/enetc_hw.h