]> git.ipfire.org Git - thirdparty/linux.git/commit
net: enetc: read 64-bit statistics from port MAC counters
authorWei Fang <wei.fang@nxp.com>
Fri, 27 Jun 2025 02:11:08 +0000 (10:11 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 1 Jul 2025 01:23:55 +0000 (18:23 -0700)
commit4c7ef319848faac5ac8c4b0b3e31a82fe59502f0
tree7a384c6b93f6fc18f35e7626aa6e2e58d1c598ba
parent9fe5f7145ad746e1b8e7522b8a955f642ff1b404
net: enetc: read 64-bit statistics from port MAC counters

The counters of port MAC are all 64-bit registers, and the statistics of
ethtool are u64 type, so replace enetc_port_rd() with enetc_port_rd64()
to read 64-bit statistics.

Signed-off-by: Wei Fang <wei.fang@nxp.com>
Reviewed-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250627021108.3359642-4-wei.fang@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/enetc/enetc_ethtool.c