igbvf: fix truesize underestimation
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 20 Oct 2011 09:22:18 +0000 (09:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Oct 2011 21:04:20 +0000 (17:04 -0400)
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>
drivers/net/ethernet/intel/igbvf/netdev.c

index 1bd9abddcc593045b08c727309316472734fc144..db2981748012e9edf22d49986cf33af1537b8631 100644 (file)
@@ -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++;
This page took 0.028272 seconds and 5 git commands to generate.