public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net: broadcom: migrate to .get_rx_ring_count() ethtool callback
@ 2025-11-27 10:17 Breno Leitao
  2025-11-27 10:17 ` [PATCH net-next 1/2] net: bnxt: extract GRXRINGS from .get_rxnfc Breno Leitao
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Breno Leitao @ 2025-11-27 10:17 UTC (permalink / raw)
  To: Michael Chan, Pavan Chebbi, Andrew Lunn, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Doug Berger,
	Florian Fainelli, Broadcom internal kernel review list
  Cc: netdev, linux-kernel, Breno Leitao

This series migrates Broadcom ethernet 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").

This change simplifies the .get_rxnfc() implementation by
extracting the ETHTOOL_GRXRINGS case handling into a dedicated callback,
making the code cleaner and aligning these drivers with the updated
ethtool API.

The series covers two Broadcom drivers: bnxt and bcmgenet. Each patch
removes the ETHTOOL_GRXRINGS case from the driver's .get_rxnfc() switch
statement and implements the new .get_rx_ring_count() callback that
returns the number of RX rings.

---
Breno Leitao (2):
      net: bnxt: extract GRXRINGS from .get_rxnfc
      net: bcmgenet: extract GRXRINGS from .get_rxnfc

 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 12 ++++++++----
 drivers/net/ethernet/broadcom/genet/bcmgenet.c    | 11 ++++++++---
 2 files changed, 16 insertions(+), 7 deletions(-)
---
base-commit: f93505f35745637b6d94efe8effa97ef26819784
change-id: 20251127-grxrings_broadcom-1a829652276c

Best regards,
--  
Breno Leitao <leitao@debian.org>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-11-29  4:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-27 10:17 [PATCH net-next 0/2] net: broadcom: migrate to .get_rx_ring_count() ethtool callback Breno Leitao
2025-11-27 10:17 ` [PATCH net-next 1/2] net: bnxt: extract GRXRINGS from .get_rxnfc Breno Leitao
2025-11-27 10:17 ` [PATCH net-next 2/2] net: bcmgenet: " Breno Leitao
2025-11-29  4:10 ` [PATCH net-next 0/2] net: broadcom: migrate to .get_rx_ring_count() ethtool callback patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox