From owner-freebsd-net@FreeBSD.ORG Wed Apr 25 03:18:15 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 A384D16A400 for ; Wed, 25 Apr 2007 03:18:15 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outR.internet-mail-service.net (outR.internet-mail-service.net [216.240.47.241]) by mx1.freebsd.org (Postfix) with ESMTP id 89E0C13C465 for ; Wed, 25 Apr 2007 03:18:15 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.32) with ESMTP; Tue, 24 Apr 2007 19:45:38 -0700 Received: from julian-mac.elischer.org (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id A47CB125B10; Tue, 24 Apr 2007 20:18:14 -0700 (PDT) Message-ID: <462EC885.20201@elischer.org> Date: Tue, 24 Apr 2007 20:18:29 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.0 (Macintosh/20070326) MIME-Version: 1.0 To: Alan Garfield References: <1176972863.4177.7.camel@hiro.auspc.com.au> <20070419093847.GC60301@comp.chem.msu.su> <1176976273.4177.17.camel@hiro.auspc.com.au> <20070419113842.GE60301@comp.chem.msu.su> <1176990600.4177.26.camel@hiro.auspc.com.au> <20070419175331.GA5999@comp.chem.msu.su> <1177077805.4063.7.camel@hiro.auspc.com.au> <20070420233619.GC52136@comp.chem.msu.su> <1177287886.4075.15.camel@hiro.auspc.com.au> <20070423145429.GF66604@comp.chem.msu.su> <20070424213706.GA1736@turion.vk2pj.dyndns.org> <462EBEB3.3060208@fromorbit.com> In-Reply-To: <462EBEB3.3060208@fromorbit.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Peter Jeremy , freebsd-net@freebsd.org, Yar Tikhiy Subject: Re: Corrupt packets in Jnet (Was: Re: rtentry and rtrequest) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2007 03:18:15 -0000 Alan Garfield wrote: > Peter Jeremy wrote: >> Given that we are effectivly dealing with a shared memory block, how >> does the SP now when the server has finished writing and vice versa? >> Is jnet's handling of multiple mbufs making the SP think there are >> multiple packets? > > D'oh! /me slaps forehead > > I wondereded what the NAK response I saw I was getting after each TX. RX > gets an interrupt, TX gets a NAK. > > If I block sending the next packet until I receive a NAK or I timeout > that should fix it. Silly silly boy! I'd say you need to wait for an ACK not a NAK > > >>> Your jnet_start() routine fills the tail of the buffer w/zeros >>> already, doesn't it? >> >> I would also suggest padding to 256 bytes with zeroes. > > Already does that as Yar correctly pointed out. The ADDR port is reset > to zero, a bus_space_write_multi1 dumps into the DATA port the packet > till there is no packet left, and a for loop fills what's left. > > Thanks, > Alan. > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"