From owner-freebsd-net@FreeBSD.ORG Wed Sep 22 07:47:10 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C4AB16A4CE for ; Wed, 22 Sep 2004 07:47:10 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [195.206.69.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB07643D48 for ; Wed, 22 Sep 2004 07:47:09 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 0AA9C65381; Wed, 22 Sep 2004 08:47:09 +0100 (BST) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 39063-02; Wed, 22 Sep 2004 08:47:08 +0100 (BST) Received: from empiric.dek.spc.org (adsl-64-171-185-245.dsl.snfc21.pacbell.net [64.171.185.245]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id 4D9CD65339; Wed, 22 Sep 2004 08:47:07 +0100 (BST) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id E37186455; Wed, 22 Sep 2004 00:47:04 -0700 (PDT) Date: Wed, 22 Sep 2004 00:47:04 -0700 From: Bruce M Simpson To: Zongsheng Zhang Message-ID: <20040922074704.GD4985@empiric.icir.org> Mail-Followup-To: Zongsheng Zhang , freebsd-net@freebsd.org References: <415113D0.6060302@ist.osaka-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <415113D0.6060302@ist.osaka-u.ac.jp> cc: freebsd-net@freebsd.org Subject: Re: which parameter == txqueuelen of linux ?? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 07:47:10 -0000 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