]> Gentwo Git Trees - linux/.git/commit
net: ethtool: use the new helper in rss_set_prep_indir()
authorBreno Leitao <leitao@debian.org>
Wed, 17 Sep 2025 09:58:14 +0000 (02:58 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 18 Sep 2025 14:07:38 +0000 (07:07 -0700)
commit8b7c4b612decb79b157611225faee68c384102a9
treeeedc856d783ef997b31c667027b434f758626063
parentdce08107f1f305b0fbef115410034b1fb3b7e070
net: ethtool: use the new helper in rss_set_prep_indir()

Refactor rss_set_prep_indir() to utilize the new
ethtool_get_rx_ring_count() helper for determining the number of RX
rings, replacing the direct use of get_rxnfc with ETHTOOL_GRXRINGS.

This ensures compatibility with both legacy and new ethtool_ops
interfaces by transparently multiplexing between them.

Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20250917-gxrings-v4-7-dae520e2e1cb@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ethtool/rss.c