Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 May 2007 00:24:09 +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:  <20070522222409.GB9318@haakonia.hitnet.RWTH-Aachen.DE>
In-Reply-To: <20070522214512.GA1877@haakonia.hitnet.RWTH-Aachen.DE>
References:  <31071b200705210914g1d54d6dfr131597f0f8391ae6@mail.gmail.com> <20070522214512.GA1877@haakonia.hitnet.RWTH-Aachen.DE>

next in thread | previous in thread | raw e-mail | index | archive | help

--Qbvjkv9qwOGw/5Fx
Content-Type: multipart/mixed; boundary="4bRzO86E/ozDv8r1"
Content-Disposition: inline


--4bRzO86E/ozDv8r1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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?
> >=20
>=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/
>=20
> The patch is attached.
>=20

The previous patch didn't compile, sorry.  New patch 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

--4bRzO86E/ozDv8r1
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);
+	IFQ_DRV_PREPEND(&ifp->if_snd, m);
 	return;
 }
=20

--4bRzO86E/ozDv8r1--

--Qbvjkv9qwOGw/5Fx
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFGU22JbHYXjKDtmC0RAi10AJwKHWyC0j2/0eTbP6GwtMbPODOQ2QCg/0ko
3Afedfwm8OztkQbcIIjulF8=
=6tw/
-----END PGP SIGNATURE-----

--Qbvjkv9qwOGw/5Fx--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070522222409.GB9318>