diff options
| author | 2015-11-04 00:10:50 +0000 | |
|---|---|---|
| committer | 2015-11-04 00:10:50 +0000 | |
| commit | 9fb643dbfd62886126d76108c1ff12ed57ccce27 (patch) | |
| tree | 4c19fb3cc67a6bff38d3776664d33dc0ceaf5cbd | |
| parent | replace the ifqueues used for tulip_txq and _rxq with mbuf_lists. (diff) | |
| download | wireguard-openbsd-9fb643dbfd62886126d76108c1ff12ed57ccce27.tar.xz wireguard-openbsd-9fb643dbfd62886126d76108c1ff12ed57ccce27.zip | |
use IFQ_IS_EMPTY to see if if_snd is empty, not IF_IS_EMPTY
| -rw-r--r-- | sys/dev/pci/if_de.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_de.c b/sys/dev/pci/if_de.c index 1476376cbf7..7c5c31299de 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.125 2015/11/04 00:09:59 dlg Exp $ */ +/* $OpenBSD: if_de.c,v 1.126 2015/11/04 00:10:50 dlg Exp $ */ /* $NetBSD: if_de.c,v 1.58 1998/01/12 09:39:58 thorpej Exp $ */ /*- @@ -3869,7 +3869,7 @@ tulip_txput(tulip_softc_t * const sc, struct mbuf *m, int notonqueue) struct mbuf *tmp; if (!notonqueue) { #ifdef DIAGNOSTIC - if (IF_IS_EMPTY(&ifp->if_snd)) + if (IFQ_IS_EMPTY(&ifp->if_snd)) panic("%s: if_snd queue empty", ifp->if_xname); #endif IFQ_DEQUEUE(&ifp->if_snd, tmp); @@ -3953,7 +3953,7 @@ tulip_txput(tulip_softc_t * const sc, struct mbuf *m, int notonqueue) /* remove the mbuf from the queue */ struct mbuf *tmp; #ifdef DIAGNOSTIC - if (IF_IS_EMPTY(&ifp->if_snd)) + if (IFQ_IS_EMPTY(&ifp->if_snd)) panic("%s: if_snd queue empty", ifp->if_xname); #endif IFQ_DEQUEUE(&ifp->if_snd, tmp); |
