diff options
| author | itojun <itojun@NetBSD.org> | 2002-03-05 04:12:57 +0000 |
|---|---|---|
| committer | itojun <itojun@NetBSD.org> | 2002-03-05 04:12:57 +0000 |
| commit | ac36f7cb2c4f72b86e6d2b681ac6e29f4cfaeab9 (patch) | |
| tree | 445a5cc94468e541a8b928a5ad54928dc33b1d22 /sys/dev/ofw | |
| parent | 69881cf6b8dc615ac34107b2f982835e042159e3 (diff) | |
bring in latest ALTQ from kjc. ALTQify some of the drivers.
Diffstat (limited to 'sys/dev/ofw')
| -rw-r--r-- | sys/dev/ofw/ofnet.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ofw/ofnet.c b/sys/dev/ofw/ofnet.c index 8fc0a91b117..a6b9aac99c1 100644 --- a/sys/dev/ofw/ofnet.c +++ b/sys/dev/ofw/ofnet.c @@ -1,4 +1,4 @@ -/* $NetBSD: ofnet.c,v 1.23 2001/11/13 07:26:28 lukem Exp $ */ +/* $NetBSD: ofnet.c,v 1.24 2002/03/05 04:12:58 itojun Exp $ */ /* * Copyright (C) 1995, 1996 Wolfgang Solfrank. @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ofnet.c,v 1.23 2001/11/13 07:26:28 lukem Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ofnet.c,v 1.24 2002/03/05 04:12:58 itojun Exp $"); #include "ofnet.h" #include "opt_inet.h" @@ -162,6 +162,7 @@ ofnet_attach(struct device *parent, struct device *self, void *aux) ifp->if_ioctl = ofnet_ioctl; ifp->if_watchdog = ofnet_watchdog; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_NOTRAILERS; + IFQ_SET_READY(&ifp->if_snd); if_attach(ifp); ether_ifattach(ifp, myaddr); @@ -327,7 +328,7 @@ ofnet_start(struct ifnet *ifp) ofnet_read(of); /* Now get the first packet on the queue */ - IF_DEQUEUE(&ifp->if_snd, m0); + IFQ_DEQUEUE(&ifp->if_snd, m0); if (!m0) return; |
