jme: Make sure only rx desc empty is cleared in status register
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 30 Sep 2012 12:11:53 +0000 (20:11 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 30 Sep 2012 14:41:18 +0000 (22:41 +0800)
sys/dev/netif/jme/if_jme.c

index c149258..f1b234e 100644 (file)
@@ -3287,7 +3287,7 @@ jme_npoll_status(struct ifnet *ifp, int pollhz __unused)
                                lwkt_serialize_exit(&rdata->jme_rx_serialize);
                        }
                }
-               CSR_WRITE_4(sc, JME_INTR_STATUS, status);
+               CSR_WRITE_4(sc, JME_INTR_STATUS, status & INTR_RXQ_DESC_EMPTY);
                CSR_WRITE_4(sc, JME_RXCSR, sc->jme_rxcsr |
                    RXCSR_RX_ENB | RXCSR_RXQ_START);
        }