ixgbe: count q_vectors instead of MSI-X vectors
authorAlexander Duyck <alexander.h.duyck@intel.com>
Sat, 5 May 2012 05:30:43 +0000 (05:30 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 11 Jul 2012 08:50:59 +0000 (01:50 -0700)
commit49c7ffbe7b9eee0dbbce09d9afbfdbec98324438
treec369cc6dd28d46cda9a18d2d2d13596f49884ea5
parent4715213d9cf40285492fff4092bb1fa8e982f632
ixgbe: count q_vectors instead of MSI-X vectors

It makes much more sense for us to count q_vectors instead of MSI-X
vectors.  We were using num_msix_vectors to find the number of q_vectors in
multiple places.  This was wasteful since we only had one place that
actually needs the number of MSI-X vectors and that is in slow path.

Signed-off-by: Alexander Duyck <alexander.h.duyck@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.h
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c