]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ice: use netif_get_num_default_rss_queues()
authorMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Thu, 30 Oct 2025 08:30:53 +0000 (09:30 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 9 Jan 2026 17:23:40 +0000 (09:23 -0800)
commitee13aa1a2c5a68943a730ddbde300ba11b84229c
tree39fd225699dec3cd203b59e052932811948a681f
parent483dd5f36f891a2c3c2bc3231dd136891e75b744
ice: use netif_get_num_default_rss_queues()

On some high-core systems (like AMD EPYC Bergamo, Intel Clearwater
Forest) loading ice driver with default values can lead to queue/irq
exhaustion. It will result in no additional resources for SR-IOV.

In most cases there is no performance reason for more than half
num_cpus(). Limit the default value to it using generic
netif_get_num_default_rss_queues().

Still, using ethtool the number of queues can be changed up to
num_online_cpus(). It can be done by calling:
$ethtool -L ethX combined $(nproc)

This change affects only the default queue amount.

Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_irq.c
drivers/net/ethernet/intel/ice/ice_lib.c