From owner-freebsd-drivers@FreeBSD.ORG Mon May 12 15:18:10 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6CCC6106564A for ; Mon, 12 May 2008 15:18:10 +0000 (UTC) (envelope-from matthias.apitz@oclc.org) Received: from hunter.Sisis.de (mail.oclc.de [193.31.11.194]) by mx1.freebsd.org (Postfix) with ESMTP id CC3628FC18 for ; Mon, 12 May 2008 15:18:09 +0000 (UTC) (envelope-from matthias.apitz@oclc.org) Received: (from mail@localhost) by hunter.Sisis.de (8.8.8/8.8.8) id RAA21692; Mon, 12 May 2008 17:03:20 +0200 (CEST) (envelope-from matthias.apitz@oclc.org) Received: from ppp-88-217-63-116.dynamic.mnet-online.de(88.217.63.116) by hunter.Sisis.de via smap (V2.1) id xma021636; Mon, 12 May 08 17:02:43 +0200 Received: (from guru@localhost) by rebelion.Sisis.de (8.14.2/8.13.8/Submit) id m4CFAEPD015683; Mon, 12 May 2008 17:10:14 +0200 (CEST) (envelope-from matthias.apitz@oclc.org) X-Authentication-Warning: rebelion.Sisis.de: guru set sender to matthias.apitz@oclc.org using -f Date: Mon, 12 May 2008 17:10:14 +0200 From: Matthias Apitz To: Niki Denev Message-ID: <20080512151013.GA15571@rebelion.Sisis.de> References: <20080509123521.GA11366@rebelion.Sisis.de> <20080510163417.GA17718@rebelion.Sisis.de> <2e77fc10805101008ybafe7b3g8b9210cb8d2955d@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2e77fc10805101008ybafe7b3g8b9210cb8d2955d@mail.gmail.com> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.0-RELEASE (i386) Cc: freebsd-drivers@freebsd.org Subject: Re: porting "nozomi" driver (Option N.V. GlobeTrotter 3G+ UMTS datacard) to FreeBSD 7.0R X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2008 15:18:10 -0000 El día Saturday, May 10, 2008 a las 01:08:00PM -0400, Niki Denev escribió: > I can see that this is the initial port of the Linux nozomi driver that i did > back in 2006, and i got stuck exactly with the same problem, > ppp connection get's established, but only small packets are passed. > I will see if I can get my hands on this HSDPA/UMTS card > (i don't have it anymore) and help. Niki, I've solved the problem of the TCP packages by putting in nzstart() what is coming down from PPPD in pieces of fifo_buf of not more then 68 bytes, i.e. if 108 bytes is to queued it will be splited, malloc'ed and nzstart() calls STAILQ_INSERT_TAIL() with two pieces; this works fine now; remaining is what I've posted in the forum of the Linux driver: http://www.pharscape.org/component/option,com_forum/Itemid,68/page,viewtopic/p,1745/#1745 ... this makes SSH now happy and a log with TCPDUMP on both ends (in the PPP interface and the ETH0 interface of the SSH server) proofes that the data is flooding fine, nearly fine; I could already sing-on to the SSH server two times; the problem is that upstream data is not send fast enough, which let's the server missing the ACK which should come in with that data and resent its packages again; this occures if the TCP packages are big, let's say some 700 bytes; it never occurs with short packages, nor with the short LCP, and once you are logged in you can type chars fine and the output of 'ls -lR /' is coming down at normal speed; I've a full log, showing the send and received data, together with the interrupts and as well I've inserted what the TCPDUMP on the PPPD side sees, i.e. which TCP it sees outcoming from the driver and which it wants to send through the driver; I've put it here, if someone could help me with a look and some hint: http://www.unixarea.de/nozomi/messages+tcp.txt What could be the reason for not sending fast enough the data? As I said, downstream all is fine. Is there some technical documente available for that card Option N.V. GlobeTrotter 3G+? Thx in advance for any hint Matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ Don't top-post, read RFC1855 http://www.faqs.org/rfcs/rfc1855.html A: Because it messes up the order in which people normally read text. Q: Why is it such a bad thing? A: Top-posting. Q: What is the most annoying thing on Usenet and in e-mail?