Skip to contentSkip to conversation

iavf: Limiting RSS queues to CPUs

PATCH New Alice Michael 2 participants 2 messages Mar 29, 2019 – Apr 2, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iavf: Limiting RSS queues to CPUs

From: Aleksandr Loktionov <[email protected]>

Limiting RSS queues number to online CPUs number in order to avoid issues with creating misconfigured RSS queues.

---
 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/iavf/iavf_virtchnl.c +1 -1
index e64751da0921..357c74bc3265 100644
@@ -416,7 +416,7 @@ int iavf_request_queues(struct iavf_adapter *adapter, int num)
 		return -EBUSY;
 	}
 
-	vfres.num_queue_pairs = num;
+	vfres.num_queue_pairs = min_t(int, num, num_online_cpus());
 
 	adapter->current_op = VIRTCHNL_OP_REQUEST_QUEUES;
 	adapter->flags |= IAVF_FLAG_REINIT_ITR_NEEDED;
Signature · 1 line
2.19.2
#1 lore raw

PATCH 1/1 iavf: Limiting RSS queues to CPUs

Quoted 11 lines

-----Original Message-----
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On Behalf Of Alice Michael
Sent: Friday, March 29, 2019 12:49 PM
To: Michael, Alice <[email protected]>; intel-wired- lan at lists.osuosl.org
Cc: Loktionov, Aleksandr <[email protected]>
Subject: [Intel-wired-lan] [PATCH] iavf: Limiting RSS queues to CPUs

From: Aleksandr Loktionov <[email protected]>

Quoted 7 lines

Limiting RSS queues number to online CPUs number in order to avoid issues with creating misconfigured RSS queues.

---
 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)