diff options
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_de.c | 6 | ||||
-rw-r--r-- | sys/dev/pci/if_lmc.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/pci/if_de.c b/sys/dev/pci/if_de.c index fa2f274d47d..e2ce3371cd8 100644 --- a/sys/dev/pci/if_de.c +++ b/sys/dev/pci/if_de.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_de.c,v 1.108 2011/07/06 02:42:27 henning Exp $ */ +/* $OpenBSD: if_de.c,v 1.109 2011/07/07 20:42:56 henning Exp $ */ /* $NetBSD: if_de.c,v 1.58 1998/01/12 09:39:58 thorpej Exp $ */ /*- @@ -3205,7 +3205,7 @@ tulip_rx_intr(tulip_softc_t * const sc) bus_dmamap_t map; int error; - if (fillok && sc->tulip_rxq.ifq_len < TULIP_RXQ_TARGET) + if (fillok && IF_LEN(&sc->tulip_rxq) < TULIP_RXQ_TARGET) goto queue_mbuf; #if defined(TULIP_DEBUG) @@ -3458,7 +3458,7 @@ tulip_rx_intr(tulip_softc_t * const sc) IF_ENQUEUE(&sc->tulip_rxq, ms); } while ((ms = me) != NULL); - if (sc->tulip_rxq.ifq_len >= TULIP_RXQ_TARGET) + if (IF_LEN(&sc->tulip_rxq) >= TULIP_RXQ_TARGET) sc->tulip_flags &= ~TULIP_RXBUFSLOW; TULIP_PERFEND(rxget); } diff --git a/sys/dev/pci/if_lmc.c b/sys/dev/pci/if_lmc.c index a60df284061..5f1b3a5b3ed 100644 --- a/sys/dev/pci/if_lmc.c +++ b/sys/dev/pci/if_lmc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_lmc.c,v 1.24 2010/01/04 18:34:19 chl Exp $ */ +/* $OpenBSD: if_lmc.c,v 1.25 2011/07/07 20:42:56 henning Exp $ */ /* $NetBSD: if_lmc.c,v 1.1 1999/03/25 03:32:43 explorer Exp $ */ /*- @@ -507,7 +507,7 @@ lmc_rx_intr(lmc_softc_t * const sc) bus_dmamap_t map; int error; - if (fillok && sc->lmc_rxq.ifq_len < LMC_RXQ_TARGET) + if (fillok && IF_LEN(&sc->lmc_rxq) < LMC_RXQ_TARGET) goto queue_mbuf; /* @@ -737,7 +737,7 @@ lmc_rx_intr(lmc_softc_t * const sc) IF_ENQUEUE(&sc->lmc_rxq, ms); } while ((ms = me) != NULL); - if (sc->lmc_rxq.ifq_len >= LMC_RXQ_TARGET) + if (IF_LEN(&sc->lmc_rxq) >= LMC_RXQ_TARGET) sc->lmc_flags &= ~LMC_RXBUFSLOW; } } |