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)
commit7f9ff47683cb7441e6d0496365bcf64738f6d2d4
treefefe2aca765a0898ba8a784a07289d77d4fdd476
parenta68de58d2791dd9f2b159703b70377011b35a568
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