]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Fix the case where per TC queue count was higher than queues enabled
authorAnjali Singhai <anjali.singhai@intel.com>
Sat, 21 Feb 2015 06:43:19 +0000 (06:43 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 26 Feb 2015 12:53:59 +0000 (04:53 -0800)
commit61f614964d42dab0de2ed0b7a960ed944533680b
treefefe2aca765a0898ba8a784a07289d77d4fdd476
parent62551b020fdb90ab9854230bc911ecff7de7c197
i40e: Fix the case where per TC queue count was higher than queues enabled

When the driver or hardware gets less interrupt vectors than the actual
number of CPU cores, limit the queue count for the priority queue
traffic class (TC) queues.

This will fix a warning with multiple function mode where systems
regularly have more cores than vectors.

Also add extra comment for readability.

Change-ID: I4f02226263aa3995e1f5ee5503eac0cd6ee12fbd
Signed-off-by: Anjali Singhai Jain <anjali.singhai@intel.com>
Tested-by: Jim Young <james.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c