diff options
author | Zhengchao Shao <shaozhengchao@huawei.com> | 2022-09-21 04:41:18 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-09-23 02:34:10 +0200 |
commit | e046fa895c45235095693e44244292a6ab9c3d0b (patch) | |
tree | 45837dc5da3932f93d8df53972899351f9b2a796 /net/sched/sch_skbprio.c | |
parent | net/sched: sch_api: add helper for tc qdisc walker stats dump (diff) | |
download | linux-e046fa895c45235095693e44244292a6ab9c3d0b.tar.xz linux-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_skbprio.c')
-rw-r--r-- | net/sched/sch_skbprio.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/net/sched/sch_skbprio.c b/net/sched/sch_skbprio.c index df72fb83d9c7..5df2dacb7b1a 100644 --- a/net/sched/sch_skbprio.c +++ b/net/sched/sch_skbprio.c @@ -265,15 +265,8 @@ static void skbprio_walk(struct Qdisc *sch, struct qdisc_walker *arg) return; for (i = 0; i < SKBPRIO_MAX_PRIORITY; i++) { - if (arg->count < arg->skip) { - arg->count++; - continue; - } - if (arg->fn(sch, i + 1, arg) < 0) { - arg->stop = 1; + if (!tc_qdisc_stats_dump(sch, i + 1, arg)) break; - } - arg->count++; } } |