[Intel-wired-lan] [PATCH 2/2] virtchnl: Use the BIT() macro for capability/offload flags

Brelinski, Tony tony.brelinski at intel.com
Fri Oct 29 20:55:22 UTC 2021


> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Creeley, Brett
> Sent: Friday, May 7, 2021 3:09 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH 2/2] 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 at intel.com>
> ---
>  include/linux/avf/virtchnl.h | 40 ++++++++++++++++++------------------
>  1 file changed, 20 insertions(+), 20 deletions(-)

Tested-by: Tony Brelinski <tony.brelinski at intel.com>




More information about the Intel-wired-lan mailing list