diff options
author | stephen hemminger <stephen@networkplumber.org> | 2013-10-06 18:15:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-11 17:29:29 -0400 |
commit | 638a52b801e40ed276ceb69b73579ad99365361a (patch) | |
tree | 875e7d8a92f7e11be31720976147aba6e07b4e70 /net | |
parent | 455cc32bf128e114455d11ad919321ab89a2c312 (diff) |
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')
-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) | |||
520 | skb->next = NULL; | 520 | skb->next = NULL; |
521 | skb->prev = NULL; | 521 | skb->prev = NULL; |
522 | len = qdisc_pkt_len(skb); | 522 | len = qdisc_pkt_len(skb); |
523 | sch->qstats.backlog -= len; | ||
523 | kfree_skb(skb); | 524 | kfree_skb(skb); |
524 | } | 525 | } |
525 | } | 526 | } |