]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: bnx2x: convert to use get_rx_ring_count
authorBreno Leitao <leitao@debian.org>
Wed, 12 Nov 2025 09:50:23 +0000 (01:50 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 15 Nov 2025 02:04:21 +0000 (18:04 -0800)
commit04ca7a69a35b060ecee60a9923e9891f5dd92eca
tree2bab5182d1b448a4b6c7c6e1476b0965cab85069
parentf455d3f02d8998edb20a0accac5eeee769bd6fcd
net: bnx2x: convert to use get_rx_ring_count

Convert the bnx2x driver to use the new .get_rx_ring_count ethtool
operation instead of implementing .get_rxnfc solely for handling
ETHTOOL_GRXRINGS command. This simplifies the code by replacing the
switch statement with a direct return of the queue count.

The new callback provides the same functionality in a more direct way,
following the ongoing ethtool API modernization.

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20251112-bnx_grxrings-v1-1-1c2cb73979e2@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c