]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
virtchnl: Use the BIT() macro for capability/offload flags
authorBrett Creeley <brett.creeley@intel.com>
Fri, 7 May 2021 22:09:11 +0000 (15:09 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 29 Oct 2021 20:11:53 +0000 (13:11 -0700)
commit4a15022f82ee0f2e14a7f953b7bbc0f5c983b663
treeb9cf24097712b017a3b9f9121c6eb7157046ef52
parent5bf84b29938579a9350a4a9c2c4f8b5da2aa6992
virtchnl: Use the BIT() macro for capability/offload flags

Currently raw hex values are used to define specific bits for each
capability/offload in virtchnl.h. Using raw hex values makes it
unclear which bits are used/available. Fix this by using the BIT()
macro so it's immediately obvious which bits are used/available.

Also, move the VIRTCHNL_VF_CAP_ADV_LINK_SPEED define in the correct
place to line up with the other bit values and add a comment for its
purpose.

Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Tested-by: Tony Brelinski <tony.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
include/linux/avf/virtchnl.h