aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_lib.c
diff options
context:
space:
mode:
authorBrett Creeley <brett.creeley@intel.com>2019-07-29 02:04:45 -0700
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2019-08-23 09:49:19 -0700
commitda4a9e73d8a58eccef93682c9f2d910c346d2c1e (patch)
treebc12aa1079c9ce038ed6cd1bb0ff6a3e82626b7e /drivers/net/ethernet/intel/ice/ice_lib.c
parentice: Account for all states of FW DCBx and LLDP (diff)
downloadlinux-dev-da4a9e73d8a58eccef93682c9f2d910c346d2c1e.tar.xz
linux-dev-da4a9e73d8a58eccef93682c9f2d910c346d2c1e.zip
ice: Don't call synchronize_irq() for VF's from the host
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>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/intel/ice/ice_lib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_lib.c b/drivers/net/ethernet/intel/ice/ice_lib.c
index d6279dfe029e..c067ef6be7f4 100644
--- a/drivers/net/ethernet/intel/ice/ice_lib.c
+++ b/drivers/net/ethernet/intel/ice/ice_lib.c
@@ -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);
}