]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: fix handling of vf_states variable
authorAlan Brady <alan.brady@intel.com>
Tue, 22 Aug 2017 10:57:52 +0000 (06:57 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 2 Oct 2017 19:46:35 +0000 (12:46 -0700)
commit133e2011c7c79b5d68945b870cad5a9506a59a7d
tree2458fad256dc2da1106570d361d647aa3f8ea200
parent2e94baa770de606e2dd37796089897389a426977
i40e: fix handling of vf_states variable

Currently we inappropriately clear the vf_states variable with a null
assignment.  This is problematic because we should be using atomic
bitops on this variable and we don't actually want to clear all the
flags.  We should just clear the ones we know we want to clear.
Additionally remove the I40E_VF_STATE_FCOEENA bit because it is no
longer being used.

Signed-off-by: Alan Brady <alan.brady@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_virtchnl_pf.c
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h