ice: add and use new ice_for_each_traffic_class() macro
authorBruce Allan <bruce.w.allan@intel.com>
Wed, 13 Feb 2019 18:51:10 +0000 (10:51 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 25 Mar 2019 17:33:54 +0000 (10:33 -0700)
commit2bdc97be97136004e4a13d3ade50ad2e6d6c7d44
tree4386efe438103f3e7e9b9ad16688d00da5e9060d
parent105e5bc23a3a9de3f6c2d6af116bfc0d2334519a
ice: add and use new ice_for_each_traffic_class() macro

There are numerous for() loops iterating over each of the max traffic
classes.  Use a simple iterator macro instead to make the code cleaner.

Signed-off-by: Bruce Allan <bruce.w.allan@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_common.c
drivers/net/ethernet/intel/ice/ice_lib.c
drivers/net/ethernet/intel/ice/ice_sched.c
drivers/net/ethernet/intel/ice/ice_type.h