Lines Matching refs:tn
148 int tc_action_net_init(struct net *net, struct tc_action_net *tn, in tc_action_net_init() argument
153 tn->idrinfo = kmalloc(sizeof(*tn->idrinfo), GFP_KERNEL); in tc_action_net_init()
154 if (!tn->idrinfo) in tc_action_net_init()
156 tn->ops = ops; 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()
173 struct tc_action_net *tn = net_generic(net, id); in tc_action_net_exit() local
175 tcf_idrinfo_destroy(tn->ops, tn->idrinfo); in tc_action_net_exit()
176 kfree(tn->idrinfo); in tc_action_net_exit()
181 int tcf_generic_walker(struct tc_action_net *tn, struct sk_buff *skb,
185 int tcf_idr_search(struct tc_action_net *tn, struct tc_action **a, u32 index);
186 int tcf_idr_create(struct tc_action_net *tn, u32 index, struct nlattr *est,
189 int tcf_idr_create_from_flags(struct tc_action_net *tn, u32 index,
194 void tcf_idr_cleanup(struct tc_action_net *tn, u32 index);
195 int tcf_idr_check_alloc(struct tc_action_net *tn, u32 *index,