aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/cls_basic.c
diff options
context:
space:
mode:
authorZhengchao Shao <[email protected]>2022-09-16 02:02:44 +0000
committerJakub Kicinski <[email protected]>2022-09-20 22:54:13 +0000
commit5508ff7cf3750f4a2ab1354754859bb949c0d692 (patch)
tree5edce42504ef9d82cf652e383447c4cba2d3abde /net/sched/cls_basic.c
parentnet/sched: cls_api: add helper for tc cls walker stats dump (diff)
downloadkernel-5508ff7cf3750f4a2ab1354754859bb949c0d692.tar.gz
kernel-5508ff7cf3750f4a2ab1354754859bb949c0d692.zip
net/sched: use tc_cls_stats_dump() in filter
use tc_cls_stats_dump() in filter. Signed-off-by: Zhengchao Shao <[email protected]> Reviewed-by: Jamal Hadi Salim <[email protected]> Reviewed-by: Victor Nogueira <[email protected]> Tested-by: Victor Nogueira <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/sched/cls_basic.c')
-rw-r--r--net/sched/cls_basic.c9
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++;
}
}