From: Eric Dumazet Date: Thu, 13 Oct 2011 07:59:41 +0000 (+0000) Subject: ixgbe: fix skb truesize underestimation X-Git-Tag: v2.6.39-400.9.0~423^2~19^2~11^2~149 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=8a2afea7cd3f08a98d9409d0f2aedaa5f4f6d0f2;p=users%2Fjedix%2Flinux-maple.git ixgbe: fix skb truesize underestimation ixgbe 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 98130646770db42cd14c44ba0d7f2d0eb8078820) Signed-off-by: Eric Dumazet CC: Jeff Kirsher Signed-off-by: David S. Miller Signed-off-by: Joe Jin --- diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index a6d602e66feba..bc0a2d11df31f 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c @@ -1325,7 +1325,7 @@ static bool ixgbe_clean_rx_irq(struct ixgbe_q_vector *q_vector, skb->len += upper_len; skb->data_len += upper_len; - skb->truesize += upper_len; + skb->truesize += PAGE_SIZE / 2; } i++;