Skip to contentSkip to conversation

: [CASSINI]: Set skb->truesize properly on receive packets.

PATCH In review David Miller 1 participant 1 message Jan 4, 2008

Subsystems (2)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 4/6 : [CASSINI]: Set skb->truesize properly on receive packets.

[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.

---
 drivers/net/cassini.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/cassini.c +1 -0
index 2336223..92821ae 100644
@@ -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);
Signature · 1 line
1.5.4.rc2.17.g257f