diff options
author | Zhengchao Shao <shaozhengchao@huawei.com> | 2022-09-21 10:41:18 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-09-22 17:34:10 -0700 |
commit | e046fa895c45235095693e44244292a6ab9c3d0b (patch) | |
tree | 45837dc5da3932f93d8df53972899351f9b2a796 /net/sched/sch_cbs.c | |
parent | d7a68e564e29bcd1c70d76d9e2f65591e6183f46 (diff) | |
download | linux-stable-e046fa895c45235095693e44244292a6ab9c3d0b.tar.gz linux-stable-e046fa895c45235095693e44244292a6ab9c3d0b.tar.bz2 linux-stable-e046fa895c45235095693e44244292a6ab9c3d0b.zip |
net/sched: use tc_qdisc_stats_dump() in qdisc
use tc_qdisc_stats_dump() in qdisc.
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Reviewed-by: Victor Nogueira <victor@mojatatu.com>
Tested-by: Victor Nogueira <victor@mojatatu.com>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/sched/sch_cbs.c')
-rw-r--r-- | net/sched/sch_cbs.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/net/sched/sch_cbs.c b/net/sched/sch_cbs.c index 459cc240eda9..cac870eb7897 100644 --- a/net/sched/sch_cbs.c +++ b/net/sched/sch_cbs.c @@ -520,13 +520,7 @@ static unsigned long cbs_find(struct Qdisc *sch, u32 classid) static void cbs_walk(struct Qdisc *sch, struct qdisc_walker *walker) { if (!walker->stop) { - if (walker->count >= walker->skip) { - if (walker->fn(sch, 1, walker) < 0) { - walker->stop = 1; - return; - } - } - walker->count++; + tc_qdisc_stats_dump(sch, 1, walker); } } |