From: Eric Dumazet Date: Thu, 13 Oct 2011 07:53:42 +0000 (+0000) Subject: e1000: fix skb truesize underestimation X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ed64b3cc11502f50e1401f12e33d021592800bca;p=openwrt%2Fstaging%2Fblogic.git e1000: fix skb truesize underestimation e1000 allocates a full page per skb fragment. We must account PAGE_SIZE increments on skb->truesize, not the actual frag length. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/intel/e1000/e1000_main.c b/drivers/net/ethernet/intel/e1000/e1000_main.c index a42421f26678..7b54d7246150 100644 --- a/drivers/net/ethernet/intel/e1000/e1000_main.c +++ b/drivers/net/ethernet/intel/e1000/e1000_main.c @@ -3737,7 +3737,7 @@ static void e1000_consume_page(struct e1000_buffer *bi, struct sk_buff *skb, bi->page = NULL; skb->len += length; skb->data_len += length; - skb->truesize += length; + skb->truesize += PAGE_SIZE; } /**