ixgbevf: Update q_vector to contain ring pointers instead of bitmaps
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 11 May 2012 08:32:45 +0000 (08:32 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 17 Jul 2012 10:03:27 +0000 (03:03 -0700)
commit6b43c44654f686c68f742baebb85ee9185d48687
tree0bc3dd6dbcfd2c674c9ee2c37a6e22113e085767
parent3595990a9ccc1b819bfe801940eb05f8a84f253e
ixgbevf: Update q_vector to contain ring pointers instead of bitmaps

For most cases the ixgbevf driver will only ever contain a single Tx and
single Rx queue.  In order to track that it makes more sense to use a
pointer instead of using a bitmap which must be search in order to locate
the ring on an adapter index.  As such I am changing the code to use
pointers and an iterator to access all rings on a given q_vector.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c