diff options
author | Zhengchao Shao <shaozhengchao@huawei.com> | 2022-08-24 02:52:31 +0200 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2022-08-25 15:10:17 +0200 |
commit | c19d893fbf3f2f8fa864ae39652c7fee939edde2 (patch) | |
tree | 6435663a4d3a8343f485721c076d237b7ee77fd0 /include/net/sch_generic.h | |
parent | nfp: flower: support case of match on ct_state(0/0x3f) (diff) | |
download | linux-c19d893fbf3f2f8fa864ae39652c7fee939edde2.tar.xz 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 'include/net/sch_generic.h')
-rw-r--r-- | include/net/sch_generic.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h index ec693fe7c553..f2958fb5ae08 100644 --- a/include/net/sch_generic.h +++ b/include/net/sch_generic.h @@ -1137,7 +1137,6 @@ static inline void __qdisc_reset_queue(struct qdisc_skb_head *qh) static inline void qdisc_reset_queue(struct Qdisc *sch) { __qdisc_reset_queue(&sch->q); - sch->qstats.backlog = 0; } static inline struct Qdisc *qdisc_replace(struct Qdisc *sch, struct Qdisc *new, |