Skip to content

net: enetc: change some statistics to 64-bit

Wei Fang imx lkml netdev 3 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/23 patches 0 repliesApplied 3/3
  2. v2 posting 1/23 patches 12 repliesSuperseded
  3. v13 patches 10 repliesSuperseded

Changes in v2 from the cover letter

1. Improve the commit message of patch 1
2. Collect Reviewed-by tags
v2 link: https://lore.kernel.org/imx/[email protected]/
---

Patches in v2 posting 2/2 All 3 applied

#Subject and filesSizeRepliesApplied
1/3net: enetc: change the statistics of ring to unsigned long typedrivers/net/ethernet/freescale/enetc/enetc.h+11 -110 repliesApplied
2/3net: enetc: separate 64-bit counters from enetc_port_countersdrivers/net/ethernet/freescale/enetc/enetc_ethtool.c drivers/net/ethernet/freescale/enetc/enetc_hw.h+15 -10 repliesApplied
3/3net: enetc: read 64-bit statistics from port MAC countersdrivers/net/ethernet/freescale/enetc/enetc_ethtool.c+42 -420 repliesApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchClaudiu ManoilFrank LiSimon Horman
1/3R-b R-b R-b
2/3R-b R-b R-b
3/3R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 RESEND 0/3] net: enetc: 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.

---
v1 link: https://lore.kernel.org/imx/[email protected]/
v2 changes:
1. Improve the commit message of patch 1
2. Collect Reviewed-by tags
v2 link: https://lore.kernel.org/imx/[email protected]/
---

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(-)
Signature · 1 line
2.34.1