diff options
author | Zhengchao Shao <shaozhengchao@huawei.com> | 2022-09-21 05:41:18 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-09-23 03:34:10 +0300 |
commit | e046fa895c45235095693e44244292a6ab9c3d0b (patch) | |
tree | 45837dc5da3932f93d8df53972899351f9b2a796 /net/sched/sch_cake.c | |
parent | d7a68e564e29bcd1c70d76d9e2f65591e6183f46 (diff) | |
download | linux-e046fa895c45235095693e44244292a6ab9c3d0b.tar.xz |
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_cake.c')
-rw-r--r-- | net/sched/sch_cake.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/net/sched/sch_cake.c b/net/sched/sch_cake.c index 36acc95d611e..55c6879d2c7e 100644 --- a/net/sched/sch_cake.c +++ b/net/sched/sch_cake.c @@ -3061,16 +3061,13 @@ static void cake_walk(struct Qdisc *sch, struct qdisc_walker *arg) struct cake_tin_data *b = &q->tins[q->tin_order[i]]; for (j = 0; j < CAKE_QUEUES; j++) { - if (list_empty(&b->flows[j].flowchain) || - arg->count < arg->skip) { + if (list_empty(&b->flows[j].flowchain)) { arg->count++; continue; } - if (arg->fn(sch, i * CAKE_QUEUES + j + 1, arg) < 0) { - arg->stop = 1; + if (!tc_qdisc_stats_dump(sch, i * CAKE_QUEUES + j + 1, + arg)) break; - } - arg->count++; } } } |