ice: Use ice_for_each_q_vector macro where possible
authorBrett Creeley <brett.creeley@intel.com>
Thu, 28 Feb 2019 23:25:53 +0000 (15:25 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 2 May 2019 08:09:51 +0000 (01:09 -0700)
commit0c2561c81f5d089781f7cb24b8ce9e52ac716f61
tree4b236b339f1f03350862746af6f47264f4080765
parenta92e1bb6ade7526f0c2b7b462516b1941e965504
ice: Use ice_for_each_q_vector macro where possible

There are many places in the code where we do the following:

for (i = 0; i < vsi->num_q_vectors; i++)

Instead use the macro mentioned in the commit title:

ice_for_each_q_vector(vsi, i)

Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_lib.c
drivers/net/ethernet/intel/ice/ice_main.c