]> Gentwo Git Trees - linux/.git/commit
net: enetc: convert to use .get_rx_ring_count
authorBreno Leitao <leitao@debian.org>
Fri, 28 Nov 2025 13:11:47 +0000 (05:11 -0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 1 Dec 2025 19:54:45 +0000 (11:54 -0800)
commitca8df5b877d4b027fcd3968c0519af2b33de4e8a
tree34b509cb1eee40e75030b3f3a9a8294bc8352271
parentb2d63392690156285e53562ed91b87131c9a97ac
net: enetc: convert to use .get_rx_ring_count

Convert the enetc 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 in two ways:

1. For enetc_get_rxnfc(): Remove the ETHTOOL_GRXRINGS case from the
   switch statement while keeping other cases for classifier rules.

2. For enetc4_get_rxnfc(): Remove it completely and use
   enetc_get_rxnfc() instead.

Now on, enetc_get_rx_ring_count() is the callback that returns the
number of RX rings for enetc driver.

Also, remove the documentation around enetc4_get_rxnfc(), which was not
matching what the function did(?!).

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