Lines Matching defs:fnew
181 struct basic_filter *fnew;
196 fnew = kzalloc_obj(*fnew, GFP_KERNEL_ACCOUNT);
197 if (!fnew)
200 err = tcf_exts_init(&fnew->exts, net, TCA_BASIC_ACT, TCA_BASIC_POLICE);
206 err = idr_alloc_u32(&head->handle_idr, fnew, &handle,
209 err = idr_alloc_u32(&head->handle_idr, fnew, &handle,
214 fnew->handle = handle;
215 fnew->pf = alloc_percpu_gfp(struct tc_basic_pcnt, GFP_KERNEL_ACCOUNT);
216 if (!fnew->pf) {
219 idr_remove(&head->handle_idr, fnew->handle);
223 err = basic_set_parms(net, tp, fnew, base, tb, tca[TCA_RATE], flags,
227 idr_remove(&head->handle_idr, fnew->handle);
231 *arg = fnew;
234 idr_replace(&head->handle_idr, fnew, fnew->handle);
235 list_replace_rcu(&fold->link, &fnew->link);
240 list_add_rcu(&fnew->link, &head->flist);
245 free_percpu(fnew->pf);
246 tcf_exts_destroy(&fnew->exts);
247 kfree(fnew);