]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ice: Fix persistent failure in ice_get_rxfh
authorCody Haas <chaas@riotgames.com>
Sat, 13 Dec 2025 00:22:26 +0000 (16:22 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 20 Jan 2026 20:55:34 +0000 (12:55 -0800)
commitf406220eb8e227ca344eef1a6d30aff53706b196
tree9a6a50ada18e3fd56e72a384959b775c1682269a
parentb97d5eedf4976cc94321243be83b39efe81a0e15
ice: Fix persistent failure in ice_get_rxfh

Several ioctl functions have the ability to call ice_get_rxfh, however
all of these ioctl functions do not provide all of the expected
information in ethtool_rxfh_param. For example, ethtool_get_rxfh_indir does
not provide an rss_key. This previously caused ethtool_get_rxfh_indir to
always fail with -EINVAL.

This change draws inspiration from i40e_get_rss to handle this
situation, by only calling the appropriate rss helpers when the
necessary information has been provided via ethtool_rxfh_param.

Fixes: b66a972abb6b ("ice: Refactor ice_set/get_rss into LUT and key specific functions")
Signed-off-by: Cody Haas <chaas@riotgames.com>
Closes: https://lore.kernel.org/intel-wired-lan/CAH7f-UKkJV8MLY7zCdgCrGE55whRhbGAXvgkDnwgiZ9gUZT7_w@mail.gmail.com/
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Tested-by: Rinitha S <sx.rinitha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice.h
drivers/net/ethernet/intel/ice/ice_ethtool.c
drivers/net/ethernet/intel/ice/ice_main.c