common/iavf: use macro to define offload/capability
authorQi Zhang <qi.z.zhang@intel.com>
Sat, 24 Apr 2021 06:03:37 +0000 (14:03 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Mon, 26 Apr 2021 08:17:50 +0000 (10:17 +0200)
commit7880d1d4efe9326db806095cdd2205e7310b4fbc
tree4d8ca5a8bfa1d04727e3561d04fa9de3a091c056
parente53176ef4b6cb050bfff063775312130f4b00da1
common/iavf: use macro to define offload/capability

Currently raw hex values are used to define specific bits for each
offload/capability in virtchnl.h. The can and has led to duplicate
defined bits. Fix this by using the BIT() macro so it's
immediately obvious which bits are used/available.

Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/common/iavf/virtchnl.h