]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: hyperv: convert to use .get_rx_ring_count
authorBreno Leitao <leitao@debian.org>
Fri, 21 Nov 2025 09:59:23 +0000 (01:59 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 25 Nov 2025 03:42:30 +0000 (19:42 -0800)
commita8ff4842da50b5f4ea03d5d38a2ee93b701fe8e6
tree495b774fe3a7c9f3218a9464d829bd936671c1ff
parentec1e48e97febbf7f87fc150793af2eda7223815c
net: hyperv: convert to use .get_rx_ring_count

Convert the hyperv netvsc 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>
Link: https://patch.msgid.link/20251121-hyperv_gxrings-v1-1-31293104953b@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/hyperv/netvsc_drv.c