]> Gentwo Git Trees - linux/.git/commit
net: mvneta: convert to use .get_rx_ring_count
authorBreno Leitao <leitao@debian.org>
Fri, 21 Nov 2025 17:02:35 +0000 (09:02 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 25 Nov 2025 03:45:02 +0000 (19:45 -0800)
commit737e14c5dce3764125bb56de1b343f0e4d21492d
treea11210b8cbf2a303355475d677bacc770c82cb89
parenta8ff4842da50b5f4ea03d5d38a2ee93b701fe8e6
net: mvneta: convert to use .get_rx_ring_count

Convert the mvneta 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/20251121-marvell-v1-1-8338f3e55a4c@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/mvneta.c