Home
last modified time | relevance | path

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

/Linux-v6.1/net/sched/
Dact_api.c381 struct tcf_idrinfo *idrinfo = p->idrinfo; in __tcf_action_put() local
383 if (refcount_dec_and_mutex_lock(&p->tcfa_refcnt, &idrinfo->lock)) { in __tcf_action_put()
386 idr_remove(&idrinfo->action_idr, p->tcfa_index); in __tcf_action_put()
387 mutex_unlock(&idrinfo->lock); in __tcf_action_put()
513 static int tcf_dump_walker(struct tcf_idrinfo *idrinfo, struct sk_buff *skb, in tcf_dump_walker() argument
520 struct idr *idr = &idrinfo->action_idr; in tcf_dump_walker()
525 mutex_lock(&idrinfo->lock); in tcf_dump_walker()
564 mutex_unlock(&idrinfo->lock); in tcf_dump_walker()
582 idr_remove(&p->idrinfo->action_idr, p->tcfa_index); in tcf_idr_release_unsafe()
590 static int tcf_del_walker(struct tcf_idrinfo *idrinfo, struct sk_buff *skb, in tcf_del_walker() argument
[all …]
Dact_ipt.c79 ipt_destroy_target(ipt->tcfi_t, a->idrinfo->net); in tcf_ipt_release()
/Linux-v6.1/include/net/
Dact_api.h27 struct tcf_idrinfo *idrinfo; member
143 struct tcf_idrinfo *idrinfo; member
153 tn->idrinfo = kmalloc(sizeof(*tn->idrinfo), GFP_KERNEL); in tc_action_net_init()
154 if (!tn->idrinfo) in tc_action_net_init()
157 tn->idrinfo->net = net; in tc_action_net_init()
158 mutex_init(&tn->idrinfo->lock); in tc_action_net_init()
159 idr_init(&tn->idrinfo->action_idr); in tc_action_net_init()
164 struct tcf_idrinfo *idrinfo);
175 tcf_idrinfo_destroy(tn->ops, tn->idrinfo); in tc_action_net_exit()
176 kfree(tn->idrinfo); in tc_action_net_exit()