[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1318577970-19566-1-git-send-email-roy.qing.li@gmail.com>
Date: Fri, 14 Oct 2011 15:39:30 +0800
From: roy.qing.li@...il.com
To: netdev@...r.kernel.org
Subject: [PATCH net-next] skbuff: update sk truesize in pskb_expand_head
when pskb_expand_head reallocates header of &sk_buff, the sk
truesize should be updated simultaneously
Signed-off-by: RongQing.Li <roy.qing.li@...il.com>
---
net/core/skbuff.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index 387703f..48e0be9 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -920,6 +920,7 @@ int pskb_expand_head(struct sk_buff *skb, int nhead, int ntail,
}
off = (data + nhead) - skb->head;
+ skb->truesize += (size - (skb_end_pointer(skb) - skb->head));
skb->head = data;
adjust_others:
skb->data += off;
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists