diff options
author | Zhengchao Shao <shaozhengchao@huawei.com> | 2022-09-27 20:48:55 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-10-02 16:07:17 +0100 |
commit | cc9039a1349425516eca369183c5a8d2f139cb1b (patch) | |
tree | 63a87fa2a51b9e7b6cc77581c865a7f37927f679 /net/sched/cls_rsvp.h | |
parent | 402963e34a707e4a8f1854ed86437bc375d65766 (diff) |
net: sched: use tc_cls_bind_class() in filter
Use tc_cls_bind_class() in filter.
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/cls_rsvp.h')
-rw-r--r-- | net/sched/cls_rsvp.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/net/sched/cls_rsvp.h b/net/sched/cls_rsvp.h index fb60f2c2c325..b00a7dbd0587 100644 --- a/net/sched/cls_rsvp.h +++ b/net/sched/cls_rsvp.h @@ -733,12 +733,7 @@ static void rsvp_bind_class(void *fh, u32 classid, unsigned long cl, void *q, { struct rsvp_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 struct tcf_proto_ops RSVP_OPS __read_mostly = { |