aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/i40e/i40e_main.c
diff options
context:
space:
mode:
authorAleksandr Loktionov <aleksandr.loktionov@intel.com>2018-12-19 06:45:37 -0800
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2019-01-22 06:57:04 -0800
commit3647cd6eaf83d7f6145a3ccac73f5286496490d2 (patch)
treef085714d4b3e49221959031c77af6262cbd54906 /drivers/net/ethernet/intel/i40e/i40e_main.c
parenti40e: Remove umem from VSI (diff)
downloadlinux-dev-3647cd6eaf83d7f6145a3ccac73f5286496490d2.tar.xz
linux-dev-3647cd6eaf83d7f6145a3ccac73f5286496490d2.zip
i40e: Limiting RSS queues to CPUs
Limiting RSS queues number to online CPUs number in order to avoid issues with creating misconfigured RSS queues. Signed-off-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
index 0ee641c41be4..b5311846573e 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_main.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
@@ -11042,6 +11042,7 @@ int i40e_reconfig_rss_queues(struct i40e_pf *pf, int queue_count)
if (!(pf->flags & I40E_FLAG_RSS_ENABLED))
return 0;
+ queue_count = min_t(int, queue_count, num_online_cpus());
new_rss_size = min_t(int, queue_count, pf->rss_size_max);
if (queue_count != vsi->num_queue_pairs) {