提交 f47cf66e 编写于 作者: J Jesse Brandeburg 提交者: Jeff Garzik

ixgbe: fix bug with shared interrupts

fix ixgbe bug reported with shared legacy interrupts
Signed-off-by: NJesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
上级 41fb9248
...@@ -1245,8 +1245,13 @@ static irqreturn_t ixgbe_intr(int irq, void *data) ...@@ -1245,8 +1245,13 @@ static irqreturn_t ixgbe_intr(int irq, void *data)
/* for NAPI, using EIAM to auto-mask tx/rx interrupt bits on read /* for NAPI, using EIAM to auto-mask tx/rx interrupt bits on read
* therefore no explict interrupt disable is necessary */ * therefore no explict interrupt disable is necessary */
eicr = IXGBE_READ_REG(hw, IXGBE_EICR); eicr = IXGBE_READ_REG(hw, IXGBE_EICR);
if (!eicr) if (!eicr) {
/* shared interrupt alert!
* make sure interrupts are enabled because the read will
* have disabled interrupts due to EIAM */
ixgbe_irq_enable(adapter);
return IRQ_NONE; /* Not our interrupt */ return IRQ_NONE; /* Not our interrupt */
}
if (eicr & IXGBE_EICR_LSC) if (eicr & IXGBE_EICR_LSC)
ixgbe_check_lsc(adapter); ixgbe_check_lsc(adapter);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册