]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: dpaa2: convert to use .get_rx_ring_count
authorBreno Leitao <leitao@debian.org>
Fri, 28 Nov 2025 13:11:46 +0000 (05:11 -0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 1 Dec 2025 19:54:45 +0000 (11:54 -0800)
commitb2d63392690156285e53562ed91b87131c9a97ac
treec5a06465848ce2eb948bc6f88f2fdda190a891a2
parentd3fbfb8b2c4a352bf9167809d2e2e8f8e685d348
net: dpaa2: convert to use .get_rx_ring_count

Convert the dpaa2 driver to use the new .get_rx_ring_count
ethtool operation instead of implementing .get_rxnfc for handling
ETHTOOL_GRXRINGS command. This simplifies the code by removing the
ETHTOOL_GRXRINGS case from the switch statement and replacing it with
a direct return of the queue count.

The driver still maintains .get_rxnfc for other commands including
ETHTOOL_GRXCLSRLCNT, ETHTOOL_GRXCLSRULE, and ETHTOOL_GRXCLSRLALL.

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20251128-gxring_freescale-v1-2-22a978abf29e@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c