On Tue, May 22, 2007 at 11:45:12PM +0200, Christian Brueffer wrote: > On Mon, May 21, 2007 at 12:14:17PM -0400, Dominique SA wrote: > > I was wondering when is altq going to be supported for TXP* interfaces? > > > > As soon as we find someone to test patches. Are you interested? The > procedure is outlined at http://people.freebsd.org/~mlaier/ALTQ_driver/ > > The patch is attached. >
The previous patch didn't compile, sorry. New patch attached. - Christian -- Christian Brueffer [EMAIL PROTECTED] [EMAIL PROTECTED] GPG Key: http://people.freebsd.org/~brueffer/brueffer.key.asc GPG Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D
Index: if_txp.c
===================================================================
RCS file: /data/ncvs/freebsd/src/sys/dev/txp/if_txp.c,v
retrieving revision 1.44
diff -u -r1.44 if_txp.c
--- if_txp.c 4 Mar 2007 03:38:08 -0000 1.44
+++ if_txp.c 22 May 2007 21:41:03 -0000
@@ -330,7 +330,9 @@
ifp->if_watchdog = txp_watchdog;
ifp->if_init = txp_init;
ifp->if_baudrate = 100000000;
- ifp->if_snd.ifq_maxlen = TX_ENTRIES;
+ IFQ_SET_MAXLEN(&ifp->if_snd, TX_ENTRIES);
+ ifp->if_snd.ifq_drv_maxlen = TX_ENTRIES;
+ IFQ_SET_READY(&ifp->if_snd);
ifp->if_hwassist = 0;
txp_capabilities(sc);
@@ -1281,7 +1283,7 @@
cnt = r->r_cnt;
while (1) {
- IF_DEQUEUE(&ifp->if_snd, m);
+ IFQ_DEQUEUE(&ifp->if_snd, m);
if (m == NULL)
break;
@@ -1362,7 +1364,7 @@
ifp->if_drv_flags |= IFF_DRV_OACTIVE;
r->r_prod = firstprod;
r->r_cnt = firstcnt;
- IF_PREPEND(&ifp->if_snd, m);
+ IFQ_DRV_PREPEND(&ifp->if_snd, m);
return;
}
pgpUfLl1Op9bK.pgp
Description: PGP signature
