diff options
author | Zhengchao Shao <shaozhengchao@huawei.com> | 2022-08-24 03:52:31 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2022-08-25 16:10:17 +0300 |
commit | c19d893fbf3f2f8fa864ae39652c7fee939edde2 (patch) | |
tree | 6435663a4d3a8343f485721c076d237b7ee77fd0 /net/sched/sch_atm.c | |
parent | ff763011ee7be4736cd65026d479caa4a2996355 (diff) | |
download | linux-c19d893fbf3f2f8fa864ae39652c7fee939edde2.tar.xz |
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>
Diffstat (limited to 'net/sched/sch_atm.c')
-rw-r--r-- | net/sched/sch_atm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/sched/sch_atm.c b/net/sched/sch_atm.c index 4c8e994cf0a5..816fd0d7ba38 100644 --- a/net/sched/sch_atm.c +++ b/net/sched/sch_atm.c @@ -577,7 +577,6 @@ static void atm_tc_reset(struct Qdisc *sch) pr_debug("atm_tc_reset(sch %p,[qdisc %p])\n", sch, p); list_for_each_entry(flow, &p->flows, list) qdisc_reset(flow->q); - sch->q.qlen = 0; } static void atm_tc_destroy(struct Qdisc *sch) |