Remove IF_PREPEND() to comply with altq. I think the logic is safe to just

remove the macro call.
This commit is contained in:
rpaulo 2006-06-18 15:44:49 +00:00
parent c545be67e3
commit 7a69791e70
2 changed files with 4 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rt2560.c,v 1.2 2006/06/18 15:37:27 rpaulo Exp $ */
/* $NetBSD: rt2560.c,v 1.3 2006/06/18 15:44:49 rpaulo Exp $ */
/* $OpenBSD: rt2560.c,v 1.15 2006/04/20 20:31:12 miod Exp $ */
/* $FreeBSD: rt2560.c,v 1.3 2006/03/21 21:15:43 damien Exp $*/
@ -24,7 +24,7 @@
* http://www.ralinktech.com/
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rt2560.c,v 1.2 2006/06/18 15:37:27 rpaulo Exp $");
__KERNEL_RCSID(0, "$NetBSD: rt2560.c,v 1.3 2006/06/18 15:44:49 rpaulo Exp $");
#include "bpfilter.h"
@ -2149,7 +2149,6 @@ rt2560_start(struct ifnet *ifp)
if (m0 == NULL)
break;
if (sc->txq.queued >= RT2560_TX_RING_COUNT - 1) {
IF_PREPEND(&ifp->if_snd, m0);
ifp->if_flags |= IFF_OACTIVE;
break;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: rt2661.c,v 1.8 2006/06/18 15:37:27 rpaulo Exp $ */
/* $NetBSD: rt2661.c,v 1.9 2006/06/18 15:44:49 rpaulo Exp $ */
/* $OpenBSD: rt2661.c,v 1.17 2006/05/01 08:41:11 damien Exp $ */
/* $FreeBSD: rt2560.c,v 1.5 2006/06/02 19:59:31 csjp Exp $ */
@ -25,7 +25,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rt2661.c,v 1.8 2006/06/18 15:37:27 rpaulo Exp $");
__KERNEL_RCSID(0, "$NetBSD: rt2661.c,v 1.9 2006/06/18 15:44:49 rpaulo Exp $");
#include "bpfilter.h"
@ -1952,7 +1952,6 @@ rt2661_start(struct ifnet *ifp)
if (sc->txq[0].queued >= RT2661_TX_RING_COUNT - 1) {
/* there is no place left in this ring */
IF_PREPEND(&ifp->if_snd, m0);
ifp->if_flags |= IFF_OACTIVE;
break;
}