]> git.ipfire.org Git - thirdparty/linux.git/commit
net: mvpp2: extract GRXRINGS from .get_rxnfc
authorBreno Leitao <leitao@debian.org>
Fri, 21 Nov 2025 17:02:36 +0000 (09:02 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 25 Nov 2025 03:45:02 +0000 (19:45 -0800)
commit20c20f05cf50719a667f1a1747a0267fa09addc4
tree2134cfdf7140ddc4953f38506afb7d192caac150
parent737e14c5dce3764125bb56de1b343f0e4d21492d
net: mvpp2: extract GRXRINGS from .get_rxnfc

Commit 84eaf4359c36 ("net: ethtool: add get_rx_ring_count callback to
optimize RX ring queries") added specific support for GRXRINGS callback,
simplifying .get_rxnfc.

Remove the handling of GRXRINGS in .get_rxnfc() by moving it to the new
.get_rx_ring_count() for the mvpp2 driver.

This simplifies the RX ring count retrieval and aligns mvpp2 with the new
ethtool API for querying RX ring parameters, while keeping the other
rxnfc handlers (GRXCLSRLCNT, GRXCLSRULE, GRXCLSRLALL) intact.

Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20251121-marvell-v1-2-8338f3e55a4c@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c