[Top] [All Lists]

Re: [PATCH 2.6]: Fix suboptimal fragment sizing for last fragment

To: kaber@xxxxxxxxx
Subject: Re: [PATCH 2.6]: Fix suboptimal fragment sizing for last fragment
From: YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@xxxxxxxxxxxxxx>
Date: Fri, 03 Sep 2004 04:48:23 +0900 (JST)
Cc: davem@xxxxxxxxxx, herbert@xxxxxxxxxx, netdev@xxxxxxxxxxx, yoshfuji@xxxxxxxxxxxxxx
In-reply-to: <4137681D.3000902@xxxxxxxxx>
Organization: USAGI Project
References: <4137681D.3000902@xxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
In article <4137681D.3000902@xxxxxxxxx> (at Thu, 02 Sep 2004 20:36:13 +0200), 
Patrick McHardy <kaber@xxxxxxxxx> 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):
> > udp 2937 (frag 7066:1472@0+)
> > udp (frag 7066:1472@1472+)
> > 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:
> > udp 2937 (frag 49641:1472@0+)
> > 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.



<Prev in Thread] Current Thread [Next in Thread>