summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Miller <davem@davemloft.net>2008-01-11 01:38:38 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2008-02-06 11:43:45 -0800
commitb337ef510f8a906aa1a0ab8574ff602e03004a21 (patch)
tree936e50cfe499bb6b37407b5fe863afd030884aa8
parent49181a894be9a556a2336b2f0bc8762bc5f2f9c7 (diff)
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: Greg Kroah-Hartman <gregkh@suse.de>
-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 eac422c5b103..ad55baa1c7ab 100644
--- 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);