i40e: move client flags into state bits
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 16 Mar 2018 08:26:34 +0000 (01:26 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 26 Mar 2018 20:50:56 +0000 (13:50 -0700)
commit5f76a704b8df9b4da898a230ac40d143eaca9cd8
treed592e5102b15f93011e51f6d6844981c97719e52
parent0605c45ce5f33a51e0b23e1d36f2e56db3c95f58
i40e: move client flags into state bits

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@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e.h
drivers/net/ethernet/intel/i40e/i40e_client.c
drivers/net/ethernet/intel/i40e/i40e_main.c