Commit e734c1d8 authored by Anjali Singhai Jain's avatar Anjali Singhai Jain Committed by Jeff Kirsher

i40e: Cleanup reconfig rss path

RSS initialization was doing some extra work, remove the extra
work and any bugs it created when managing number of queues.

Change-ID: Iea75b04a70d73ce76947b6a177ce89ab4899d4c6
Signed-off-by: default avatarAnjali Singhai Jain <anjali.singhai@intel.com>
Signed-off-by: default avatarJesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: default avatarKavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 3de0506d
...@@ -5771,16 +5771,8 @@ int i40e_reconfig_rss_queues(struct i40e_pf *pf, int queue_count) ...@@ -5771,16 +5771,8 @@ int i40e_reconfig_rss_queues(struct i40e_pf *pf, int queue_count)
queue_count = rounddown_pow_of_two(queue_count); queue_count = rounddown_pow_of_two(queue_count);
if (queue_count != pf->rss_size) { if (queue_count != pf->rss_size) {
if (pf->queues_left < (queue_count - pf->rss_size)) {
dev_info(&pf->pdev->dev,
"Not enough queues to do RSS on %d queues: remaining queues %d\n",
queue_count, pf->queues_left);
return pf->rss_size;
}
i40e_prep_for_reset(pf); i40e_prep_for_reset(pf);
pf->num_lan_qps += (queue_count - pf->rss_size);
pf->queues_left -= (queue_count - pf->rss_size);
pf->rss_size = queue_count; pf->rss_size = queue_count;
i40e_reset_and_rebuild(pf, true); i40e_reset_and_rebuild(pf, true);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment