]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: move I40E_FLAG_UDP_FILTER_SYNC to the state field
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 16 Mar 2018 08:26:31 +0000 (01:26 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 26 Mar 2018 20:44:02 +0000 (13:44 -0700)
commit19f06ad8986ee420d8cdcd2a85777a93363615f1
tree28fca16d414cf3988bc227145ac5215a60a0ea47
parentac7b08aa738c730ad26b7d3a0075f0c11f68a63d
i40e: move I40E_FLAG_UDP_FILTER_SYNC to the state field

This flag is modified during run time, possibly even when the RTNL lock
is not held. Additionally it has a few places which should be using
test_and_set or test_and_clear atomic bit operations.

Create a new state bit __I40E_UDP_SYNC_PENDING and use it instead of the
ole I40E_FLAG_UDP_FILTER_SYNC flag.

This is part of a larger effort to remove the need for using 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