From owner-freebsd-net@FreeBSD.ORG Wed Jul 18 04:36:22 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 8D92C16A403 for ; Wed, 18 Jul 2007 04:36:22 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.181]) by mx1.freebsd.org (Postfix) with ESMTP id 5D24413C4B6 for ; Wed, 18 Jul 2007 04:36:22 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by wa-out-1112.google.com with SMTP id j37so88973waf for ; Tue, 17 Jul 2007 21:36:22 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=rDUrxYjsk3dtJ1ENtm8BvvYkU5r3TukGDJhjOMUWmvp3GimhL3fPL5tvNpS8aboLe+spScMrZbkgValtsNYWuwJS90iTS3Y7k09s973Q6dLFxo58kcY5EN5b5Mz6ShUHhh4HACy6x6Jj9fsp95PP1Y8FJAZEEkdxRcOLp14kH70= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=ApurPpjiTvplDBxnB6tQPtEH/j8D1V4vaUoqaJ1bblvPoOW8LzFPt3RIQNbfGZS1kVpl0THERlOTMqBXy51Gb1KCXBBVUTtxeKJorZ1QCZavnjWUstAUTSoBDlJg/DePjVF4h4/FmwR27xBQphWg69X2uQDb41fUjpKcOZpThCk= Received: by 10.114.89.1 with SMTP id m1mr1097790wab.1184733382132; Tue, 17 Jul 2007 21:36:22 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id m40sm670804waf.2007.07.17.21.36.19 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 17 Jul 2007 21:36:21 -0700 (PDT) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id l6I4aEUY039144 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 18 Jul 2007 13:36:14 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id l6I4aBNl039143; Wed, 18 Jul 2007 13:36:11 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Wed, 18 Jul 2007 13:36:11 +0900 From: Pyun YongHyeon To: "Bjoern A. Zeeb" Message-ID: <20070718043611.GD37935@cdnetworks.co.kr> References: <4678896b.1cef600a.1a79.7312@mx.google.com> <20070620100441.E98813@maildrop.int.zabbadoz.net> <4ab61a80706200336l49f16764t1d95c61f0dd323e5@mail.gmail.com> <20070716181837.Y31116@maildrop.int.zabbadoz.net> <4ab61a80707161233m11e49f2brac162a882f4ebbd7@mail.gmail.com> <20070716201218.U31116@maildrop.int.zabbadoz.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070716201218.U31116@maildrop.int.zabbadoz.net> User-Agent: Mutt/1.4.2.1i Cc: freebsd-net@freebsd.org Subject: Re: soekris/sis tx checksum problems X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jul 2007 04:36:22 -0000 On Mon, Jul 16, 2007 at 08:14:14PM +0000, Bjoern A. Zeeb wrote: > On Mon, 16 Jul 2007, David Cornejo wrote: > > >I eventually reinstalled the OS from a recent snapshot then updated it > >to the latest CURRENT and it works fine now :-( > > Hmm I am using CURRENT from today and I culd see the issue. > > I set sysctl net.inet.udp.checksum=0 to get things working temporary. > > In addition I am backing out a change from May and shall see if that > helps. > I've looked over sis_encap() and it seems that there is potential bug for descriptor wrap-around/shortage in bus_dmamap_load loop. After checking for necessity of m_defrag(9) it blindly assumes it has enough available Tx descriptors to send the packet. What if it sill have more fragments than currently available Tx desciptors after calling m_defrag()? Unfortunately bus_dma(9) changes for sis(4) requires real hardware and I don't have it... If I had it I would have fixed it to run it on sparc64. > Did you have/do you have any private patches in your tree? > -- Regards, Pyun YongHyeon