All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] ppp: fix truesize underestimation
@ 2012-02-13 14:23 Eric Dumazet
  2012-02-13 21:05 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Dumazet @ 2012-02-13 14:23 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, Paul Mackerras

When building frag_list, head truesize should be sum of all frag
truesize.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
---
 drivers/net/ppp/ppp_generic.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ppp/ppp_generic.c b/drivers/net/ppp/ppp_generic.c
index edfa15d..93a8639 100644
--- a/drivers/net/ppp/ppp_generic.c
+++ b/drivers/net/ppp/ppp_generic.c
@@ -2113,7 +2113,7 @@ ppp_mp_reconstruct(struct ppp *ppp)
 
 				skb->len += p->len;
 				skb->data_len += p->len;
-				skb->truesize += p->len;
+				skb->truesize += p->truesize;
 
 				if (p == tail)
 					break;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next] ppp: fix truesize underestimation
  2012-02-13 14:23 [PATCH net-next] ppp: fix truesize underestimation Eric Dumazet
@ 2012-02-13 21:05 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2012-02-13 21:05 UTC (permalink / raw)
  To: eric.dumazet; +Cc: netdev, paulus

From: Eric Dumazet <eric.dumazet@gmail.com>
Date: Mon, 13 Feb 2012 15:23:24 +0100

> When building frag_list, head truesize should be sum of all frag
> truesize.
> 
> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-13 21:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-13 14:23 [PATCH net-next] ppp: fix truesize underestimation Eric Dumazet
2012-02-13 21:05 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.