net/ice/base: move and add some help function and macros
authorQi Zhang <qi.z.zhang@intel.com>
Thu, 29 Aug 2019 02:36:34 +0000 (10:36 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 7 Oct 2019 13:00:53 +0000 (15:00 +0200)
commitf636f2888cec5f933802a2d76d8ea79e1edbc2c1
tree6df83b19f73c111252c3a0775c65c1ac996ae41e
parenteda40e22b8580c3a292065163f4772a359c2d64b
net/ice/base: move and add some help function and macros

The patch move ice_ilog2 and ice_is_pow2 to ice_type.h, also add help
macro ROUND_UP and IS_ETHER_ADDR_EQUAL.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/ice/base/ice_flow.c
drivers/net/ice/base/ice_switch.c
drivers/net/ice/base/ice_type.h