From owner-freebsd-net@FreeBSD.ORG Fri Aug 31 08:10:52 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 78630106566B for ; Fri, 31 Aug 2012 08:10:52 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [46.4.40.135]) by mx1.freebsd.org (Postfix) with ESMTP id 2D7558FC0C for ; Fri, 31 Aug 2012 08:10:51 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:49ee:4a:4b3c:6f58]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id D752F4AC2D; Fri, 31 Aug 2012 12:10:47 +0400 (MSK) Date: Fri, 31 Aug 2012 12:10:43 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <643110717.20120831121043@serebryakov.spb.ru> To: Adam Vande More In-Reply-To: References: <1865271844.20120829131610@serebryakov.spb.ru> <1807373989.20120829223125@serebryakov.spb.ru> <20120830152726.A33776@sola.nimnet.asn.au> <534292400.20120830131158@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org, Ian Smith Subject: Re: Bad routing performance on 500Mhz Geode LX with CURRENT, ipfw and mpd5 (was: ipfw, "ip|all" proto and PPPoE -- does PPPoE packets passed to ipfw?) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Aug 2012 08:10:52 -0000 Hello, Adam. You wrote 31 =C1=D7=C7=D5=D3=D4=C1 2012 =C7., 0:32:25: AVM> BUGS AVM> The vr driver always copies transmit mbuf chains into longword-al= igned AVM> buffers prior to transmission in order to pacify the Rhine chips.= If AVM> buffers are not aligned correctly, the chip will round the suppli= ed AVM> buffer address and begin DMAing from the wrong location. This bu= ffer AVM> copying impairs transmit performance on slower systems but cannot= be AVM> avoided. On faster machines (e.g. a Pentium II), the performance AVM> impact AVM> is much less noticeable. Really, this is not truth. Or, to be more specific, it is not complete truth. Now if_vr copies data only for some chips (quirk VR_Q_NEEDALIGN in sources). My chips (VT6105M) don't need it, and driver doesn't copy data for them. --=20 // Black Lion AKA Lev Serebryakov