From owner-freebsd-questions@FreeBSD.ORG Sat Jan 20 05:18:12 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D7E2616A402 for ; Sat, 20 Jan 2007 05:18:12 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.231]) by mx1.freebsd.org (Postfix) with ESMTP id 7CD0F13C448 for ; Sat, 20 Jan 2007 05:18:12 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so668635wxc for ; Fri, 19 Jan 2007 21:18:12 -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=szQ0jjsrXbvosGzJvzruc5atWXYVV9RQqfGUWfTXamNo8lPzwWlha97PjR9WzcHRwE76tmEE+YmcOVijL+ab3apC4WnAG6XQzvBZpEAe2YOGChe78YSjVtYRO/vasEfewG0tO2ucnpE0UjZv9c9sodMPshapJ+zfsHnHt5kb9qo= Received: by 10.90.120.13 with SMTP id s13mr3921943agc.1169270291884; Fri, 19 Jan 2007 21:18:11 -0800 (PST) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTP id 7sm4983011wrl.2007.01.19.21.18.09; Fri, 19 Jan 2007 21:18:11 -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 l0K5IgnK022742 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 20 Jan 2007 14:18:42 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id l0K5IfdR022741; Sat, 20 Jan 2007 14:18:41 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Sat, 20 Jan 2007 14:18:41 +0900 From: Pyun YongHyeon To: Pietro Cerutti Message-ID: <20070120051841.GD17584@cdnetworks.co.kr> References: <20070111121904.GD33964@cdnetworks.co.kr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="QKdGvSO+nmPlgiQ/" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org, FreeBSD Questions Subject: Re: [SOLVED] re(4) incorrect checksum X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2007 05:18:12 -0000 --QKdGvSO+nmPlgiQ/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jan 11, 2007 at 05:34:19PM +0100, Pietro Cerutti wrote: > On 1/11/07, Pyun YongHyeon wrote: > >In if_re.c, rev 1.46.2.18 wpaul@ fixed a long standing checksum > >offload issue by padding. Does re(4) work when you disable only Tx > >checksum offload?(i.e. ifconfig re0 -txcsum) > > yes, because -txcsum also disables Rx checksum on my NIC. > > # ifconfig re0 > .... > options=1b > .... > # ifconfig re0 -txcsum > .... > options=18 > .... > How about attached one? Please make sure to test 'ping -s 1473 ipaddr_of_gateway'. -- Regards, Pyun YongHyeon --QKdGvSO+nmPlgiQ/ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="if_re.csum.patch" Index: if_rlreg.h =================================================================== RCS file: /home/ncvs/src/sys/pci/if_rlreg.h,v retrieving revision 1.64 diff -u -r1.64 if_rlreg.h --- if_rlreg.h 16 Jan 2007 20:35:23 -0000 1.64 +++ if_rlreg.h 20 Jan 2007 05:05:21 -0000 @@ -443,7 +443,12 @@ #define RL_RX_BUF_SZ RL_RXBUF_64 #define RL_RXBUFLEN (1 << ((RL_RX_BUF_SZ >> 11) + 13)) #define RL_TX_LIST_CNT 4 -#define RL_MIN_FRAMELEN 60 +/* + * re(4) hardware IPv4 Tx checksum offload could be mangled with 28 bytes + * or less IP packets. + */ +#define RL_TXCSUM_MINLEN 28 +#define RL_MIN_FRAMELEN (ETHER_HDR_LEN + RL_TXCSUM_MINLEN) #define RL_TXTHRESH(x) ((x) << 11) #define RL_TX_THRESH_INIT 96 #define RL_RX_FIFOTHRESH RL_RXFIFO_NOTHRESH --QKdGvSO+nmPlgiQ/--