]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: call qlen_notify only if child qdisc is empty
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Tue, 15 Aug 2017 13:39:59 +0000 (16:39 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Aug 2017 17:55:34 +0000 (10:55 -0700)
commitb26dd15caf58005c2b3436e78e3a9891f5a77769
tree92eb64dfd551fdcf0b9e09b113fe59bc3f178557
parent00b839cc3d25650f1f0ec3b5c37c39987516f0d6
net_sched: call qlen_notify only if child qdisc is empty

This callback is used for deactivating class in parent qdisc.
This is cheaper to test queue length right here.

Also this allows to catch draining screwed backlog and prevent
second deactivation of already inactive parent class which will
crash kernel for sure. Kernel with print warning at destruction
of child qdisc where no packets but backlog is not zero.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_api.c
net/sched/sch_cbq.c
net/sched/sch_drr.c
net/sched/sch_hfsc.c
net/sched/sch_htb.c
net/sched/sch_qfq.c