]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ethtool: remove ETHTOOL_GRXRINGS fallback through get_rxnfc
authorBreno Leitao <leitao@debian.org>
Mon, 26 Jan 2026 10:00:15 +0000 (02:00 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 28 Jan 2026 01:32:56 +0000 (17:32 -0800)
commit1f6b527baf6f455b2502f6335aa28e129bbd3bf2
tree9b61e8ecd7250d097a23837572f6e1e491f295a6
parent88a95781332d27bb8328ad9b6dab22dba74afb0a
ethtool: remove ETHTOOL_GRXRINGS fallback through get_rxnfc

All drivers that need to report the RX ring count now implement the
get_rx_ring_count callback directly. Remove the legacy fallback path
that obtained this information by calling get_rxnfc with ETHTOOL_GRXRINGS.

This simplifies the code and makes get_rx_ring_count the only way
to retrieve the RX ring count.

Note: ethtool_get_rx_ring_count() returns int to allow returning
-EOPNOTSUPP, while the callback returns u32. The implicit conversion
is safe since RX ring counts will not exceed INT_MAX while we are still
alive.

Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20260126-grxring_final-v1-1-0981cb24512e@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ethtool/common.c