]> 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)
commitd4cdb93c6d4c6878194cbab94a4cae08931421bf
treef3a38baeae23a85099a746a9fe3ea1ea13737ed1
parent2777c90b1b412512e3ab3be06f3810867b4fea22
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