[Intel-wired-lan] [PATCH S19 11/15] ice: Use bitfields when possible

Bowers, AndrewX andrewx.bowers at intel.com
Fri Apr 26 22:00:41 UTC 2019


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Anirudh Venkataramanan
> Sent: Tuesday, April 16, 2019 10:25 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH S19 11/15] ice: Use bitfields when possible
> 
> From: Jesse Brandeburg <jesse.brandeburg at intel.com>
> 
> We can use bitfields to store boolean values and when the bitfields are next
> to each other, the compiler will combine them (as long as the size holds
> enough).
> 
> Signed-off-by: Jesse Brandeburg <jesse.brandeburg at intel.com>
> Signed-off-by: Anirudh Venkataramanan
> <anirudh.venkataramanan at intel.com>
> ---
>  drivers/net/ethernet/intel/ice/ice.h             | 10 +++++-----
>  drivers/net/ethernet/intel/ice/ice_txrx.h        |  2 +-
>  drivers/net/ethernet/intel/ice/ice_virtchnl_pf.h | 10 +++++-----
>  3 files changed, 11 insertions(+), 11 deletions(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>




More information about the Intel-wired-lan mailing list