]> Gentwo Git Trees - linux/.git/commit
net: ethtool: update set_rxfh to use ethtool_get_rx_ring_count helper
authorBreno Leitao <leitao@debian.org>
Wed, 17 Sep 2025 09:58:12 +0000 (02:58 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 18 Sep 2025 14:07:38 +0000 (07:07 -0700)
commitd5544688d4217f370e9189e17b6536b469ee0f1d
treec66cc360855d99dfa0359add5a92bf75098d9eec
parent84eaf4359c36b0ba888f571a964138d22ba5914f
net: ethtool: update set_rxfh 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-5-dae520e2e1cb@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ethtool/ioctl.c