net: sched: act_api: implement generic walker and search for tc action
authorZhengchao Shao <shaozhengchao@huawei.com>
Thu, 8 Sep 2022 04:14:34 +0000 (12:14 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Sep 2022 07:24:41 +0000 (08:24 +0100)
commitfae52d9323384c32283777e893bf85293588ce62
treeac9b1bb3c7475182bcd8bb6461ebeab3a4bea131
parentacd0a7ab6334f35c3720120d53f79eb8e9b3ac2e
net: sched: act_api: implement generic walker and search for tc action

Being able to get tc_action_net by using net_id stored in tc_action_ops
and execute the generic walk/search function, add __tcf_generic_walker()
and __tcf_idr_search() helpers.

Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_api.c