This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

When the igb driver is static there are cases when early interrupts o…

…ccur,

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

Approved by: re
  • Loading branch information...
jfv jfv
jfv authored and jfv committed Aug 6, 2013
1 parent 92771a2 commit 14d93d68e7e38b885045ceee6f658b8f170a47c1
Showing with 4 additions and 0 deletions.
  1. +4 −0 sys/dev/e1000/if_igb.c
View
@@ -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;

0 comments on commit 14d93d6

Please sign in to comment.