]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Merge branch 'net-broadcom-migrate-to-get_rx_ring_count-ethtool-callback'
authorJakub Kicinski <kuba@kernel.org>
Sat, 29 Nov 2025 03:56:26 +0000 (19:56 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 29 Nov 2025 03:56:27 +0000 (19:56 -0800)
Breno Leitao says:

====================
net: broadcom: migrate to .get_rx_ring_count() ethtool callback

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.
====================

Link: https://patch.msgid.link/20251127-grxrings_broadcom-v1-0-b0b182864950@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Trivial merge