* [PATCH 4/6]: [CASSINI]: Set skb->truesize properly on receive packets.
@ 2008-01-04 8:34 David Miller
0 siblings, 0 replies; only message in thread
From: David Miller @ 2008-01-04 8:34 UTC (permalink / raw)
To: netdev; +Cc: panther, bazsi, hidden
[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>
---
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 2336223..92821ae 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);
--
1.5.4.rc2.17.g257f
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-01-04 8:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-04 8:34 [PATCH 4/6]: [CASSINI]: Set skb->truesize properly on receive packets David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox