diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2011-10-20 09:22:18 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-10-20 17:04:20 -0400 |
commit | 7b8b59617ead5acc6ff041a9ad2ea1fe7a58094f (patch) | |
tree | 932f64146b8ae8d0ad5ab5e89f9e4e7aea10dfae | |
parent | 33136d12be00596a8320d4fe88f95c44f67afbdb (diff) |
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.
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>
-rw-r--r-- | drivers/net/ethernet/intel/igbvf/netdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/igbvf/netdev.c b/drivers/net/ethernet/intel/igbvf/netdev.c index 1bd9abddcc5..db298174801 100644 --- a/drivers/net/ethernet/intel/igbvf/netdev.c +++ b/drivers/net/ethernet/intel/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++; |