From owner-freebsd-arm@FreeBSD.ORG Fri Mar 22 05:54:04 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 90DF83B4 for ; Fri, 22 Mar 2013 05:54:04 +0000 (UTC) (envelope-from gonzo@id.bluezbox.com) Received: from id.bluezbox.com (id.bluezbox.com [88.198.91.248]) by mx1.freebsd.org (Postfix) with ESMTP id 474062F9 for ; Fri, 22 Mar 2013 05:54:03 +0000 (UTC) Received: from [207.6.254.8] (helo=[192.168.1.67]) by id.bluezbox.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1UIuvR-000MaJ-2Z; Thu, 21 Mar 2013 22:54:03 -0700 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: RPI-B as router From: Oleksandr Tymoshenko In-Reply-To: <514B2188.8030905@mail.ru> Date: Thu, 21 Mar 2013 22:53:44 -0700 Content-Transfer-Encoding: 7bit Message-Id: <6F05C3AD-D6F0-46B2-95D3-329898DE69B6@bluezbox.com> References: <514B2188.8030905@mail.ru> To: Alexey V. Panfilov X-Mailer: Apple Mail (2.1499) Sender: gonzo@id.bluezbox.com X-Spam-Level: -- X-Spam-Report: Spam detection software, running on the system "id.bluezbox.com", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: On 2013-03-21, at 8:04 AM, Alexey V. Panfilov wrote: > Hi > > I decide to test RRI-B as simple router (without NAT): [Host A] --- > [RPI-B] --- [Host B] > > I've created two vlans on RPI (if_vlan.ko was load as module) and run > iperf between Host A and Host B: > > [Host A~]# iperf -c 192.168.0.249 -P 5 -i 5 -t 300 | grep SUM > [SUM] 0.0- 5.0 sec 4.62 MBytes 7.76 Mbits/sec > [SUM] 5.0-10.0 sec 4.75 MBytes 7.97 Mbits/sec > [SUM] 10.0-15.0 sec 4.25 MBytes 7.13 Mbits/sec > > So RPI-B network's throughput was around 20Mbit/sec of full-duplex traffic: [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Mar 2013 05:54:04 -0000 On 2013-03-21, at 8:04 AM, Alexey V. Panfilov wrote: > Hi > > I decide to test RRI-B as simple router (without NAT): [Host A] --- > [RPI-B] --- [Host B] > > I've created two vlans on RPI (if_vlan.ko was load as module) and run > iperf between Host A and Host B: > > [Host A~]# iperf -c 192.168.0.249 -P 5 -i 5 -t 300 | grep SUM > [SUM] 0.0- 5.0 sec 4.62 MBytes 7.76 Mbits/sec > [SUM] 5.0-10.0 sec 4.75 MBytes 7.97 Mbits/sec > [SUM] 10.0-15.0 sec 4.25 MBytes 7.13 Mbits/sec > > So RPI-B network's throughput was around 20Mbit/sec of full-duplex traffic: The problem is that USB works in PIO mode. With DMA mode enabled it's somewhat faster. Here is my half-baked patch: http://people.freebsd.org/~gonzo/patches/dwc_otg-dma-nosplit.diff Network interface should work, although USB keyboards will not work with this patch.