Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Aug 2004 00:49:25 +0200
From:      Max Laier <max@love2party.net>
To:        Robert Watson <rwatson@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/net rtsock.c
Message-ID:  <200408140049.33903.max@love2party.net>
In-Reply-To: <Pine.NEB.3.96L.1040813183645.73100V-100000@fledge.watson.org>
References:  <Pine.NEB.3.96L.1040813183645.73100V-100000@fledge.watson.org>

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

--Boundary-02=_9VUHB6oxBbGSwSv
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Saturday 14 August 2004 00:37, Robert Watson wrote:
> On Sat, 14 Aug 2004, Max Laier wrote:
> > On Saturday 14 August 2004 00:23, Robert Watson wrote:
> > > rwatson     2004-08-13 22:23:21 UTC
> > >
> > >   FreeBSD src repository
> > >
> > >   Modified files:
> > >     sys/net              rtsock.c
> > >   Log:
> > >   Use IFQ_SET_MAXLEN() to set the maximum queue depth of the routing
> > >   socket netisr queue.
> >
> > Well, I suggest to use IFQ_* macros only on queues that are
> > IFQ_SET_READY'ed as well. i.e. as long as you don't use IFQ_{EN,DE}QUEUE
> > with the queue there is not much point in using IFQ_SET_MAXLEN either.
> > It'd just add noise to searches for IFQ_*
> >
> > I don't think that there are plans to use ALTQ disciplines on the netisr
> > queues, are there?
>
> No, that wouldn't really make sense, as we want a reliable record stream,
> really, and the protocol in question wouldn't benefit from RED, etc.  Do
> you suggest, then, just backing this out?  Some of the other ifq
> abstractions are used, such as IFF_HANDOFF()...

It does not hurt (much) to use IFQ_* macros on normal FIFO queues as long a=
s=20
IFQ_SET_READY is not used to activate ALTQ processing. Nevertheless, there =
is=20
some overhead and I don't see us removing the IF_* macros.

So long story short: For normal FIFO queues use IF_* macros, for ALTQ-enabl=
ed=20
queues use IFQ_* or IFQ_DRV_* (see altq(9) for details on the difference an=
d=20
conversion).

=2D-=20
/"\  Best regards,			| mlaier@freebsd.org
\ /  Max Laier				| ICQ #67774661
 X   http://pf4freebsd.love2party.net/	| mlaier@EFnet
/ \  ASCII Ribbon Campaign		| Against HTML Mail and News

--Boundary-02=_9VUHB6oxBbGSwSv
Content-Type: application/pgp-signature
Content-Description: signature

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

iD8DBQBBHUV9XyyEoT62BG0RAv0SAJ9FL4ijBGWaFnix1BzLWNiFPPOCQQCfTU5V
f6G+8I27HgbWXpmjyWxGnFc=
=sgwO
-----END PGP SIGNATURE-----

--Boundary-02=_9VUHB6oxBbGSwSv--



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