Re: [TCP]: Account skb overhead in tcp_fragment

2006-04-19 Thread David S. Miller
From: Herbert Xu <[EMAIL PROTECTED]> Date: Thu, 20 Apr 2006 13:26:02 +1000 > On Thu, Apr 20, 2006 at 11:01:11AM +1000, herbert wrote: > > Hi Dave: > > > > Since sk_stream_alloc_pskb takes an extra argument that accounts for > > paged data all we need to do to account sk_buff overhead correctly >

Re: [TCP]: Account skb overhead in tcp_fragment

2006-04-19 Thread Herbert Xu
On Thu, Apr 20, 2006 at 11:01:11AM +1000, herbert wrote: > Hi Dave: > > Since sk_stream_alloc_pskb takes an extra argument that accounts for > paged data all we need to do to account sk_buff overhead correctly > is to use that instead of sk_stream_alloc_skb. Here is a better version that does not

[TCP]: Account skb overhead in tcp_fragment

2006-04-19 Thread Herbert Xu
Hi Dave: Since sk_stream_alloc_pskb takes an extra argument that accounts for paged data all we need to do to account sk_buff overhead correctly is to use that instead of sk_stream_alloc_skb. This patch does just that for both tcp_fragment and tso_fragment. Signed-off-by: Herbert Xu <[EMAIL PROT