]> git.baikalelectronics.ru Git - kernel.git/commit
ice: introduce ICE_VF_RESET_LOCK flag
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 23 Feb 2022 00:27:09 +0000 (16:27 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 15 Mar 2022 20:23:02 +0000 (13:23 -0700)
commit9c298dd97d4b2aaa70af0e6277458bebcfd52e0a
treef3a38baeae23a85099a746a9fe3ea1ea13737ed1
parentff917c14e72838975d489d1815e4e2b6a320a290
ice: introduce ICE_VF_RESET_LOCK flag

The ice_reset_vf function performs actions which must be taken only
while holding the VF configuration lock. Some flows already acquired the
lock, while other flows must acquire it just for the reset function. Add
the ICE_VF_RESET_LOCK flag to the function so that it can handle taking
and releasing the lock instead at the appropriate scope.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_main.c
drivers/net/ethernet/intel/ice/ice_sriov.c
drivers/net/ethernet/intel/ice/ice_vf_lib.c
drivers/net/ethernet/intel/ice/ice_vf_lib.h