projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e1848b
)
[CASSINI]: Set skb->truesize properly on receive packets.
author
David S. Miller
<davem@davemloft.net>
Fri, 4 Jan 2008 08:03:56 +0000
(
00:03
-0800)
committer
David S. Miller
<davem@davemloft.net>
Fri, 4 Jan 2008 11:55:24 +0000
(
03:55
-0800)
skb->truesize was not being incremented at all to
reflect the page based data added to RX SKBs.
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cassini.c
patch
|
blob
|
history
diff --git
a/drivers/net/cassini.c
b/drivers/net/cassini.c
index
33ac2ef
..
544ab0b
100644
(file)
--- a/
drivers/net/cassini.c
+++ b/
drivers/net/cassini.c
@@
-2037,6
+2037,7
@@
static int cas_rx_process_pkt(struct cas *cp, struct cas_rx_comp *rxc,
skb_shinfo(skb)->nr_frags++;
skb->data_len += hlen - swivel;
+ skb->truesize += hlen - swivel;
skb->len += hlen - swivel;
get_page(page->buffer);