summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2013-10-07 00:15:33 +0200
committerDavid S. Miller <davem@davemloft.net>2013-10-11 23:29:29 +0200
commit638a52b801e40ed276ceb69b73579ad99365361a (patch)
tree875e7d8a92f7e11be31720976147aba6e07b4e70
parentl2tp: must disable bh before calling l2tp_xmit_skb() (diff)
downloadlinux-638a52b801e40ed276ceb69b73579ad99365361a.tar.xz
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>
-rw-r--r--net/sched/sch_netem.c1
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);
}
}