From owner-freebsd-net@FreeBSD.ORG Fri Dec 24 07:28:37 2004 Return-Path: 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 A859916A4CE for ; Fri, 24 Dec 2004 07:28:37 +0000 (GMT) Received: from smtp.volant.org (gate.volant.org [207.111.218.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7031143D1F for ; Fri, 24 Dec 2004 07:28:37 +0000 (GMT) (envelope-from patl+freebsd@volant.org) Received: from 64-144-229-193.client.dsl.net ([64.144.229.193] helo=[192.168.0.22]) by smtp.volant.org with asmtp (TLSv1:AES256-SHA:256) (Exim 4.34 (FreeBSD)) id 1ChjsI-000PtN-L5; Thu, 23 Dec 2004 23:28:36 -0800 Date: Thu, 23 Dec 2004 23:28:33 -0800 From: Pat Lashley To: Sangwoo Shim Message-ID: <6F8763A46466565FC3C6A260@vanvoght.phoenix.volant.org> In-Reply-To: <20041223042516.GA12667@neo.redjade.org> References: <41BFA531.90001@pldrouin.net> <20041215091257.GA79274@neo.redjade.org> <404B0D742CB7FA6E000F4FD9@vanvoght.phoenix.volant.org> <20041223042516.GA12667@neo.redjade.org> X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Scan-Signature: f5fadab1df0456825de966ddf05de0fb00a55b6c X-Spam-User: nobody X-Spam-Score: -4.9 (----) X-Spam-Score-Int: -48 X-Spam-Report: This mail has matched the spam-filter tests listed below. See http://spamassassin.org/tag/ for details about the specific tests reported. In general, the higher the number of total points, the more likely that it actually is spam. (The 'required' number of points listed below is the arbitrary number above which the message is normally considered spam.) Content analysis details: (-4.9 points total, 5.0 required) -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] cc: freebsd-net@freebsd.org Subject: Re: TCP/IP over USB X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Dec 2004 07:28:37 -0000 --On Thursday, December 23, 2004 13:25:16 +0900 Sangwoo Shim wrote: > On Wed, Dec 22, 2004 at 07:15:16PM -0800, Pat Lashley wrote: > [snip] >> >> Now that that's out of the way, Sangwoo, could you post the details >> of your dubp + ng_eiface solution? I might want to switch to that. >> >> >> -Pat > > Ah, I don't have the YOPY anymore. So I can't describe every detail. > But the outline was: > > 1. Add YOPY's device id/vendor id to USB_MATCH() of /sys/dev/usb/udbp.c. > (I cannot recall the exact values, but it can be discovered by usbdevs -v > or looking at Linux's usbnet driver's header.) Already have it from my tweaks to the if_cdce driver. For those who might be following this thread, here are the values for my YP 3700: Vendor 0x22b8 Product 0x4902 Release 0x0001 Class 0x0002 Subclass 0x0000 Protocol 0x0000 The Vendor and Product are the only values necessary for the driver; and I suspect that in this case, there's no real advantage to specifying any of the others in usbd.conf. For completeness, I would be interested in obtaining values for the YP 3500 and YP 3000. > 2. Recompile udbp.ko and kldload it. > (do 'make all install' in /sys/modules/udbp) > 3. kldload ng_eiface.ko. > 4. Create ng_eiface node and connect it to the data hook of the udbp node. > e.g. do 'ngctl mkpeer udbp0: eiface data ether' > 5. Set ngethX appropriately. (using ifconfig). > > This gave me over 400KB/s ftp connection. > You could send a PR in udbp also, I suppose? :-) Thanks, I'll give that a try after the holidays. If I wind up going that route instead of cdce, I will submit a PR with the YOPY's values. -Pat