[Intel-wired-lan] [PATCH S12 07/14] ice: use ice_for_each_vsi macro when possible

Bowers, AndrewX andrewx.bowers at intel.com
Fri Feb 22 23:51:24 UTC 2019


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Anirudh Venkataramanan
> Sent: Friday, February 8, 2019 12:51 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH S12 07/14] ice: use ice_for_each_vsi macro
> when possible
> 
> From: Brett Creeley <brett.creeley at intel.com>
> 
> 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 at intel.com>
> Signed-off-by: Anirudh Venkataramanan
> <anirudh.venkataramanan at intel.com>
> ---
>  drivers/net/ethernet/intel/ice/ice_ethtool.c     |  3 +--
>  drivers/net/ethernet/intel/ice/ice_main.c        | 12 ++++++------
>  drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c |  2 +-
>  3 files changed, 8 insertions(+), 9 deletions(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>




More information about the Intel-wired-lan mailing list