Date: Tue, 22 May 2007 23:45:12 +0200 From: Christian Brueffer <brueffer@FreeBSD.org> To: Dominique SA <domze.sa@gmail.com> Cc: freebsd-pf@freebsd.org Subject: Re: Support for ALTQ and TXP* interfaces Message-ID: <20070522214512.GA1877@haakonia.hitnet.RWTH-Aachen.DE> In-Reply-To: <31071b200705210914g1d54d6dfr131597f0f8391ae6@mail.gmail.com> References: <31071b200705210914g1d54d6dfr131597f0f8391ae6@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Bn2rw/3z4jIqBvZU Content-Type: multipart/mixed; boundary="sm4nu43k4a2Rpi4c" Content-Disposition: inline --sm4nu43k4a2Rpi4c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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? >=20 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. - Christian --=20 Christian Brueffer chris@unixpages.org brueffer@FreeBSD.org GPG Key: http://people.freebsd.org/~brueffer/brueffer.key.asc GPG Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D --sm4nu43k4a2Rpi4c Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="if_txp.c.diff" Content-Transfer-Encoding: quoted-printable Index: if_txp.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 =3D txp_watchdog; ifp->if_init =3D txp_init; ifp->if_baudrate =3D 100000000; - ifp->if_snd.ifq_maxlen =3D TX_ENTRIES; + IFQ_SET_MAXLEN(&ifp->if_snd, TX_ENTRIES); + ifp->if_snd.ifq_drv_maxlen =3D TX_ENTRIES; + IFQ_SET_READY(&ifp->if_snd); ifp->if_hwassist =3D 0; txp_capabilities(sc); =20 @@ -1281,7 +1283,7 @@ cnt =3D r->r_cnt; =20 while (1) { - IF_DEQUEUE(&ifp->if_snd, m); + IFQ_DEQUEUE(&ifp->if_snd, m); if (m =3D=3D NULL) break; =20 @@ -1362,7 +1364,7 @@ ifp->if_drv_flags |=3D IFF_DRV_OACTIVE; r->r_prod =3D firstprod; r->r_cnt =3D firstcnt; - IF_PREPEND(&ifp->if_snd, m); + IF_DRV_PREPEND(&ifp->if_snd, m); return; } =20 --sm4nu43k4a2Rpi4c-- --Bn2rw/3z4jIqBvZU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFGU2RobHYXjKDtmC0RAk8XAJ9shKkvsAuM4EcVCLSvfDdLIoF32ACeOaSE 9jdd+oKq88J7tdBPQDfEodw= =AmK/ -----END PGP SIGNATURE----- --Bn2rw/3z4jIqBvZU--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070522214512.GA1877>