From owner-freebsd-net@FreeBSD.ORG Fri Dec 16 08:01:33 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 208C1106564A for ; Fri, 16 Dec 2011 08:01:33 +0000 (UTC) (envelope-from egrosbein@rdtc.ru) Received: from eg.sd.rdtc.ru (eg.sd.rdtc.ru [IPv6:2a03:3100:c:13::5]) by mx1.freebsd.org (Postfix) with ESMTP id 810828FC14 for ; Fri, 16 Dec 2011 08:01:32 +0000 (UTC) Received: from eg.sd.rdtc.ru (localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.14.5/8.14.5) with ESMTP id pBG81SFT015458; Fri, 16 Dec 2011 15:01:28 +0700 (NOVT) (envelope-from egrosbein@rdtc.ru) Message-ID: <4EEAFAD8.3010700@rdtc.ru> Date: Fri, 16 Dec 2011 15:01:28 +0700 From: Eugene Grosbein User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; ru-RU; rv:1.9.2.13) Gecko/20110112 Thunderbird/3.1.7 MIME-Version: 1.0 To: Andrea Venturoli References: <4EE8FA10.8090502@netfence.it> In-Reply-To: <4EE8FA10.8090502@netfence.it> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit 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 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2011 08:01:33 -0000 15.12.2011 02:33, Andrea Venturoli пишет: > 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? Do you use NAT? man ipfw clearly states: ipfw nat is not compatible with the TCP segmentation offloading (TSO). Thus, to reliably nat your net- work traffic, please disable TSO on your NICs using ifconfig(8) Eugene Grosbein