Skip to contentSkip to conversation

Update sparse tree with "[PATCH] NET: Set truesize in pskb_copy" patch from 2.6.18.8

PATCH New S.Çağlar Onur 1 participant 1 message Jan 17, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 6/7 Update sparse tree with "[PATCH] NET: Set truesize in pskb_copy" patch from 2.6.18.8

Update sparse tree with "[PATCH] NET: Set truesize in pskb_copy" [1] patch from 2.6.18.8

[1] http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.18.y.git;a=commitdiff;h=37ccc3f978bc86c131eea70d7a5afb29b2ca3404

linux-2.6-xen-sparse/net/core/skbuff.c +1 -0
@@ -643,6 +643,7 @@ struct sk_buff *pskb_copy(struct sk_buff
 	n->csum	     = skb->csum;
 	n->ip_summed = skb->ip_summed;
 
+	n->truesize += skb->data_len;
 	n->data_len  = skb->data_len;
 	n->len	     = skb->len;
 
Signature · 4 lines
S.Çağlar Onur <[email protected]>
http://cekirdek.pardus.org.tr/~caglar/

Linux is like living in a teepee. No Windows, no Gates and an Apache in house!