[Intel-wired-lan] [next PATCH S89 5/8] i40e: move client flags into state bits

Bowers, AndrewX andrewx.bowers at intel.com
Mon Mar 19 21:15:47 UTC 2018


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Alice Michael
> Sent: Friday, March 16, 2018 1:27 AM
> To: Michael, Alice <alice.michael at intel.com>; intel-wired-
> lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [next PATCH S89 5/8] i40e: move client flags into
> state bits
> 
> From: Jacob Keller <jacob.e.keller at intel.com>
> 
> The iWarp client flags are all potentially changed when the RTNL lock is not
> held, so they should not be part of the pf->flags variable. Instead, move
> them into the state field so that we can use atomic bit operations.
> 
> This is part of a larger effort to remove cmpxchg64 in
> i40e_set_priv_flags()
> 
> Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>
> ---
>  drivers/net/ethernet/intel/i40e/i40e.h        |  7 ++++---
>  drivers/net/ethernet/intel/i40e/i40e_client.c |  7 +++----
>  drivers/net/ethernet/intel/i40e/i40e_main.c   | 22 ++++++++++------------
>  3 files changed, 17 insertions(+), 19 deletions(-)

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




More information about the Intel-wired-lan mailing list