summaryrefslogtreecommitdiff
path: root/sys/arch/vax
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2015-11-07 12:01:23 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2015-11-07 12:01:23 +0000
commit0a8c83dfcc5df5628a59ab3ee71959a8cc6084b6 (patch)
tree210ebdd3cf93fe96b4847a5413fd23bec4041cc9 /sys/arch/vax
parent8cc42e807809ed80e4316aa5ec09161320d4cb33 (diff)
get rid of IF_PREPEND by switching to IFQ_POLL/IFQ_DEQUEUE.
IF_PREPEND only checks priq state, so it wont work out well if you're using hfsc. tested by miod@ ok mpi@ miod@
Diffstat (limited to 'sys/arch/vax')
-rw-r--r--sys/arch/vax/if/sgec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/vax/if/sgec.c b/sys/arch/vax/if/sgec.c
index 4b4fce4a1f2..d02c74dc7d5 100644
--- a/sys/arch/vax/if/sgec.c
+++ b/sys/arch/vax/if/sgec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sgec.c,v 1.30 2015/10/27 15:20:13 mpi Exp $ */
+/* $OpenBSD: sgec.c,v 1.31 2015/11/07 12:01:22 dlg Exp $ */
/* $NetBSD: sgec.c,v 1.5 2000/06/04 02:14:14 matt Exp $ */
/*
* Copyright (c) 1999 Ludd, University of Lule}, Sweden. All rights reserved.
@@ -384,7 +384,7 @@ zestart(ifp)
continue;
}
idx = sc->sc_nexttx;
- IF_DEQUEUE(&sc->sc_if.if_snd, m);
+ IF_POLL(&sc->sc_if.if_snd, m);
if (m == NULL)
goto out;
/*
@@ -399,10 +399,10 @@ zestart(ifp)
panic("zestart"); /* XXX */
if ((i + sc->sc_inq) >= (TXDESCS - 1)) {
- IF_PREPEND(&sc->sc_if.if_snd, m);
ifp->if_flags |= IFF_OACTIVE;
goto out;
}
+ IFQ_DEQUEUE(&sc->sc_if.if_snd, m);
#if NBPFILTER > 0
if (ifp->if_bpf)