netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] netem: update backlog after drop
@ 2013-10-06 22:15 Stephen Hemminger
  2013-10-06 22:16 ` [PATCH net] netem: free skb's in tree on reset Stephen Hemminger
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Stephen Hemminger @ 2013-10-06 22:15 UTC (permalink / raw)
  To: David Miller, Eric Dumazet; +Cc: netdev

When packet is dropped from rb-tree netem the backlog statistic should
also be updated.

Reported-by: Сергеев Сергей <adron@yapic.net>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>

---
Should be reviewed by Eric (he added the rb-tree stuff), and added to stable
as well.

--- a/net/sched/sch_netem.c	2013-10-06 15:06:50.675250833 -0700
+++ b/net/sched/sch_netem.c	2013-10-06 15:10:03.957219532 -0700
@@ -520,6 +520,7 @@ static unsigned int netem_drop(struct Qd
 			skb->next = NULL;
 			skb->prev = NULL;
 			len = qdisc_pkt_len(skb);
+			sch->qstats.backlog -= len;
 			kfree_skb(skb);
 		}
 	}

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

end of thread, other threads:[~2013-10-11 21:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-06 22:15 [PATCH net] netem: update backlog after drop Stephen Hemminger
2013-10-06 22:16 ` [PATCH net] netem: free skb's in tree on reset Stephen Hemminger
2013-10-11 21:31   ` David Miller
2013-10-11 18:30 ` [PATCH net] netem: update backlog after drop David Miller
2013-10-11 18:38   ` Eric Dumazet
2013-10-11 21:31 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).