diff options
author | David S. Miller <davem@davemloft.net> | 2008-01-04 03:03:56 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-04 06:55:24 -0500 |
commit | d011a231675b240157a3c335dd53e9b849d7d30d (patch) | |
tree | eef92720307dfe2487b9ec79f2d116b4528c3320 /drivers | |
parent | 9e1848b60d09a715ff1e19aa6fda47e061d04965 (diff) |
[CASSINI]: Set skb->truesize properly on receive packets.
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/cassini.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/cassini.c b/drivers/net/cassini.c index 33ac2ef67778..544ab0bb174c 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, | |||
2037 | 2037 | ||
2038 | skb_shinfo(skb)->nr_frags++; | 2038 | skb_shinfo(skb)->nr_frags++; |
2039 | skb->data_len += hlen - swivel; | 2039 | skb->data_len += hlen - swivel; |
2040 | skb->truesize += hlen - swivel; | ||
2040 | skb->len += hlen - swivel; | 2041 | skb->len += hlen - swivel; |
2041 | 2042 | ||
2042 | get_page(page->buffer); | 2043 | get_page(page->buffer); |