ice: Fix spurious interrupt during removal of trusted VF
authorNorbert Zulinski <norbertx.zulinski@intel.com>
Mon, 10 Oct 2022 14:22:22 +0000 (10:22 -0400)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 9 Nov 2022 21:20:38 +0000 (13:20 -0800)
commitf23df5220d2bf8d5e639f074b76f206a736d09e1
treeb3cfcb9f69c7a01b05a626286e1fc679f0c19176
parent27c064ae14d1a80c790ce019759500c95a2a9551
ice: Fix spurious interrupt during removal of trusted VF

Previously, during removal of trusted VF when VF is down there was
number of spurious interrupt equal to number of queues on VF.

Add check if VF already has inactive queues. If VF is disabled and
has inactive rx queues then do not disable rx queues.
Add check in ice_vsi_stop_tx_ring if it's VF's vsi and if VF is
disabled.

Fixes: efe41860008e ("ice: Fix memory corruption in VF driver")
Signed-off-by: Norbert Zulinski <norbertx.zulinski@intel.com>
Signed-off-by: Mateusz Palczewski <mateusz.palczewski@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_base.c
drivers/net/ethernet/intel/ice/ice_lib.c
drivers/net/ethernet/intel/ice/ice_lib.h
drivers/net/ethernet/intel/ice/ice_vf_lib.c