projects
/
unionfs-2.6.38.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cffb92d
)
[CASSINI]: Set skb->truesize properly on receive packets.
author
David S. Miller
<davem@davemloft.net>
Sun, 20 Jan 2008 20:02:20 +0000
(22:02 +0200)
committer
Adrian Bunk
<bunk@kernel.org>
Sun, 20 Jan 2008 20:02:20 +0000
(22:02 +0200)
[ Upstream commit:
d011a231675b240157a3c335dd53e9b849d7d30d
]
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>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
drivers/net/cassini.c
patch
|
blob
|
history
diff --git
a/drivers/net/cassini.c
b/drivers/net/cassini.c
index 6c853992e41b5316b03ae9c7a9eafc95163757fa..752d28afd0efc80037894f77ad5dd03c750e14da 100644
(file)
--- a/
drivers/net/cassini.c
+++ b/
drivers/net/cassini.c
@@
-2063,6
+2063,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);