[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250620102140.2020008-1-wei.fang@nxp.com>
Date: Fri, 20 Jun 2025 18:21:37 +0800
From: Wei Fang <wei.fang@....com>
To: claudiu.manoil@....com,
vladimir.oltean@....com,
xiaoning.wang@....com,
andrew+netdev@...n.ch,
davem@...emloft.net,
edumazet@...gle.com,
kuba@...nel.org,
pabeni@...hat.com
Cc: netdev@...r.kernel.org,
linux-kernel@...r.kernel.org,
imx@...ts.linux.dev
Subject: [PATCH net-next 0/3] change some statistics to 64-bit
The port MAC counters of ENETC are 64-bit registers and the statistics
of ethtool are also u64 type, so add enetc_port_rd64() helper function
to read 64-bit statistics from these registers, and also change the
statistics of ring to unsigned long type to be consistent with the
statistics type in struct net_device_stats.
Wei Fang (3):
net: enetc: change the statistics of ring to unsigned long type
net: enetc: separate 64-bit counters from enetc_port_counters
net: enetc: read 64-bit statistics from port MAC counters
drivers/net/ethernet/freescale/enetc/enetc.h | 22 ++---
.../ethernet/freescale/enetc/enetc_ethtool.c | 99 +++++++++++--------
.../net/ethernet/freescale/enetc/enetc_hw.h | 1 +
3 files changed, 68 insertions(+), 54 deletions(-)
--
2.34.1
Powered by blists - more mailing lists