From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 21 15:46:15 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2785E1065673 for ; Sun, 21 Jun 2009 15:46:15 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id DEEE38FC16 for ; Sun, 21 Jun 2009 15:46:14 +0000 (UTC) (envelope-from des@des.no) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 273C86D418; Sun, 21 Jun 2009 17:46:14 +0200 (CEST) Received: by ds4.des.no (Postfix, from userid 1001) id 0857A844C4; Sun, 21 Jun 2009 17:46:14 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Wojciech Puchar References: Date: Sun, 21 Jun 2009 17:46:14 +0200 In-Reply-To: (Wojciech Puchar's message of "Sun, 21 Jun 2009 17:14:29 +0200 (CEST)") Message-ID: <86eitdy4hl.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: is RTL8139 THAT bad? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jun 2009 15:46:15 -0000 Wojciech Puchar writes: > Why it's THAT bad? http://svn.freebsd.org/base/head/sys/pci/if_rl.c Scroll down past the copyright, license and attribution. Read the 38-line comment that explains just how crappy this chip really is. Executive summary: every single transmitted frame must be copied from the mbuf into a DMA transmit buffer, and every single received frame must be copied from the (quite small) DMA receive buffer into an mbuf. In addition, the transmit queue can only hold four frames. Other chips use scatter-gather lists and other mechanisms which allow them to DMA frames straight out of or into mbufs. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no