Home
last modified time | relevance | path

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

/include/net/
Dact_api.h149 int tc_action_net_init(struct net *net, struct tc_action_net *tn, in tc_action_net_init() argument
154 tn->idrinfo = kmalloc(sizeof(*tn->idrinfo), GFP_KERNEL); in tc_action_net_init()
155 if (!tn->idrinfo) in tc_action_net_init()
157 tn->ops = ops; 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()
174 struct tc_action_net *tn = net_generic(net, id); in tc_action_net_exit() local
176 tcf_idrinfo_destroy(tn->ops, tn->idrinfo); in tc_action_net_exit()
177 kfree(tn->idrinfo); in tc_action_net_exit()
[all …]