]> git.ipfire.org Git - thirdparty/linux.git/commit
net: bcmgenet: extract GRXRINGS from .get_rxnfc
authorBreno Leitao <leitao@debian.org>
Thu, 27 Nov 2025 10:17:16 +0000 (02:17 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 29 Nov 2025 03:56:22 +0000 (19:56 -0800)
commit335d78c6161b18e95f72404ee3e210e64b5f5adc
tree7a47a4fe5823945f0b705b56f614e969f0b14567
parentbba18f3ba7cc1ca47428bc563fcc34e9e2ce0bf8
net: bcmgenet: extract GRXRINGS from .get_rxnfc

Commit 84eaf4359c36 ("net: ethtool: add get_rx_ring_count callback to
optimize RX ring queries") added specific support for GRXRINGS callback,
simplifying .get_rxnfc.

Remove the handling of GRXRINGS in .get_rxnfc() by moving it to the new
.get_rx_ring_count().

This simplifies the RX ring count retrieval and aligns bcmgenet with the
new ethtool API for querying RX ring parameters.

Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20251127-grxrings_broadcom-v1-2-b0b182864950@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/genet/bcmgenet.c