ice: use ice_for_each_vsi macro when possible
authorBrett Creeley <brett.creeley@intel.com>
Fri, 8 Feb 2019 20:50:54 +0000 (12:50 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 19 Mar 2019 23:54:23 +0000 (16:54 -0700)
commit80ed404abb480563aaefef28accc69801a95f964
tree3431aee8ffa726e919b85e8593f4c2c1e6d2b3f9
parentd8df260af70f8b8a9f23466f569c820a90e91696
ice: use ice_for_each_vsi macro when possible

Replace all instances of:
for (i = 0; i < pf->num_alloc_vsi; i++)

with the following macro:
ice_for_each_vsi(pf, i)

This will allow the code to be consistent since there are currently
cases of using both.

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_ethtool.c
drivers/net/ethernet/intel/ice/ice_main.c
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c