From owner-freebsd-current Sun Jul 16 19:28:46 2000 Delivered-To: freebsd-current@freebsd.org Received: from implode.root.com (root.com [209.102.106.178]) by hub.freebsd.org (Postfix) with ESMTP id 1CBE337B6AB for ; Sun, 16 Jul 2000 19:28:43 -0700 (PDT) (envelope-from dg@implode.root.com) Received: from implode.root.com (localhost [127.0.0.1]) by implode.root.com (8.8.8/8.8.5) with ESMTP id TAA23537; Sun, 16 Jul 2000 19:14:30 -0700 (PDT) Message-Id: <200007170214.TAA23537@implode.root.com> To: "Rodney W. Grimes" Cc: wollman@khavrinen.lcs.mit.edu (Garrett Wollman), freebsd-current@FreeBSD.ORG Subject: Re: dc driver and underruns (was: Strangeness with 4.0-S) In-reply-to: Your message of "Sun, 16 Jul 2000 17:37:00 PDT." <200007170037.RAA24682@gndrsh.dnsmgr.net> From: David Greenman Reply-To: dg@root.com Date: Sun, 16 Jul 2000 19:14:30 -0700 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >> < said: >> >> > Ohh... and a finally note, DEC blew the chip design by only including >> > a 160byte threshold point given that PCI 2.0 spec says it should have >> > been 500bytes!! >> >> It wouldn't be the first thing DEC had screwed up in the design of >> these NICs. On the other hand, Intel has owned the silicon for a >> couple of years now, which is more than enough time to unscrew it if >> they really wanted to. Clearly, they'd rather be selling 82559s.... > >As far as I can tell the fxp driver doesn't even use the tx_fifo in the >825xxx chips :-) The 82557-9 have a 2KB internal buffer for transmits. They don't start transmitting until a programmed threshold is reached - this is to insure that PCI bus latency doesn't result in the transmitter getting stalled. The fxp driver starts out with this threshold set at 512 bytes, but will increase it (512 bytes at a time) when a DMA underrun occurs. Of course once the threshold reached 1536, then an entire 1500 byte packet is DMA'd into the buffer before the transmit begins. There is buffering on the receive side as well, but I don't recall off hand how large that is (although I think it's 2KB as well). -DG David Greenman Co-founder, The FreeBSD Project - http://www.freebsd.org Manufacturer of high-performance Internet servers - http://www.terasolutions.com Pave the road of life with opportunities. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message