Skip to content

Commit

Permalink
igbvf: fix truesize underestimation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Oct 20, 2011
1 parent 33136d1 commit 7b8b596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/intel/igbvf/netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit 7b8b596

Please sign in to comment.