diff options
author | stephen hemminger <stephen@networkplumber.org> | 2013-10-06 15:15:33 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-11-04 04:35:15 -0800 |
commit | 598b990bb1f1f6026dc35e7d6ca69e4cf30e52f4 (patch) | |
tree | c9b9688fc38c7324112ca8fef14fcd60dd842c04 /net | |
parent | f1d1f701ef4efb986ccb9466aabea8e42bc3d384 (diff) |
netem: update backlog after drop
[ Upstream commit 638a52b801e40ed276ceb69b73579ad99365361a ]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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 82f6016d89ab..7dc79940f240 100644 --- a/net/sched/sch_netem.c +++ b/net/sched/sch_netem.c @@ -523,6 +523,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); } } |