diff options
author | Konstantin Khlebnikov <khlebnikov@yandex-team.ru> | 2017-09-20 14:45:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-21 20:56:32 +0200 |
commit | c8e1812960eeae42e2183154927028511c4bc566 (patch) | |
tree | 31085d740493f22d75d03a2efa253730fa005c55 /net | |
parent | Merge branch 'hns3-tm-fixes' (diff) | |
download | linux-c8e1812960eeae42e2183154927028511c4bc566.tar.xz linux-c8e1812960eeae42e2183154927028511c4bc566.zip |
net_sched: always reset qdisc backlog in qdisc_reset()
SKB stored in qdisc->gso_skb also counted into backlog.
Some qdiscs don't reset backlog to zero in ->reset(),
for example sfq just dequeue and free all queued skb.
Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Fixes: 2ccccf5fb43f ("net_sched: update hierarchical backlog too")
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/sched/sch_generic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c index 92237e75dbbc..bf8c81e07c70 100644 --- a/net/sched/sch_generic.c +++ b/net/sched/sch_generic.c @@ -685,6 +685,7 @@ void qdisc_reset(struct Qdisc *qdisc) qdisc->gso_skb = NULL; } qdisc->q.qlen = 0; + qdisc->qstats.backlog = 0; } EXPORT_SYMBOL(qdisc_reset); |