Home
last modified time | relevance | path

Searched refs:idrinfo (Results 1 – 3 of 3) sorted by relevance

/linux-6.6.21/net/sched/
Dact_api.c375 struct tcf_idrinfo *idrinfo = p->idrinfo; in __tcf_action_put() local
377 if (refcount_dec_and_mutex_lock(&p->tcfa_refcnt, &idrinfo->lock)) { in __tcf_action_put()
380 idr_remove(&idrinfo->action_idr, p->tcfa_index); in __tcf_action_put()
381 mutex_unlock(&idrinfo->lock); in __tcf_action_put()
507 static int tcf_dump_walker(struct tcf_idrinfo *idrinfo, struct sk_buff *skb, in tcf_dump_walker() argument
514 struct idr *idr = &idrinfo->action_idr; in tcf_dump_walker()
519 mutex_lock(&idrinfo->lock); in tcf_dump_walker()
560 mutex_unlock(&idrinfo->lock); in tcf_dump_walker()
578 idr_remove(&p->idrinfo->action_idr, p->tcfa_index); in tcf_idr_release_unsafe()
586 static int tcf_del_walker(struct tcf_idrinfo *idrinfo, struct sk_buff *skb, in tcf_del_walker() argument
[all …]
Dact_ipt.c81 ipt_destroy_target(ipt->tcfi_t, a->idrinfo->net); in tcf_ipt_release()
/linux-6.6.21/include/net/
Dact_api.h27 struct tcf_idrinfo *idrinfo; member
144 struct tcf_idrinfo *idrinfo; member
154 tn->idrinfo = kmalloc(sizeof(*tn->idrinfo), GFP_KERNEL); in tc_action_net_init()
155 if (!tn->idrinfo) in tc_action_net_init()
158 tn->idrinfo->net = net; in tc_action_net_init()
159 mutex_init(&tn->idrinfo->lock); in tc_action_net_init()
160 idr_init(&tn->idrinfo->action_idr); in tc_action_net_init()
165 struct tcf_idrinfo *idrinfo);
176 tcf_idrinfo_destroy(tn->ops, tn->idrinfo); in tc_action_net_exit()
177 kfree(tn->idrinfo); in tc_action_net_exit()