From owner-freebsd-net@FreeBSD.ORG Wed Dec 14 20:00:22 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 C6834106564A for ; Wed, 14 Dec 2011 20:00:22 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 844718FC13 for ; Wed, 14 Dec 2011 20:00:22 +0000 (UTC) Received: by ghrr19 with SMTP id r19so1389334ghr.13 for ; Wed, 14 Dec 2011 12:00:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; 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; bh=Pxgijq+cKjSr77Ogc9tan2LgOmUY8k9eL22Cp8nZ5Fk=; b=jKmyUhgTkj8RfV8kbyhogywlaup6NSxtZ7vHkLzWCShf5LcvqB5T9kH+lwDPhlCA80 613hpk6aJIAB7rzwEUswvwfzz33uch7445F/AQITNu+X+l5ToiFq+8YBZNzCqH6arhX+ LB5Y6X26Ie98ogqs0VwX2ovKKW/lVIiZoZtU0= Received: by 10.50.161.162 with SMTP id xt2mr6729igb.72.1323892821604; Wed, 14 Dec 2011 12:00:21 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id h9sm11993760ibh.11.2011.12.14.12.00.18 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 14 Dec 2011 12:00:20 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Wed, 14 Dec 2011 11:59:18 -0800 From: YongHyeon PYUN Date: Wed, 14 Dec 2011 11:59:18 -0800 To: Andrea Venturoli Message-ID: <20111214195918.GC11426@michelle.cdnetworks.com> References: <4EE8FA10.8090502@netfence.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4EE8FA10.8090502@netfence.it> User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org Subject: Re: Intel 82550 Pro/100 Ethernet and TSO troubles 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, 14 Dec 2011 20:00:22 -0000 On Wed, Dec 14, 2011 at 08:33:36PM +0100, Andrea Venturoli wrote: > Hello. > > I recently installed 8.2 with the following card: > > > dmesg > > ... > >fxp0: port 0xdc00-0xdc3f mem > >0xfebfb000-0xfebfbfff,0xfebc0000-0xfebdffff irq 20 at device 5.0 on pci4 > > ... > > pciconv -lv > > ... > >fxp0@pci0:4:5:0: class=0x020000 card=0x00408086 chip=0x12298086 > >rev=0x0c hdr=0x00 > > vendor = 'Intel Corporation' > > device = '82550/1/7/8/9 EtherExpress PRO/100(B) Ethernet Adapter' > > class = network > > subclass = ethernet > > ... > > I had weird problems, especially due to ICMP/fragmentation/MTU/... issues. > After hours spent in debugging, I noticed tcpdump showing ICMP packets > with wrong checksums and that TSO4 was enabled. > "ifconfig fxp0 -tso" seemed to solve everything. > > > Don't know if it's a bug in the card, in the driver or what... > Maybe it shouldn't be enabled by default? > AFAIK the firmware of controller has no known TSO issue so it indicates a bug in driver. What makes me wonder is ICMP ECHO packet should not be affected by TSO and I have no clue at this moment. (Here, I assume you've captured packets on receiver side since bpf sees packets before hardware computes checksum.) If you have a reliable way that reproduces the issue, let me know. > > > > I also have fxp1: > > dmesg > > ... > >fxp1: port 0xd880-0xd8bf mem 0xfebfa > >000-0xfebfafff,0xfea00000-0xfeafffff irq 21 at device 6.0 on pci4 > >... > >pciconv -lv > >... > >fxp1@pci0:4:6:0: class=0x020000 card=0x000c8086 chip=0x12298086 > >rev=0x08 hdr=0x00 > > vendor = 'Intel Corporation' > > device = '82550/1/7/8/9 EtherExpress PRO/100(B) Ethernet Adapter' > > class = network > > subclass = ethernet > > ... > > TSO was not enabled on this by default. > TSO is available only on i82550/i82551. > > > > Feel free to ask, in case you need any further info. > > bye > av.