]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: ethtool: update set_rxfh_indir to use ethtool_get_rx_ring_count helper
authorBreno Leitao <leitao@debian.org>
Wed, 17 Sep 2025 09:58:13 +0000 (02:58 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 18 Sep 2025 14:07:38 +0000 (07:07 -0700)
commitdce08107f1f305b0fbef115410034b1fb3b7e070
treedd4cb599d71ca4b8b2798de0a66abb8095f129bb
parentd5544688d4217f370e9189e17b6536b469ee0f1d
net: ethtool: update set_rxfh_indir to use ethtool_get_rx_ring_count helper

Modify ethtool_set_rxfh() to use the new ethtool_get_rx_ring_count()
helper function for retrieving the number of RX rings instead of
directly calling get_rxnfc with ETHTOOL_GRXRINGS.

This way, we can leverage the new helper if it is available in ethtool_ops.

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