Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

jme: Use RX data's interrupt mask to test interrupt status

Functionally same, semantically better
  • Loading branch information...
commit 31810fb82dcf3f04916d6ded8a9803b99d1549c0 1 parent dea2452
Sepherosa Ziehau authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 sys/dev/netif/jme/if_jme.c
5 sys/dev/netif/jme/if_jme.c
View
@@ -3175,10 +3175,9 @@ jme_rx_intr(struct jme_softc *sc, uint32_t status)
int r;
for (r = 0; r < sc->jme_rx_ring_cnt; ++r) {
- if (status & jme_rx_status[r].jme_coal) {
- struct jme_rxdata *rdata =
- &sc->jme_cdata.jme_rx_data[r];
+ struct jme_rxdata *rdata = &sc->jme_cdata.jme_rx_data[r];
+ if (status & rdata->jme_rx_coal) {
lwkt_serialize_enter(&rdata->jme_rx_serialize);
jme_rxeof(rdata, -1);
lwkt_serialize_exit(&rdata->jme_rx_serialize);
Please sign in to comment.
Something went wrong with that request. Please try again.