Skip to content

Commit

Permalink
[CASSINI]: Set skb->truesize properly on receive packets.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller committed Jan 4, 2008
1 parent 9e1848b commit d011a23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/cassini.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d011a23

Please sign in to comment.