OSDN Git Service

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)
commitf5f085c01d26d487673f508bce5bf8b7394ad059
treef3a38baeae23a85099a746a9fe3ea1ea13737ed1
parent9dbb33da123650dacb6e63889c7decf38e76149a
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