]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: stmmac: convert to use .get_rx_ring_count
authorBreno Leitao <leitao@debian.org>
Thu, 8 Jan 2026 11:43:00 +0000 (03:43 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 10 Jan 2026 20:16:23 +0000 (12:16 -0800)
commit959728f9931e754deb10b51bf208a5e567f9034b
tree04e638f07e4fae91d4a8d8cfcdad28a642d6d12c
parent6c7ff659d883c2753863f90549b2a5d83562fb43
net: stmmac: convert to use .get_rx_ring_count

Convert the stmmac driver to use the new .get_rx_ring_count
ethtool operation instead of implementing .get_rxnfc for handling
ETHTOOL_GRXRINGS command.

Since stmmac_get_rxnfc() only handled ETHTOOL_GRXRINGS (returning
-EOPNOTSUPP for all other commands), remove it entirely and replace
it with the simpler stmmac_get_rx_ring_count() callback.

Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20260108-gxring_stmicro-v2-1-3dcadc8ed29b@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c