Lines Matching refs:fnew
181 struct basic_filter *fnew;
196 fnew = kzalloc(sizeof(*fnew), GFP_KERNEL);
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(struct tc_basic_pcnt);
216 if (!fnew->pf) {
221 err = basic_set_parms(net, tp, fnew, base, tb, tca[TCA_RATE], flags,
225 idr_remove(&head->handle_idr, fnew->handle);
229 *arg = fnew;
232 idr_replace(&head->handle_idr, fnew, fnew->handle);
233 list_replace_rcu(&fold->link, &fnew->link);
238 list_add_rcu(&fnew->link, &head->flist);
243 free_percpu(fnew->pf);
244 tcf_exts_destroy(&fnew->exts);
245 kfree(fnew);