From afacd366f1baece539ddabf32bd3cb9f23c582b5 Mon Sep 17 00:00:00 2001 From: Damien Bergamini Date: Tue, 3 Oct 2006 19:46:09 +0000 Subject: don't use IF_PREPEND() on altq's. use IFQ_POLL()/IFQ_DEQUEUE() logic instead as described in altq(4). tested by jolan@ on macppc "diffs look ok" brad@ --- sys/dev/usb/if_axe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/usb') diff --git a/sys/dev/usb/if_axe.c b/sys/dev/usb/if_axe.c index ea6b16b9746..d91151e9d71 100644 --- a/sys/dev/usb/if_axe.c +++ b/sys/dev/usb/if_axe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_axe.c,v 1.54 2006/07/09 22:46:38 dlg Exp $ */ +/* $OpenBSD: if_axe.c,v 1.55 2006/10/03 19:46:08 damien Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000-2003 @@ -1164,15 +1164,15 @@ axe_start(struct ifnet *ifp) if (ifp->if_flags & IFF_OACTIVE) return; - IF_DEQUEUE(&ifp->if_snd, m_head); + IFQ_POLL(&ifp->if_snd, m_head); if (m_head == NULL) return; if (axe_encap(sc, m_head, 0)) { - IF_PREPEND(&ifp->if_snd, m_head); ifp->if_flags |= IFF_OACTIVE; return; } + IFQ_DEQUEUE(&ifp->if_snd, m_head); /* * If there's a BPF listener, bounce a copy of this frame -- cgit v1.2.3