net/ice/base: introduce and use bitmap hamming weight API
authorQi Zhang <qi.z.zhang@intel.com>
Wed, 26 Aug 2020 08:49:14 +0000 (16:49 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:09 +0000 (18:55 +0200)
commit6d288fa5f72b04e914d249d539501b4a418d54d9
tree63ac572fdcffa77f125ec6c7f9dc84f162f833b9
parentdd4a3cef556ace6cda56e757d0ae40ea4b747f9e
net/ice/base: introduce and use bitmap hamming weight API

Introduce ice_bitmap_hweight() and use it instead of open-coding that
functionality.

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_bitops.h
drivers/net/ice/base/ice_switch.c