When the igb driver is static there are cases when early interrupts occur,

resulting in a panic in refresh_mbufs, to prevent this add a check in the
interrupt handler for DRV_RUNNING.

MFC after: 1 day (critical for 9.2)
This commit is contained in:
Jack F Vogel 2013-08-06 18:00:53 +00:00
parent ffa0165ae0
commit 54a6317360

View file

@ -1572,6 +1572,10 @@ igb_msix_que(void *arg)
u32 newitr = 0;
bool more_rx;
/* Ignore spurious interrupts */
if ((ifp->if_drv_flags & IFF_DRV_RUNNING) == 0)
return;
E1000_WRITE_REG(&adapter->hw, E1000_EIMC, que->eims);
++que->irqs;