Skip to content

Commit 3647cd6

Browse files
aloktionJeff Kirsher
authored andcommitted
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 <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent f3fef2b commit 3647cd6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/intel/i40e/i40e_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11042,6 +11042,7 @@ int i40e_reconfig_rss_queues(struct i40e_pf *pf, int queue_count)
1104211042
if (!(pf->flags & I40E_FLAG_RSS_ENABLED))
1104311043
return 0;
1104411044

11045+
queue_count = min_t(int, queue_count, num_online_cpus());
1104511046
new_rss_size = min_t(int, queue_count, pf->rss_size_max);
1104611047

1104711048
if (queue_count != vsi->num_queue_pairs) {

0 commit comments

Comments
 (0)