common/iavf: fix duplicated offload bit
authorQi Zhang <qi.z.zhang@intel.com>
Sat, 24 Apr 2021 06:03:34 +0000 (14:03 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Mon, 26 Apr 2021 08:10:19 +0000 (10:10 +0200)
commit44a87aa9c2c89af075cec0f4eedf6ddd7c829088
tree359a37def0a1df9cc95de38c452079d2c3b3b036
parent34792a3b5b18e1c6f241aaab866a0b0ed1f10993
common/iavf: fix duplicated offload bit

The value of offload VIRTCHNL_VF_OFFLOAD_CRC bit already existed as
VIRTCHNL_VF_CAP_ADV_LINK_SPEED. Fix this now by changing the value of
VIRTCHNL_VF_OFFLOAD_CRC to a currently unused value.

Also, move the define for VIRTCHNL_VF_CAP_ADV_LINK_SPEED in the correct
place to line up with the other bit values and add a comment for its
purpose. Hopefully this will prevent from defining duplicate bits moving
forward.

Fixes: e244eeafcecb ("net/iavf/base: update virtual channel")
Cc: stable@dpdk.org
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