]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: vmxnet3: convert to use .get_rx_ring_count
authorBreno Leitao <leitao@debian.org>
Tue, 18 Nov 2025 09:44:56 +0000 (01:44 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 20 Nov 2025 04:14:21 +0000 (20:14 -0800)
commit672cb5c2a9584802ad43d61209d5e24cccee823d
tree2c6f39be5b74cfbabd53223dc3e17ef8388c6cb3
parent6152f41da624a7b2fd854fe1216a327b8eb15f8d
net: vmxnet3: convert to use .get_rx_ring_count

Convert the vmxnet3 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/20251118-vmxnet3_grxrings-v1-1-ed8abddd2d52@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/vmxnet3/vmxnet3_ethtool.c