ixgbe: Default to queue pairs when number of queues is less than CPUs
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 10 Feb 2012 02:08:37 +0000 (02:08 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 13 Mar 2012 03:32:27 +0000 (20:32 -0700)
commit8f15486dd0f6e8423cb33fa8513ed9d074476471
treed34c3501acb338750be856a4756ff96b0e45fc92
parent5d967eb7f84d2761d624d033c2583187b37b56ce
ixgbe: Default to queue pairs when number of queues is less than CPUs

The old code had several errors in how it was determining the vector
budget.  In order to simplify things this patch updates the code so that it
will attempt to always allocated paired Rx/Tx vectors instead of attempting
to allocate individual vectors when the number of queues is less than the
number of CPUs.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Stephen Ko <stephen.s.ko@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe.h
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c