Skip to content

Commit

Permalink
ixgbe: fix skb truesize underestimation
Browse files Browse the repository at this point in the history
ixgbe allocates half a page per skb fragment. We must account
PAGE_SIZE/2 increments on skb->truesize, not the actual frag length.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Oct 13, 2011
1 parent 95b9c1d commit 9813064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,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++;
Expand Down

0 comments on commit 9813064

Please sign in to comment.