]> git.ipfire.org Git - thirdparty/linux.git/commit
net: thunder: convert to use .get_rx_ring_count
authorBreno Leitao <leitao@debian.org>
Wed, 26 Nov 2025 10:54:40 +0000 (02:54 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 28 Nov 2025 02:09:53 +0000 (18:09 -0800)
commit73880e66b79a6c950c0388559e2d425da2c37bd6
tree31a58b56170f3d7289f89d827f5154943466c6d9
parent8048168df56e225c94e50b04cb7b0514135d7a1c
net: thunder: convert to use .get_rx_ring_count

Convert the Cavium Thunder NIC VF 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 removing the
switch statement and replacing it 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>
Link: https://patch.msgid.link/20251126-gxring_cavium-v1-1-a066c0c9e0c6@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c