em: Clear status polling count during interrupt disable handling
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 28 Oct 2012 10:27:40 +0000 (18:27 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 28 Oct 2012 10:27:40 +0000 (18:27 +0800)
sys/dev/netif/em/if_em.c

index a281a0e..191ea9a 100644 (file)
@@ -3536,6 +3536,8 @@ em_disable_intr(struct adapter *adapter)
 
        E1000_WRITE_REG(&adapter->hw, E1000_IMC, clear);
 
+       adapter->npoll_stcount = 0;
+
        lwkt_serialize_handler_disable(adapter->arpcom.ac_if.if_serializer);
 }