Received: with ECARTIS (v1.0.0; list netdev); Thu, 02 Sep 2004 12:47:44 -0700 (PDT) Received: from yue.st-paulia.net ([203.178.140.15]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id i82Jlbg2001233 for ; Thu, 2 Sep 2004 12:47:38 -0700 Received: from localhost (localhost [127.0.0.1]) by yue.st-paulia.net (Postfix) with ESMTP id 1976B33CE6; Fri, 3 Sep 2004 04:48:25 +0900 (JST) Date: Fri, 03 Sep 2004 04:48:23 +0900 (JST) Message-Id: <20040903.044823.82214059.yoshfuji@linux-ipv6.org> To: kaber@trash.net Cc: davem@redhat.com, herbert@debian.org, netdev@oss.sgi.com, yoshfuji@linux-ipv6.org Subject: Re: [PATCH 2.6]: Fix suboptimal fragment sizing for last fragment From: YOSHIFUJI Hideaki / =?iso-2022-jp?B?GyRCNUhGIzFRTEAbKEI=?= In-Reply-To: <4137681D.3000902@trash.net> References: <4137681D.3000902@trash.net> Organization: USAGI Project X-URL: http://www.yoshifuji.org/%7Ehideaki/ X-Fingerprint: 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA X-PGP-Key-URL: http://www.yoshifuji.org/%7Ehideaki/hideaki@yoshifuji.org.asc X-Face: "5$Al-.M>NJ%a'@hhZdQm:."qn~PA^gq4o*>iCFToq*bAi#4FRtx}enhuQKz7fNqQz\BYU] $~O_5m-9'}MIs`XGwIEscw;e5b>n"B_?j/AkL~i/MEaZBLP X-Mailer: Mew version 2.2 on Emacs 20.7 / Mule 4.1 (AOI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-archive-position: 8360 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: yoshfuji@linux-ipv6.org Precedence: bulk X-list: netdev In article <4137681D.3000902@trash.net> (at Thu, 02 Sep 2004 20:36:13 +0200), Patrick McHardy says: > Yoshifuji's recent fragment patch prevents unnecessary fragmentation > when the data can be kept in a single packet, but only for the first > packet. When fragmenting, all fragments are still truncated to > multiples of 8 and we might end up creating an unnecessary fragment. > > This dump shows the problem (MTU 1499): > > 172.16.1.123.32771 > 172.16.195.3.4135: udp 2937 (frag 7066:1472@0+) > 172.16.1.123 > 172.16.195.3: udp (frag 7066:1472@1472+) > 172.16.1.123 > 172.16.195.3: udp (frag 7066:1@2944) > > This patch always builds mtu sized fragments and truncates the previous > fragment to a multiple of 8 bytes when allocating a new one. With the > patch the dump looks like this: > > > 172.16.1.123.32772 > 172.16.195.3.4135: udp 2937 (frag 49641:1472@0+) > 172.16.1.123 > 172.16.195.3: udp (frag 49641:1473@1472) Let me clarify. Are you sending payload of 2945 bytes (= udp payload of 2937 bytes)? Good point. I'll check this patch today. (Let me sleep for now...) Anyway, please update the comment instead of removing completely. Thanks. --yoshfuji