]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: delete duplicate cleanup of backlog and qlen
authorZhengchao Shao <shaozhengchao@huawei.com>
Wed, 24 Aug 2022 00:52:31 +0000 (08:52 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 25 Aug 2022 13:10:17 +0000 (15:10 +0200)
commit1e95f315b9cbc053658e2f56a80fd784811c7f0c
tree6435663a4d3a8343f485721c076d237b7ee77fd0
parent2caa867491015579fa330da6277caac7d36b9887
net: sched: delete duplicate cleanup of backlog and qlen

qdisc_reset() is clearing qdisc->q.qlen and qdisc->qstats.backlog
_after_ calling qdisc->ops->reset. There is no need to clear them
again in the specific reset function.

Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Link: https://lore.kernel.org/r/20220824005231.345727-1-shaozhengchao@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
21 files changed:
include/net/sch_generic.h
net/sched/sch_atm.c
net/sched/sch_cbq.c
net/sched/sch_choke.c
net/sched/sch_drr.c
net/sched/sch_dsmark.c
net/sched/sch_etf.c
net/sched/sch_ets.c
net/sched/sch_fq_codel.c
net/sched/sch_fq_pie.c
net/sched/sch_hfsc.c
net/sched/sch_htb.c
net/sched/sch_multiq.c
net/sched/sch_prio.c
net/sched/sch_qfq.c
net/sched/sch_red.c
net/sched/sch_sfb.c
net/sched/sch_skbprio.c
net/sched/sch_taprio.c
net/sched/sch_tbf.c
net/sched/sch_teql.c