diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2015-11-09 10:19:11 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2015-11-09 10:19:11 +0000 |
commit | 65d519d33fdf28af8a71ba6fc434b4e04fcdb207 (patch) | |
tree | 6f179f662d3bb914ac68959f20eb1ce9419eecde | |
parent | 370826164eb1b57c7af0277663e52d17790313ec (diff) |
use IFQ_DEQUEUE to pull of the send queue.
-rw-r--r-- | sys/net/if_enc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/net/if_enc.c b/sys/net/if_enc.c index dc6c09da70c..4d39fcc91a8 100644 --- a/sys/net/if_enc.c +++ b/sys/net/if_enc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_enc.c,v 1.63 2015/10/30 09:39:42 bluhm Exp $ */ +/* $OpenBSD: if_enc.c,v 1.64 2015/11/09 10:19:10 dlg Exp $ */ /* * Copyright (c) 2010 Reyk Floeter <reyk@vantronix.net> @@ -162,8 +162,7 @@ enc_start(struct ifnet *ifp) struct mbuf *m; for (;;) { - IF_DROP(&ifp->if_snd); - IF_DEQUEUE(&ifp->if_snd, m); + IFQ_DEQUEUE(&ifp->if_snd, m); if (m == NULL) break; m_freem(m); |