Skip to content

net: intel: migrate to .get_rx_ring_count() ethtool callback

Breno Leitao intel-wired-lan lkml 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] change-id 20251124-gxring_intel-e1a94c484b78

Versions newest first

  1. v2 Latest8 patches 0 repliesApplied 8/8
  2. v18 patches 12 repliesSuperseded

Changes in v2 from the cover letter

- Fixed the kdoc for the new functions (Jakub)
- Fixed a typo in a git summary (Aleksandr Loktionov)
- Appended the SoB in all the patches
- Link to v1: https://patch.msgid.link/[email protected]

Patches in v2 All 8 applied

#Subject and filesSizeRepliesApplied
1/8i40e: extract GRXRINGS from .get_rxnfcdrivers/net/ethernet/intel/i40e/i40e_ethtool.c+15 -40 repliesApplied
2/8iavf: extract GRXRINGS from .get_rxnfcdrivers/net/ethernet/intel/iavf/iavf_ethtool.c+14 -40 repliesApplied
3/8ice: extract GRXRINGS from .get_rxnfcdrivers/net/ethernet/intel/ice/ice_ethtool.c+15 -40 repliesApplied
4/8idpf: extract GRXRINGS from .get_rxnfcdrivers/net/ethernet/intel/idpf/idpf_ethtool.c+20 -30 repliesApplied
5/8igb: extract GRXRINGS from .get_rxnfcdrivers/net/ethernet/intel/igb/igb_ethtool.c+8 -40 repliesApplied
6/8igc: extract GRXRINGS from .get_rxnfcdrivers/net/ethernet/intel/igc/igc_ethtool.c+8 -30 repliesApplied
7/8ixgbevf: extract GRXRINGS from .get_rxnfcdrivers/net/ethernet/intel/ixgbevf/ethtool.c+3 -110 repliesApplied
8/8fm10k: extract GRXRINGS from .get_rxnfcdrivers/net/ethernet/intel/fm10k/fm10k_ethtool.c+3 -140 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH net-next v2 0/8] net: intel: migrate to .get_rx_ring_count() ethtool callback

This series migrates Intel network drivers to use the new .get_rx_ring_count() ethtool callback introduced in commit 84eaf4359c36 ("net: ethtool: add get_rx_ring_count callback to optimize RX ring queries").

The new callback simplifies the .get_rxnfc() implementation by removing ETHTOOL_GRXRINGS handling and moving it to a dedicated callback. This provides a cleaner separation of concerns and aligns these drivers with the modern ethtool API.

The series updates the following Intel drivers:
- idpf
- igb
- igc
- ixgbevf
- fm10k

PS: These changes were compile-tested only.

---
Changes in v2:
- Fixed the kdoc for the new functions (Jakub)
- Fixed a typo in a git summary (Aleksandr Loktionov)
- Appended the SoB in all the patches
- Link to v1: https://patch.msgid.link/[email protected]

---
Breno Leitao (8):
i40e: extract GRXRINGS from .get_rxnfc
iavf: extract GRXRINGS from .get_rxnfc
ice: extract GRXRINGS from .get_rxnfc
idpf: extract GRXRINGS from .get_rxnfc
igb: extract GRXRINGS from .get_rxnfc
igc: extract GRXRINGS from .get_rxnfc
ixgbevf: extract GRXRINGS from .get_rxnfc
fm10k: extract GRXRINGS from .get_rxnfc

 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c | 17 +++--------------
 drivers/net/ethernet/intel/i40e/i40e_ethtool.c   | 19 +++++++++++++++----
 drivers/net/ethernet/intel/iavf/iavf_ethtool.c   | 18 ++++++++++++++----
 drivers/net/ethernet/intel/ice/ice_ethtool.c     | 19 +++++++++++++++----
 drivers/net/ethernet/intel/idpf/idpf_ethtool.c   | 23 ++++++++++++++++++++---
 drivers/net/ethernet/intel/igb/igb_ethtool.c     | 12 ++++++++----
 drivers/net/ethernet/intel/igc/igc_ethtool.c     | 11 ++++++++---
 drivers/net/ethernet/intel/ixgbevf/ethtool.c     | 14 +++-----------
 8 files changed, 86 insertions(+), 47 deletions(-)

---
base-commit: e05021a829b834fecbd42b173e55382416571b2c
change-id: 20251124-gxring_intel-e1a94c484b78

Best regards,

Signature · 1 line
Breno Leitao <[email protected]>