]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc0c95ea8877f125ffbcecaf8ec731e63937b77f5
tree25c6a75a8d24e9a6c81f67835d25c741dd736f91
parentb0f30691a54fa0431740863ac352ccb2bf240959
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