net/ice/base: introduce and use for each bit iterator
authorQi Zhang <qi.z.zhang@intel.com>
Wed, 26 Aug 2020 09:34:31 +0000 (17:34 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:09 +0000 (18:55 +0200)
commitbd0438d9d4f8d12a48c338eb02c8951c0e6e88fc
tree98a8af1b06356f35fb7ea533b227ab1b488ef160
parent4406ca307af47e71551d02415781e6ac37c0a539
net/ice/base: introduce and use for each bit iterator

A number of code flows iterate over a block of memory to do something
for every bit set in that memory. Use existing bit operations in a new
iterator macro to make those code flows cleaner.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/base/ice_acl_ctrl.c
drivers/net/ice/base/ice_bitops.h
drivers/net/ice/base/ice_flex_pipe.c
drivers/net/ice/base/ice_flow.c
drivers/net/ice/base/ice_switch.c