Commit d011a231 authored by David S. Miller's avatar David S. Miller

[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: default avatarDavid S. Miller <davem@davemloft.net>
parent 9e1848b6
...@@ -2037,6 +2037,7 @@ static int cas_rx_process_pkt(struct cas *cp, struct cas_rx_comp *rxc, ...@@ -2037,6 +2037,7 @@ static int cas_rx_process_pkt(struct cas *cp, struct cas_rx_comp *rxc,
skb_shinfo(skb)->nr_frags++; skb_shinfo(skb)->nr_frags++;
skb->data_len += hlen - swivel; skb->data_len += hlen - swivel;
skb->truesize += hlen - swivel;
skb->len += hlen - swivel; skb->len += hlen - swivel;
get_page(page->buffer); get_page(page->buffer);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment