diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2011-10-13 07:59:41 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-10-13 16:05:08 -0400 |
commit | 98130646770db42cd14c44ba0d7f2d0eb8078820 (patch) | |
tree | 3e377b83567998c6a33785f60cdbda1f9ecfa80f /drivers/net/ethernet/intel | |
parent | 95b9c1dfb7b929f5f3b203ed95c28bdfd069d122 (diff) |
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.
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>
Diffstat (limited to 'drivers/net/ethernet/intel')
-rw-r--r-- | drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c index f6fea6798851..f740a8eadf7c 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c @@ -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++; |