Lines Matching refs:fnew
179 struct basic_filter *fnew;
194 fnew = kzalloc(sizeof(*fnew), GFP_KERNEL);
195 if (!fnew)
198 err = tcf_exts_init(&fnew->exts, net, TCA_BASIC_ACT, TCA_BASIC_POLICE);
204 err = idr_alloc_u32(&head->handle_idr, fnew, &handle,
207 err = idr_alloc_u32(&head->handle_idr, fnew, &handle,
212 fnew->handle = handle;
213 fnew->pf = alloc_percpu(struct tc_basic_pcnt);
214 if (!fnew->pf) {
219 err = basic_set_parms(net, tp, fnew, base, tb, tca[TCA_RATE], ovr,
223 idr_remove(&head->handle_idr, fnew->handle);
227 *arg = fnew;
230 idr_replace(&head->handle_idr, fnew, fnew->handle);
231 list_replace_rcu(&fold->link, &fnew->link);
236 list_add_rcu(&fnew->link, &head->flist);
241 free_percpu(fnew->pf);
242 tcf_exts_destroy(&fnew->exts);
243 kfree(fnew);