diff options
| author | Zhengchao Shao <[email protected]> | 2022-09-27 12:48:55 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2022-10-02 15:07:17 +0000 |
| commit | cc9039a1349425516eca369183c5a8d2f139cb1b (patch) | |
| tree | 63a87fa2a51b9e7b6cc77581c865a7f37927f679 /net/sched/cls_basic.c | |
| parent | net: sched: cls_api: introduce tc_cls_bind_class() helper (diff) | |
| download | kernel-cc9039a1349425516eca369183c5a8d2f139cb1b.tar.gz kernel-cc9039a1349425516eca369183c5a8d2f139cb1b.zip | |
net: sched: use tc_cls_bind_class() in filter
Use tc_cls_bind_class() in filter.
Signed-off-by: Zhengchao Shao <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/sched/cls_basic.c')
| -rw-r--r-- | net/sched/cls_basic.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/net/sched/cls_basic.c b/net/sched/cls_basic.c index d9fbaa0fbe8b..d229ce99e554 100644 --- a/net/sched/cls_basic.c +++ b/net/sched/cls_basic.c @@ -261,12 +261,7 @@ static void basic_bind_class(void *fh, u32 classid, unsigned long cl, void *q, { struct basic_filter *f = fh; - if (f && f->res.classid == classid) { - if (cl) - __tcf_bind_filter(q, &f->res, base); - else - __tcf_unbind_filter(q, &f->res); - } + tc_cls_bind_class(classid, cl, q, &f->res, base); } static int basic_dump(struct net *net, struct tcf_proto *tp, void *fh, |
