i40e: move I40E_FLAG_TEMP_LINK_POLLING to state field
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 16 Mar 2018 08:26:33 +0000 (01:26 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 26 Mar 2018 20:48:10 +0000 (13:48 -0700)
commit0605c45ce5f33a51e0b23e1d36f2e56db3c95f58
tree25c6a75a8d24e9a6c81f67835d25c741dd736f91
parent134201aeadf3109ac9982ea81a79ec68442a07d1
i40e: move I40E_FLAG_TEMP_LINK_POLLING to state field

This flag is modified outside of the RTNL lock and thus should not be
part of the pf->flags variable.

Use a state bit instead, 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_main.c