ixgbe: determine vector count inside ixgbe_acquire_msix_vectors
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 3 Sep 2014 08:12:57 +0000 (08:12 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 18 Sep 2014 10:57:09 +0000 (03:57 -0700)
commit3bcf344657afefdd468dd9c2b30a009ee7ce7abc
tree45bd5d215c5bd9ad2928561d518f401db297cbe6
parent027bb561eff4a5c2185d3cbad6a41785eb50dded
ixgbe: determine vector count inside ixgbe_acquire_msix_vectors

Our calculated v_budget doesn't matter except if we allocate MSI-X
vectors. We shouldn't need to calculate this outside of the function, so
don't. Instead, only calculate it once we attempt to acquire MSI-X
vectors. This helps collocate all of the MSI-X vector code together.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c