summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2011-10-20 13:22:18 +0400
committerDavid S. Miller <davem@davemloft.net>2011-10-21 01:04:20 +0400
commit7b8b59617ead5acc6ff041a9ad2ea1fe7a58094f (patch)
tree932f64146b8ae8d0ad5ab5e89f9e4e7aea10dfae /drivers/net/ethernet/intel
parent33136d12be00596a8320d4fe88f95c44f67afbdb (diff)
downloadlinux-7b8b59617ead5acc6ff041a9ad2ea1fe7a58094f.tar.xz
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>
Diffstat (limited to 'drivers/net/ethernet/intel')
-rw-r--r--drivers/net/ethernet/intel/igbvf/netdev.c2
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 1bd9abddcc59..db2981748012 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++;