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:
a1f4e8b
)
e1000: fix skb truesize underestimation
author
Eric Dumazet
<
[email protected]
>
Thu, 13 Oct 2011 07:53:42 +0000
(07:53 +0000)
committer
David S. Miller
<
[email protected]
>
Thu, 13 Oct 2011 20:05:07 +0000
(16:05 -0400)
e1000 allocates a full page per skb fragment. We must account PAGE_SIZE
increments on skb->truesize, not the actual frag length.
Signed-off-by: Eric Dumazet <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/intel/e1000/e1000_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/intel/e1000/e1000_main.c
b/drivers/net/ethernet/intel/e1000/e1000_main.c
index a42421f26678e23c11872b06af1da200a51882e0..7b54d7246150f7cd6e549b0a64bf8fc034d22a87 100644
(file)
--- a/
drivers/net/ethernet/intel/e1000/e1000_main.c
+++ b/
drivers/net/ethernet/intel/e1000/e1000_main.c
@@
-3737,7
+3737,7
@@
static void e1000_consume_page(struct e1000_buffer *bi, struct sk_buff *skb,
bi->page = NULL;
skb->len += length;
skb->data_len += length;
- skb->truesize +=
length
;
+ skb->truesize +=
PAGE_SIZE
;
}
/**