From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 12 02:00:14 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0AD3716A40F for ; Fri, 12 Jan 2007 02:00:13 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.238]) by mx1.freebsd.org (Postfix) with ESMTP id 8CEA013C441 for ; Fri, 12 Jan 2007 02:00:13 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so662055wxc for ; Thu, 11 Jan 2007 18:00:13 -0800 (PST) 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=hwsGHxrJ515xZIuSC/hz0SmHwwh16w56UV8HxLvsAic6pfbveYzIq/4HqPwLlpnzRXLtWsfT9Ym8FfhiuSGVPz5HSVrXEe1UX/2D/aCX5EOD+LaS+MstrymlxMzVcD5ORO86eaEudWCpMOZcyklYSNyzcx9jnM6bkf9f3f+XjHo= Received: by 10.70.99.9 with SMTP id w9mr205338wxb.1168567213043; Thu, 11 Jan 2007 18:00:13 -0800 (PST) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTP id 44sm2104881wri.2007.01.11.18.00.10; Thu, 11 Jan 2007 18:00:12 -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 l0C21oK3043075 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 12 Jan 2007 11:01:50 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id l0C21oI4043074; Fri, 12 Jan 2007 11:01:50 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Fri, 12 Jan 2007 11:01:50 +0900 From: Pyun YongHyeon To: Rene Ladan Message-ID: <20070112020149.GA42529@cdnetworks.co.kr> References: <45A61C1A.3090600@gmail.com> <20070111122049.GE33964@cdnetworks.co.kr> <45A659A1.2060401@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="VbJkn9YxBvnuCH5J" Content-Disposition: inline In-Reply-To: <45A659A1.2060401@gmail.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org, Pietro Cerutti Subject: Re: re(4) incorrect checksum X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jan 2007 02:00:14 -0000 --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jan 11, 2007 at 04:37:05PM +0100, Rene Ladan wrote: > Pyun YongHyeon schreef: > > On Thu, Jan 11, 2007 at 12:14:34PM +0100, Rene Ladan wrote: > > > Pietro Cerutti schreef: > > > > Hi lists, > > > > > > > > FreeBSD gahrtop.localhost 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #1: > > > > Tue Jan 9 19:34:13 CET 2007 > > > > root@gahrtop:/usr/obj/usr/src/sys/GAHRTOP i386 > > > > > > > > CPU: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz (2000.15-MHz > > > > 686-class CPU) > > > > Cores per package: 2 > > > > > > > > re0: port 0xc800-0xc8ff > > > > mem 0xff2ff000-0xff2fffff irq 17 at device 0.0 on pci2 > > > > > > > > ($FreeBSD: src/sys/dev/re/if_re.c,v 1.46.2.20 2006/09/21 11:08:28 > > > > yongari Exp $) > > > > > > > > I get checksum errors on every packet I send, example: > > > > > > > > Checksum: 0x0bc5 [incorrect, should be 0x78fe (maybe caused by > > > > checksum offloading?)] > > > > > > > > I think this could be the cause of some web pages (e.g. Gmail in > > > > standard view [html view works well]) not to be displayed. > > > > > > > > I tracked down the problem to the re(4) driver just because wlan works > > > > good... > > > > > > > > Any ideas? > > > > > > > I'm also seeing these www problems with my re(4) card (chipid > > > 0x816810ec), see > > > http://lists.freebsd.org/pipermail/freebsd-current/2006-December/068333.html > > > > > > > Does your re(4) also work when you disable checksum offload? > > > Yes, 'ifconfig re0 -txcsum' does the trick. > > re0: port 0xc800-0xc8ff mem > 0xfe0ff000-0xfe0fffff irq 16 at device 0.0 on pci2 > > if.re.c revision 1.80 2006/12/20 02:13:59 marius > I've never encountered checksum offload issue after wpaul's fix. How about attached one? It's just vague guess but please give it try and let me know the result. -- Regards, Pyun YongHyeon --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="if_re.checksum.patch" Index: if_re.c =================================================================== RCS file: /home/ncvs/src/sys/dev/re/if_re.c,v retrieving revision 1.80 diff -u -r1.80 if_re.c --- if_re.c 20 Dec 2006 02:13:59 -0000 1.80 +++ if_re.c 12 Jan 2007 01:42:59 -0000 @@ -2027,9 +2027,9 @@ arg.rl_flags = RL_TDESC_CMD_LGSEND | ((uint32_t)(*m_head)->m_pkthdr.tso_segsz << RL_TDESC_CMD_MSSVAL_SHIFT); - else { - if ((*m_head)->m_pkthdr.csum_flags & CSUM_IP) - arg.rl_flags |= RL_TDESC_CMD_IPCSUM; + else if (((*m_head)->m_pkthdr.csum_flags & + (CSUM_IP | CSUM_TCP | CSUM_UDP)) != 0) { + arg.rl_flags |= RL_TDESC_CMD_IPCSUM; if ((*m_head)->m_pkthdr.csum_flags & CSUM_TCP) arg.rl_flags |= RL_TDESC_CMD_TCPCSUM; if ((*m_head)->m_pkthdr.csum_flags & CSUM_UDP) --VbJkn9YxBvnuCH5J--