fm10k/base: add bit macro
authorXiao Wang <xiao.w.wang@intel.com>
Fri, 19 Feb 2016 11:06:56 +0000 (19:06 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 16 Mar 2016 17:51:44 +0000 (18:51 +0100)
commitade0281d2f10c960d9fc6a7140e7ee1c1a225dfb
tree703c7944f2d51b1b3b0ed0dcbd9d4d80f42ed4d5
parent5774742cdab79d68b62ba12445d64ee6f3a297ff
fm10k/base: add bit macro

Using the BIT macro can simplify the bit-shifting operation and make the
code look clean. Similar to how this is handled in the i40e base code,
define a macro for it in DPDK, so it can be used here too.

Signed-off-by: Wang Xiao W <xiao.w.wang@intel.com>
Tested-by: Heng Ding <hengx.ding@intel.com>
Acked-by: Jing Chen <jing.d.chen@intel.com>
drivers/net/fm10k/base/fm10k_pf.c
drivers/net/fm10k/base/fm10k_tlv.c
drivers/net/fm10k/base/fm10k_type.h