]> 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)
commit22f8ac34a7b86fec82c9b6011238ca4d392de856
tree2458fad256dc2da1106570d361d647aa3f8ea200
parent0115f3530e45d1df69b2124773ec3b4f35b423c8
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