@@ -190,6 +190,8 @@ int tcf_generic_walker(struct tc_action_net *tn, struct sk_buff *skb,
const struct tc_action_ops *ops,
struct netlink_ext_ack *extack);
int tcf_idr_search(struct tc_action_net *tn, struct tc_action **a, u32 index);
+int __tcf_idr_search(struct net *net, const struct tc_action_ops *ops,
+ struct tc_action **a, u32 index);
int tcf_idr_create(struct tc_action_net *tn, u32 index, struct nlattr *est,
struct tc_action **a, const struct tc_action_ops *ops,
int bind, bool cpustats, u32 flags);
@@ -690,9 +690,8 @@ static int __tcf_generic_walker(struct net *net, struct sk_buff *skb,
return tcf_generic_walker(tn, skb, cb, type, ops, extack);
}
-static int __tcf_idr_search(struct net *net,
- const struct tc_action_ops *ops,
- struct tc_action **a, u32 index)
+int __tcf_idr_search(struct net *net, const struct tc_action_ops *ops,
+ struct tc_action **a, u32 index)
{
struct tc_action_net *tn = net_generic(net, ops->net_id);
@@ -701,6 +700,7 @@ static int __tcf_idr_search(struct net *net,
return tcf_idr_search(tn, a, index);
}
+EXPORT_SYMBOL(__tcf_idr_search);
static int tcf_idr_delete_index(struct tcf_idrinfo *idrinfo, u32 index)
{