From owner-freebsd-net Tue Sep 3 11:55: 9 2002 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 7A80A37B400 for ; Tue, 3 Sep 2002 11:55:05 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 798E543E6E for ; Tue, 3 Sep 2002 11:55:04 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: from panzer.kdm.org (localhost [127.0.0.1]) by panzer.kdm.org (8.12.5/8.12.5) with ESMTP id g83It3KD095939; Tue, 3 Sep 2002 12:55:03 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.5/8.12.5/Submit) id g83It3qw095938; Tue, 3 Sep 2002 12:55:03 -0600 (MDT) (envelope-from ken) Date: Tue, 3 Sep 2002 12:55:03 -0600 From: "Kenneth D. Merry" To: Luigi Rizzo Cc: Charles Sprickman , freebsd-net@FreeBSD.ORG Subject: Re: fxp and 802.3 flow control Message-ID: <20020903125503.A95848@panzer.kdm.org> References: <20020903123508.A95635@panzer.kdm.org> <20020903114028.B1595@iguana.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020903114028.B1595@iguana.icir.org>; from rizzo@icir.org on Tue, Sep 03, 2002 at 11:40:28AM -0700 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Sep 03, 2002 at 11:40:28 -0700, Luigi Rizzo wrote: > i wouldn't call the thing a "problem" -- flow control packets are > a feature which you can enable or disable. > I have used something similar to your patch below, and noticed that > just setting tx_fc_dis=1 (check the comment, btw) makes these > frames disappear, i suppose that setting the bit causes some negotiation > with the peer that disables their generation on both sides. Flow control isn't a problem in and of itself. The problem is that the card is passing flow control frames up to the OS, which can't do anything about it. The flow control frames are supposed to be intercepted by the card and used to turn on and off transmit. When tx_fc_dis = 0, it's anybody's guess as to whether the card is doing anything with the flow control frames, but it is clear that they get passed up to the host. This seems to happen regardless of the value of fc_filter. With tx_fc_dis=1, I think fc_filter works as intended (not sure, I'd have to go test it again), but I just turn it on all the time, since I don't want to see the flow control packets, even in promiscuous mode. They just cloud up whatever I'm trying to look at. It would be nice if there were actually detailed docs available for those boards that didn't require an NDA. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message