which parameter == txqueuelen of linux ??

Bruce M Simpson bms at spc.org
Wed Sep 22 00:47:10 PDT 2004


On Wed, Sep 22, 2004 at 02:55:28PM +0900, Zongsheng Zhang wrote:
> In Linux, txqueuelen (the length of the transmit queue of the device)
> can be set by 'ifconfig' command. Is there a corresponding parameter or
> command in BSD??

I assume that in Linux, 'txqueuelen' actually refers to the maximum (bounded)
size of the device's transmit queue before Linux's equivalent of the
IFF_OACTIVE flag is set (device transmit queue full and no more data may
be queued).

The short answer is no. The long answer is it depends; some device drivers
offer a means of doing so, but it's not standard by any means. Most
network interfaces in FreeBSD set their if_snd.ifq_maxlen to IFQ_MAXLEN,
which is 50 by default.

In some cases the device driver won't permit you to touch this value because
it's hardcoded to match the size of a descriptor ring which the chip uses for
data transmission.

BMS


More information about the freebsd-net mailing list