summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-01-20 22:02:20 +0200
committerAdrian Bunk <bunk@kernel.org>2008-01-20 22:02:20 +0200
commitfdd75e9bc2cb0a54bd435645dc7e8522b1c6a945 (patch)
tree8ecdd679026cc872674bf3d561c91e80199c1114
parentcffb92d239bd8a236fea210f09a791aae222a50a (diff)
downloadlwn-fdd75e9bc2cb0a54bd435645dc7e8522b1c6a945.tar.gz
lwn-fdd75e9bc2cb0a54bd435645dc7e8522b1c6a945.zip
[CASSINI]: Set skb->truesize properly on receive packets.
[ 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>
-rw-r--r--drivers/net/cassini.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/cassini.c b/drivers/net/cassini.c
index 6c853992e41b..752d28afd0ef 100644
--- 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);