summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ixgbe/ixgbe.h
diff options
context:
space:
mode:
authorAlexander Duyck2012-02-10 03:08:37 +0100
committerJeff Kirsher2012-03-13 04:32:27 +0100
commit8f15486dd0f6e8423cb33fa8513ed9d074476471 (patch)
treed34c3501acb338750be856a4756ff96b0e45fc92 /drivers/net/ethernet/intel/ixgbe/ixgbe.h
parentixgbe: Correct Adaptive Interrupt Moderation so that it will change values (diff)
downloadkernel-qcow2-linux-8f15486dd0f6e8423cb33fa8513ed9d074476471.tar.gz
kernel-qcow2-linux-8f15486dd0f6e8423cb33fa8513ed9d074476471.tar.xz
kernel-qcow2-linux-8f15486dd0f6e8423cb33fa8513ed9d074476471.zip
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)
#define MAX_MSIX_Q_VECTORS MAX_MSIX_Q_VECTORS_82599
#define MAX_MSIX_COUNT MAX_MSIX_VECTORS_82599
-#define MIN_MSIX_Q_VECTORS 2
+#define MIN_MSIX_Q_VECTORS 1
#define MIN_MSIX_COUNT (MIN_MSIX_Q_VECTORS + NON_Q_VECTORS)
/* default to trying for four seconds */