projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33136d1
)
igbvf: fix truesize underestimation
author
Eric Dumazet
<
[email protected]
>
Thu, 20 Oct 2011 09:22:18 +0000
(09:22 +0000)
committer
David S. Miller
<
[email protected]
>
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 <
[email protected]
>
CC: Jeff Kirsher <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/intel/igbvf/netdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/intel/igbvf/netdev.c
b/drivers/net/ethernet/intel/igbvf/netdev.c
index 1bd9abddcc593045b08c727309316472734fc144..db2981748012e9edf22d49986cf33af1537b8631 100644
(file)
--- 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++;