]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit58e151d078b7b3a989271b2ce963d0a01315319b
tree4386efe438103f3e7e9b9ad16688d00da5e9060d
parenta8cff3dac7b6809138d2ca4db84ef4c467b4d48f
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