From: Eric Dumazet Date: Thu, 20 Oct 2011 09:22:18 +0000 (+0000) Subject: igbvf: fix truesize underestimation X-Git-Tag: v2.6.39-400.9.0~423^2~19^2~11^2~235 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a78027f0f1d1d0f73ecdc75ca235b67bf7f64733;p=users%2Fjedix%2Flinux-maple.git igbvf: fix truesize underestimation igbvf allocates half a page per skb fragment. We must account PAGE_SIZE/2 increments on skb->truesize, not the actual frag length. (cherry picked from commit 7b8b59617ead5acc6ff041a9ad2ea1fe7a58094f) Signed-off-by: Eric Dumazet CC: Jeff Kirsher Signed-off-by: David S. Miller Signed-off-by: Joe Jin --- diff --git a/drivers/net/igbvf/netdev.c b/drivers/net/igbvf/netdev.c index e404209204cd..57c72dd7ab52 100644 --- a/drivers/net/igbvf/netdev.c +++ b/drivers/net/igbvf/netdev.c @@ -312,7 +312,7 @@ static bool igbvf_clean_rx_irq(struct igbvf_adapter *adapter, skb->len += length; skb->data_len += length; - skb->truesize += length; + skb->truesize += PAGE_SIZE / 2; } send_up: i++;