]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb5b7be76cd797db094a98aa0fb038c428709e6bf
treed592e5102b15f93011e51f6d6844981c97719e52
parentc0c95ea8877f125ffbcecaf8ec731e63937b77f5
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