summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2011-07-06 02:42:29 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2011-07-06 02:42:29 +0000
commit1a89f467197b52dbc105d9fb9b7aef6a030434a1 (patch)
tree00cefeb8bef85227278c728f72202394a4fd7923 /sys/dev/pci
parent194261cc022557c08e3f9e352f90ff1810814094 (diff)
cosnistently use IFQ_SET_MAXLEN, surfaced in a discussion with + ok bluhm
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_de.c4
-rw-r--r--sys/dev/pci/if_lmc_common.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/if_de.c b/sys/dev/pci/if_de.c
index 961cfcacdb8..fa2f274d47d 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.107 2011/04/03 15:36:02 jasper Exp $ */
+/* $OpenBSD: if_de.c,v 1.108 2011/07/06 02:42:27 henning Exp $ */
/* $NetBSD: if_de.c,v 1.58 1998/01/12 09:39:58 thorpej Exp $ */
/*-
@@ -3061,7 +3061,7 @@ tulip_reset(tulip_softc_t * const sc)
TULIP_BUSMODE_DESC_BIGENDIAN : 0));
sc->tulip_txtimer = 0;
- sc->tulip_txq.ifq_maxlen = TULIP_TXDESCS;
+ IFQ_SET_MAXLEN(&sc->tulip_txq, TULIP_TXDESCS);
/*
* Free all the mbufs that were on the transmit ring.
*/
diff --git a/sys/dev/pci/if_lmc_common.c b/sys/dev/pci/if_lmc_common.c
index a7ac9c465f0..5168def4b9d 100644
--- a/sys/dev/pci/if_lmc_common.c
+++ b/sys/dev/pci/if_lmc_common.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_lmc_common.c,v 1.12 2010/04/08 00:23:53 tedu Exp $ */
+/* $OpenBSD: if_lmc_common.c,v 1.13 2011/07/06 02:42:28 henning Exp $ */
/* $NetBSD: if_lmc_common.c,v 1.1 1999/03/25 03:32:43 explorer Exp $ */
/*-
@@ -261,7 +261,7 @@ lmc_dec_reset(lmc_softc_t * const sc)
|TULIP_BUSMODE_CACHE_ALIGN8
|TULIP_BUSMODE_READMULTIPLE);
- sc->lmc_txq.ifq_maxlen = LMC_TXDESCS;
+ IFQ_SET_MAXLEN(&sc->lmc_txq, LMC_TXDESCS);
/*
* Free all the mbufs that were on the transmit ring.