From owner-freebsd-usb@FreeBSD.ORG Sat Jan 29 15:24:10 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7184C16A4CF for ; Sat, 29 Jan 2005 15:24:10 +0000 (GMT) Received: from gw-opfr.ulntc.ru (gw-opfr.ulntc.ru [83.217.1.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6EC0743D41 for ; Sat, 29 Jan 2005 15:24:08 +0000 (GMT) (envelope-from 1801@083.pfr.ru) Received: from s083.083.pfr.ru (s083.opfr [10.83.0.11]) by gw-opfr.ulntc.ru (8.13.1/8.13.1) with ESMTP id j0TFO6av028647 for ; Sat, 29 Jan 2005 18:24:06 +0300 Received: from Winlamer ([10.83.0.20]) by s083.083.pfr.ru (Lotus Domino Release 5.0.9a) with ESMTP id 2005012918240614:184 ; Sat, 29 Jan 2005 18:24:06 +0300 To: freebsd-usb@freebsd.org From: Kiselev <1801@083.pfr.ru> Organization: opfr MIME-Version: 1.0 Date: Sat, 29 Jan 2005 18:23:45 +0300 Message-ID: User-Agent: Opera7.21/Win32 M2 build 3218 X-MIMETrack: Itemize by SMTP Server on s083/083/PFR/RU(Release 5.0.9a |January 7, 2002) at 29.01.2005 18:24:06,2002) at 29.01.2005 18:24:08, Serialize complete at 29.01.2005 18:24:08 Content-Transfer-Encoding: 8bit Content-Type: text/plain; format=flowed; charset=windows-1251 Subject: Re: Re: problem with udbp and netgraph in the usb LAN X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jan 2005 15:24:10 -0000 On Thu, Jan 27, 2005 at 09:54:14AM +0300, 1801 wrote: > Hi, all > I have usb2usb link cable (no name)and try make usb network on two > hosts (FreeBSD 5.3). > I do everything as written in man 4 udbp: > kldload netgraph > kldload udbp > Result : > udbp0: Prolific Technology Inc. PL2302 Host-Host interface, rev > 1.00/0.01, addr2, iclass 255/0. > Then make: > ngctl mkpeer udbp0: iface data inet, ifconfig ng0 10.0.0.1 10.0.0.2 on > both hosts. > Ping from 10.0.0.1 to 10.0.0.2 disappear through 1 minutes. > How to make steady connection? > Thanks in advance, Yuri. >> What kind of USB controller do you have? >> Looking through the code I found this problem: >> If a transmitted packet has a length that is divisible by >> "MaxPacketLength" then udbp_in_transfer_cb() will not be called. In >> other words the transmission will stop. So when udbp is sending >> packets, the flag USBD_FORCE_SHORT_XFER must be set? >> >> -- >> HPS My USB controller is: ohci0: mem 0xee000000-0xee000fff irq 20 at device 2.2 on pci0 ohci0: [GIANT-LOCKED] usb0: on ohci0 ohci1: mem 0xee001000-0xee001fff irq 23 at device 2.3 on pci0 ohci1: [GIANT-LOCKED] usb1: on ohci1. How to execute the idea set the flag USBD_FORCE_SHORT_XFER? I do not found anything in the(sysctl, rc.conf, GENERIC), and what to correct in the /usr/src/sys/dev/usb/ohci.c: if ((flags & USBD_FORCE_SHORT_XFER) && i don't know. Thanks in advance, Yuri