diff options
author | 2022-08-24 08:52:31 +0800 | |
---|---|---|
committer | 2022-08-25 15:10:17 +0200 | |
commit | c19d893fbf3f2f8fa864ae39652c7fee939edde2 (patch) | |
tree | 6435663a4d3a8343f485721c076d237b7ee77fd0 /net/sched/sch_sfb.c | |
parent | nfp: flower: support case of match on ct_state(0/0x3f) (diff) | |
download | linux-c19d893fbf3f2f8fa864ae39652c7fee939edde2.tar.gz linux-c19d893fbf3f2f8fa864ae39652c7fee939edde2.tar.bz2 linux-c19d893fbf3f2f8fa864ae39652c7fee939edde2.zip |
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_sfb.c')
-rw-r--r-- | net/sched/sch_sfb.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/sched/sch_sfb.c b/net/sched/sch_sfb.c index 3d061a13d7ed..31717fa45a4f 100644 --- a/net/sched/sch_sfb.c +++ b/net/sched/sch_sfb.c @@ -453,8 +453,6 @@ static void sfb_reset(struct Qdisc *sch) struct sfb_sched_data *q = qdisc_priv(sch); qdisc_reset(q->qdisc); - sch->qstats.backlog = 0; - sch->q.qlen = 0; q->slot = 0; q->double_buffering = false; sfb_zero_all_buckets(q); |