From: stephen hemminger Date: Sun, 6 Oct 2013 22:15:33 +0000 (-0700) Subject: netem: update backlog after drop X-Git-Tag: v4.9.8~7602^2~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=638a52b801e40ed276ceb69b73579ad99365361a;p=platform%2Fkernel%2Flinux-rpi3.git netem: update backlog after drop When packet is dropped from rb-tree netem the backlog statistic should also be updated. Reported-by: Сергеев Сергей Signed-off-by: Stephen Hemminger Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/net/sched/sch_netem.c b/net/sched/sch_netem.c index a6d788d..6b75b67 100644 --- a/net/sched/sch_netem.c +++ b/net/sched/sch_netem.c @@ -520,6 +520,7 @@ static unsigned int netem_drop(struct Qdisc *sch) skb->next = NULL; skb->prev = NULL; len = qdisc_pkt_len(skb); + sch->qstats.backlog -= len; kfree_skb(skb); } }