]> 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)
commit09cf7f10768c6a8f8982cbb31f4502380fc0d3a3
treefefe2aca765a0898ba8a784a07289d77d4fdd476
parentb6628bb9cb77728dbf1cda03cd245f75af544a3c
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