net_sched: always reset qdisc backlog in qdisc_reset()
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Wed, 20 Sep 2017 12:45:36 +0000 (15:45 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Sep 2017 18:56:32 +0000 (11:56 -0700)
commitc8e1812960eeae42e2183154927028511c4bc566
tree31085d740493f22d75d03a2efa253730fa005c55
parent6cc40834b480759b9901510578a59b722c37073a
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>
net/sched/sch_generic.c