diff options
author | stephen hemminger <stephen@networkplumber.org> | 2013-10-06 15:15:33 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-11 17:29:29 -0400 |
commit | 638a52b801e40ed276ceb69b73579ad99365361a (patch) | |
tree | 875e7d8a92f7e11be31720976147aba6e07b4e70 /net/sched | |
parent | 455cc32bf128e114455d11ad919321ab89a2c312 (diff) | |
download | linux-638a52b801e40ed276ceb69b73579ad99365361a.tar.bz2 |
netem: update backlog after drop
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>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/sch_netem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sched/sch_netem.c b/net/sched/sch_netem.c index a6d788d45216..6b75b6733e8e 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); } } |