net: sched: cls_api: introduce tc_cls_bind_class() helper
authorZhengchao Shao <shaozhengchao@huawei.com>
Tue, 27 Sep 2022 12:48:54 +0000 (20:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 2 Oct 2022 15:07:17 +0000 (16:07 +0100)
commit402963e34a707e4a8f1854ed86437bc375d65766
tree3f4bd5827e667da6cadc8af8270d0c0313553971
parent4e6263ec8bc965f0bd1c24bb40694a38e382e7a9
net: sched: cls_api: introduce tc_cls_bind_class() helper

All the bind_class callback duplicate the same logic, this patch
introduces tc_cls_bind_class() helper for common usage.

Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/pkt_cls.h