From owner-freebsd-stable@FreeBSD.ORG Mon Mar 3 00:43:48 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89719106567F for ; Mon, 3 Mar 2008 00:43:48 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.169]) by mx1.freebsd.org (Postfix) with ESMTP id 0BDDA8FC31 for ; Mon, 3 Mar 2008 00:43:47 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by wf-out-1314.google.com with SMTP id 25so6137482wfa.7 for ; Sun, 02 Mar 2008 16:43:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; 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; bh=0NeXFo71jmQXmRd+UdnE22CPLnuXZ96UyErv2qVgRJg=; b=xlvZ/Ey1Zar9nue1VCCYgWOP14hGNnVNoebw/dbsJDhdlX9uoxYOCquCmry/Xq6mGaWt/H3cTx7I883kzgTX9kiXmXqDFW28cXkS0uhj3JpquO2Wm8GKHnVEIJSBD9oay6r60Z3/iqIWkzWm7U0wOjTcSfq73yZ5TKrxfQThjj4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=t4AokKkb1lpUjFWe8OTMTkBf7t7wgsGOFuDO3CXCkJempsMGLGMRN/HRsCu/R4rAApofwdv0QsnzdHhCNoATPKrkuRYyLGrrstdAiMIHU2TCBiGj1XzuiQLDy0WU45G68LfhgNECfgR1cBiXdg2l5ebOZqzOr9AJXAXeHtM21bI= Received: by 10.143.163.10 with SMTP id q10mr8636856wfo.141.1204505027671; Sun, 02 Mar 2008 16:43:47 -0800 (PST) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id 24sm25231411wff.10.2008.03.02.16.43.45 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 02 Mar 2008 16:43:46 -0800 (PST) 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 m230hf1c073167 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 3 Mar 2008 09:43:41 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m230he7Y073166; Mon, 3 Mar 2008 09:43:40 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Mon, 3 Mar 2008 09:43:40 +0900 From: Pyun YongHyeon To: Arnaud Houdelette Message-ID: <20080303004340.GA72895@cdnetworks.co.kr> References: <47CB2DB3.5010707@tzim.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47CB2DB3.5010707@tzim.net> User-Agent: Mutt/1.4.2.1i Cc: freebsd-stable@freebsd.org Subject: Re: IP header checksum missing with Realtek 8168, jumbo frames and offloading. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Mar 2008 00:43:48 -0000 On Sun, Mar 02, 2008 at 11:44:03PM +0100, Arnaud Houdelette wrote: > I encountered connectivity issues with an integrated Realtek 8168 on my > MSI motherboard after enabling jumbo frames on my other box. > Investigating the issue, I found that the packets with an ethernet frame > of length > 2048 get an IP header of 0x0000. > ping -s 3000 192.168.0.11 ==> fail (ethereal on the other box show the > 0x0000 checksum on IP header) > ping -s 2008 192.168.0.11 ==> fail > ping -s 2006 192.168.0.11 ==> succeed > > > re0: port 0xd800-0xd8ff mem > 0xfeaff000-0xfeafffff irq 19 at device 0.0 on pci2 > re0: Using 2 MSI messages > miibus0: on re0 > rgephy0: PHY 1 on miibus0 > rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > 1000baseT-FDX, auto > > > The interface re0 is configured with : > ifconfig inet 192.168.0.1/24 media auto mtu 7422 polling > ifconfig re0 -txcsum solves the issue. > > I tried to reproduce the issue with a Realtek 8169 (using re(4) too). I > couln't : checksum offloading works ok on this card. > Is this a known issue (or maybe a bug in the 8168) ? > There had been several re(4) instability issues on PCIe based controllers. Would you try the following patch and let me know the result? http://people.freebsd.org/~yongari/re/6.3R/re.busdma.patch If you use 7.0-RELEASE use the following one. http://people.freebsd.org/~yongari/re/7.0R/if_re.c http://people.freebsd.org/~yongari/re/7.0R/if_rlreg.h > I can provide some network capture if needed. In the meantime I swapped > the two cards as I don't need jumbo on one of them. > > Thanks > > Arnaud -- Regards, Pyun YongHyeon