ice: Don't call synchronize_irq() for VF's from the host
authorBrett Creeley <brett.creeley@intel.com>
Mon, 29 Jul 2019 09:04:45 +0000 (02:04 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 23 Aug 2019 16:49:19 +0000 (09:49 -0700)
Currently we will call synchronize_irq() from the host for VF's. This is
not correct, so don't allow it.

Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_lib.c

index d6279df..c067ef6 100644 (file)
@@ -2817,6 +2817,10 @@ void ice_vsi_dis_irq(struct ice_vsi *vsi)
 
        ice_flush(hw);
 
+       /* don't call synchronize_irq() for VF's from the host */
+       if (vsi->type == ICE_VSI_VF)
+               return;
+
        ice_for_each_q_vector(vsi, i)
                synchronize_irq(pf->msix_entries[i + base].vector);
 }