aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ixgbe/ixgbe.h
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2012-02-09 21:08:37 -0500
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2012-03-12 23:32:27 -0400
commit8f15486dd0f6e8423cb33fa8513ed9d074476471 (patch)
treed34c3501acb338750be856a4756ff96b0e45fc92 /drivers/net/ethernet/intel/ixgbe/ixgbe.h
parent5d967eb7f84d2761d624d033c2583187b37b56ce (diff)
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>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbe/ixgbe.h')
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe.h b/drivers/net/ethernet/intel/ixgbe/ixgbe.h
index c5cd2b678b44..f25b4e2f8c57 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe.h
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe.h
@@ -370,7 +370,7 @@ static inline u16 ixgbe_desc_unused(struct ixgbe_ring *ring)
370#define MAX_MSIX_Q_VECTORS MAX_MSIX_Q_VECTORS_82599 370#define MAX_MSIX_Q_VECTORS MAX_MSIX_Q_VECTORS_82599
371#define MAX_MSIX_COUNT MAX_MSIX_VECTORS_82599 371#define MAX_MSIX_COUNT MAX_MSIX_VECTORS_82599
372 372
373#define MIN_MSIX_Q_VECTORS 2 373#define MIN_MSIX_Q_VECTORS 1
374#define MIN_MSIX_COUNT (MIN_MSIX_Q_VECTORS + NON_Q_VECTORS) 374#define MIN_MSIX_COUNT (MIN_MSIX_Q_VECTORS + NON_Q_VECTORS)
375 375
376/* default to trying for four seconds */ 376/* default to trying for four seconds */