Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 1 changed file with 2 additions and 3 deletions. Show diff stats Hide diff stats

  1. +2 3 sys/dev/netif/jme/if_jme.c
5 sys/dev/netif/jme/if_jme.c
@@ -3175,10 +3175,9 @@ jme_rx_intr(struct jme_softc *sc, uint32_t status)
3175 3175 int r;
3176 3176
3177 3177 for (r = 0; r < sc->jme_rx_ring_cnt; ++r) {
3178   - if (status & jme_rx_status[r].jme_coal) {
3179   - struct jme_rxdata *rdata =
3180   - &sc->jme_cdata.jme_rx_data[r];
  3178 + struct jme_rxdata *rdata = &sc->jme_cdata.jme_rx_data[r];
3181 3179
  3180 + if (status & rdata->jme_rx_coal) {
3182 3181 lwkt_serialize_enter(&rdata->jme_rx_serialize);
3183 3182 jme_rxeof(rdata, -1);
3184 3183 lwkt_serialize_exit(&rdata->jme_rx_serialize);

0 comments on commit 31810fb

Please sign in to comment.
Something went wrong with that request. Please try again.