diff options
author | Zhengchao Shao <shaozhengchao@huawei.com> | 2022-09-16 10:02:44 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-09-20 15:54:13 -0700 |
commit | 5508ff7cf3750f4a2ab1354754859bb949c0d692 (patch) | |
tree | 5edce42504ef9d82cf652e383447c4cba2d3abde /net/sched/cls_basic.c | |
parent | fe0df81df51eb932a83e0c3844106ac6c0f914db (diff) |
net/sched: use tc_cls_stats_dump() in filter
use tc_cls_stats_dump() in filter.
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Reviewed-by: Jamal Hadi Salim <jhs@mojatatu.com>
Reviewed-by: Victor Nogueira <victor@mojatatu.com>
Tested-by: Victor Nogueira <victor@mojatatu.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/sched/cls_basic.c')
-rw-r--r-- | net/sched/cls_basic.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/net/sched/cls_basic.c b/net/sched/cls_basic.c index 8158fc9ee1ab..d9fbaa0fbe8b 100644 --- a/net/sched/cls_basic.c +++ b/net/sched/cls_basic.c @@ -251,15 +251,8 @@ static void basic_walk(struct tcf_proto *tp, struct tcf_walker *arg, struct basic_filter *f; list_for_each_entry(f, &head->flist, link) { - if (arg->count < arg->skip) - goto skip; - - if (arg->fn(tp, f, arg) < 0) { - arg->stop = 1; + if (!tc_cls_stats_dump(tp, arg, f)) break; - } -skip: - arg->count++; } } |