From 5e6b5f041d4fb0f077964ed355d69d8f8abcf33a Mon Sep 17 00:00:00 2001 From: jfv Date: Tue, 6 Aug 2013 21:16:00 +0000 Subject: [PATCH] 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 to the interrupt handler for DRV_RUNNING. Approved by: re git-svn-id: svn://svn.freebsd.org/base/releng/9.2@254009 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/dev/e1000/if_igb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/e1000/if_igb.c b/sys/dev/e1000/if_igb.c index 101c73c1..4e8bd0f0 100644 --- a/sys/dev/e1000/if_igb.c +++ b/sys/dev/e1000/if_igb.c @@ -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; -- 2.45.0