From owner-freebsd-net@FreeBSD.ORG Tue Jan 18 18:24:45 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB97D106564A for ; Tue, 18 Jan 2011 18:24:45 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id B88668FC16 for ; Tue, 18 Jan 2011 18:24:45 +0000 (UTC) Received: by pwi10 with SMTP id 10so1234996pwi.13 for ; Tue, 18 Jan 2011 10:24:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:date:to:cc:subject:message-id:reply-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=wR4eHvUHln74qqb0oF8dJ2XpBpbVm0hb1IF3Q8Te0EY=; b=WlGIpDAouW69jq2/hedkwHZFokHwIYHEfND15zVCx1lqg4WC9d7Z69kUKq1NYyXxi1 U3En0cfWxNdqtMskh2FAMm7ovrHfE4ORU+jtg9Enz6t8ooIxTg/72QtnLNDGLZhQLOg5 Z04PwNEpurL+zX7xdfLkvhnHQvLGNioEWtTdc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=TuAHf7rqM89cnINVoOWhqYQLjU5DXsa/0XVkYsTsJDtIeRyfOn2oTuQRB4pLQYvFIw H7EO5nkclhGRzieEx/XCLHHulRyg2WvW8AUFOxAFB8TcepdOHH7B32OeU2g8OMK0TLCQ gK7XrhHmxXf5MMOgN3WN0ZMYSIerpx7OGao+g= Received: by 10.142.155.11 with SMTP id c11mr5535442wfe.227.1295375085188; Tue, 18 Jan 2011 10:24:45 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id w42sm8399355wfh.3.2011.01.18.10.24.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 18 Jan 2011 10:24:43 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Tue, 18 Jan 2011 10:23:51 -0800 From: Pyun YongHyeon Date: Tue, 18 Jan 2011 10:23:51 -0800 To: sthaug@nethelp.no Message-ID: <20110118182351.GE5624@michelle.cdnetworks.com> References: <708793006.292748.1295186099577.JavaMail.root@erie.cs.uoguelph.ca> <20110117005524.GA1305@michelle.cdnetworks.com> <20110118.093804.74673434.sthaug@nethelp.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110118.093804.74673434.sthaug@nethelp.no> User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org, rmacklem@uoguelph.ca, ronald-freebsd8@klop.yi.org Subject: Re: bogus 0 len IP packet, was: Hang in VOP_LOCK1_APV on 8-STABLE with NFS. 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: Tue, 18 Jan 2011 18:24:46 -0000 On Tue, Jan 18, 2011 at 09:38:04AM +0100, sthaug@nethelp.no wrote: > > > So, does anyone have an idea why the IP length field would be set to 0 > > > for these TCP/IP packets? > > > > > > Here's some info from Ronald w.r.t. his hardware. (All I can think of is > > > that he could try disabling TSO, etc?) > > > > > > Thanks in advance for any help with this, rick > > > > > > > It seems that issue came from TSO. Driver will set ip_len and > > ip_sum field to 0 before passing the TCP segment to controller. > > The failed length were 4446, 5858, 3034 and 4310 and the total > > number of such frames are more than 35k within 90 seconds. Since > > failed length 4310 is continuously repeated I guess there is edge > > case where em(4) didn't free failed TCP segment for TSO. > > I remember there was commit to HEAD(r217295) which could be related > > with this issue. > > I'm seeing the same problem with Broadcom NetXtreme (bce) cards: > > bce0@pci0:3:0:0: class=0x020000 card=0x03421014 chip=0x164c14e4 rev=0x12 hdr=0x00 > vendor = 'Broadcom Corporation' > device = 'Broadcom NetXtreme II Gigabit Ethernet Adapter (BCM5708)' > class = network > subclass = ethernet > > This is with 8.2-PRERELEASE. Turning off TSO (ifconfig bce0 -tso) > removes the problem. > Is there a reliable way to trigger this on bce(4)? I don't have BCM5708 but I have BCM5709 so I can verify that. > Steinar Haug, Nethelp consulting, sthaug@nethelp.no