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>