Skip to content

eth: fbnic: Extend hw stats support

Jakub Kicinski netdev 2 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 Latest6 patches 6 repliesApplied 6/6
  2. v16 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- [patch 3] make ASSERT_RTNL() conditional, at init stats are flushed without rtnl_lock, before netdev is allocated
v1: https://lore.kernel.org/[email protected]

Patches in v2 All 6 applied

#Subject and filesSizeRepliesApplied
1/6eth: fbnic: Move hw_stats_lock out of fbnic_devdrivers/net/ethernet/meta/fbnic/fbnic.h drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c drivers/net/ethernet/meta/fbnic/fbnic_hw_stats.c +3 more+29 -211 replyApplied
2/6eth: fbnic: Reset hw stats upon PCI errordrivers/net/ethernet/meta/fbnic/fbnic_pci.c+2 -01 replyApplied
3/6eth: fbnic: Reset MAC statsdrivers/net/ethernet/meta/fbnic/fbnic_hw_stats.c drivers/net/ethernet/meta/fbnic/fbnic_pci.c+24 -01 replyApplied
4/6eth: fbnic: Fetch PHY stats from devicedrivers/net/ethernet/meta/fbnic/fbnic_csr.h drivers/net/ethernet/meta/fbnic/fbnic_hw_stats.c drivers/net/ethernet/meta/fbnic/fbnic_hw_stats.h +2 more+101 -01 replyApplied
5/6eth: fbnic: Read PHY stats via the ethtool APIdrivers/net/ethernet/meta/fbnic/fbnic_ethtool.c+42 -01 replyApplied
6/6eth: fbnic: Add pause stats supportdrivers/net/ethernet/meta/fbnic/fbnic_csr.h drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c drivers/net/ethernet/meta/fbnic/fbnic_hw_stats.c +3 more+42 -01 replyApplied

Reviews trailers per patch

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

PatchJacob Keller
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net-next v2 0/6] eth: fbnic: Extend hw stats support

Mohsin says:

Extend hardware stats support for fbnic by adding the ability to reset hardware stats when the device experience a reset due to a PCI error and include MAC stats in the hardware stats reset. Additionally, expand hardware stats coverage to include FEC, PHY, and Pause stats.

v2:
- [patch 3] make ASSERT_RTNL() conditional, at init stats are flushed without rtnl_lock, before netdev is allocated
v1: https://lore.kernel.org/[email protected]

Mohsin Bashir (6):
eth: fbnic: Move hw_stats_lock out of fbnic_dev
eth: fbnic: Reset hw stats upon PCI error
eth: fbnic: Reset MAC stats
eth: fbnic: Fetch PHY stats from device
eth: fbnic: Read PHY stats via the ethtool API
eth: fbnic: Add pause stats support

 drivers/net/ethernet/meta/fbnic/fbnic.h       |  3 -
 drivers/net/ethernet/meta/fbnic/fbnic_csr.h   | 19 ++++++
 .../net/ethernet/meta/fbnic/fbnic_hw_stats.h  | 28 ++++++++
 drivers/net/ethernet/meta/fbnic/fbnic_mac.h   |  6 ++
 .../net/ethernet/meta/fbnic/fbnic_ethtool.c   | 63 +++++++++++++++++-
 .../net/ethernet/meta/fbnic/fbnic_hw_stats.c  | 66 ++++++++++++++++---
 drivers/net/ethernet/meta/fbnic/fbnic_mac.c   | 57 ++++++++++++++++
 .../net/ethernet/meta/fbnic/fbnic_netdev.c    | 12 ++--
 drivers/net/ethernet/meta/fbnic/fbnic_pci.c   |  7 +-
 9 files changed, 240 insertions(+), 21 deletions(-)
Signature · 1 line
2.51.0