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