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:
98a045d
)
sky2: fix skb truesize underestimation
author
Eric Dumazet
<eric.dumazet@gmail.com>
Thu, 13 Oct 2011 21:12:46 +0000
(17:12 -0400)
committer
David S. Miller
<davem@davemloft.net>
Thu, 13 Oct 2011 21:12:46 +0000
(17:12 -0400)
sky2 allocates a page per skb fragment. We must account
PAGE_SIZE increments on skb->truesize, not the actual frag length.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/sky2.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/marvell/sky2.c
b/drivers/net/ethernet/marvell/sky2.c
index 6895e3be260c865fbbf31da1f4b2017b0d5b9010..92634907bf8da724b2570aef18e3eeee80310925 100644
(file)
--- a/
drivers/net/ethernet/marvell/sky2.c
+++ b/
drivers/net/ethernet/marvell/sky2.c
@@
-2486,7
+2486,7
@@
static void skb_put_frags(struct sk_buff *skb, unsigned int hdr_space,
frag->size = size;
skb->data_len += size;
- skb->truesize +=
size
;
+ skb->truesize +=
PAGE_SIZE
;
skb->len += size;
length -= size;
}