diff options
author | 2013-10-06 15:15:33 -0700 | |
---|---|---|
committer | 2013-10-11 17:29:29 -0400 | |
commit | 638a52b801e40ed276ceb69b73579ad99365361a (patch) | |
tree | 875e7d8a92f7e11be31720976147aba6e07b4e70 /net/sched/sch_netem.c | |
parent | l2tp: must disable bh before calling l2tp_xmit_skb() (diff) | |
download | linux-638a52b801e40ed276ceb69b73579ad99365361a.tar.gz linux-638a52b801e40ed276ceb69b73579ad99365361a.tar.bz2 linux-638a52b801e40ed276ceb69b73579ad99365361a.zip |
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/sch_netem.c')
-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); } } |