]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 15:04:34 +0000 (23:04 +0800)
commitd29a335f998dce66c9cd6ed30b093f8ec9c53116
tree7f9ecf0c5bd7ffeaba90f6fac2703ccc082c552b
parent6e5444ba4e5f22f71000b4e2d68bb0da9e20ef0e
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.

(cherry picked from commit 8f15486dd0f6e8423cb33fa8513ed9d074476471)
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>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/ixgbe/ixgbe.h
drivers/net/ixgbe/ixgbe_main.c