]> git.ipfire.org Git - thirdparty/linux.git/commit
net: bnxt: extract GRXRINGS from .get_rxnfc
authorBreno Leitao <leitao@debian.org>
Thu, 27 Nov 2025 10:17:15 +0000 (02:17 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 29 Nov 2025 03:56:22 +0000 (19:56 -0800)
commitbba18f3ba7cc1ca47428bc563fcc34e9e2ce0bf8
tree4cbf9a228ef4384114fdcb3902532d856e289125
parent2ce992a1a400b28fd52f5ee77fb5ab836bb861a8
net: bnxt: 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 bnxt 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-1-b0b182864950@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c