Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/net/sched/
Dcls_flow.c394 struct flow_filter *fold, *fnew; in flow_change() local
433 fnew = kzalloc(sizeof(*fnew), GFP_KERNEL); in flow_change()
434 if (!fnew) in flow_change()
437 err = tcf_em_tree_validate(tp, tb[TCA_FLOW_EMATCHES], &fnew->ematches); in flow_change()
441 err = tcf_exts_init(&fnew->exts, net, TCA_FLOW_ACT, TCA_FLOW_POLICE); in flow_change()
445 err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &fnew->exts, ovr, in flow_change()
457 fnew->tp = fold->tp; in flow_change()
458 fnew->handle = fold->handle; in flow_change()
459 fnew->nkeys = fold->nkeys; in flow_change()
460 fnew->keymask = fold->keymask; in flow_change()
[all …]
Dcls_basic.c179 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], ovr, in basic_change()
[all …]
Dcls_fw.c258 struct fw_filter *pfp, *fnew; in fw_change() local
264 fnew = kzalloc(sizeof(struct fw_filter), GFP_KERNEL); in fw_change()
265 if (!fnew) in fw_change()
268 fnew->id = f->id; in fw_change()
269 fnew->res = f->res; in fw_change()
270 fnew->ifindex = f->ifindex; in fw_change()
271 fnew->tp = f->tp; in fw_change()
273 err = tcf_exts_init(&fnew->exts, net, TCA_FW_ACT, in fw_change()
276 kfree(fnew); in fw_change()
280 err = fw_set_parms(net, tp, fnew, tb, tca, base, ovr, extack); in fw_change()
[all …]
Dcls_flower.c1850 struct cls_fl_filter *fnew, in fl_check_assign_mask() argument
1863 fnew->mask = rhashtable_lookup_get_insert_fast(&head->ht, in fl_check_assign_mask()
1866 if (!fnew->mask) { in fl_check_assign_mask()
1880 fnew->mask = newmask; in fl_check_assign_mask()
1882 } else if (IS_ERR(fnew->mask)) { in fl_check_assign_mask()
1883 ret = PTR_ERR(fnew->mask); in fl_check_assign_mask()
1884 } else if (fold && fold->mask != fnew->mask) { in fl_check_assign_mask()
1886 } else if (!refcount_inc_not_zero(&fnew->mask->refcnt)) { in fl_check_assign_mask()
1937 static int fl_ht_insert_unique(struct cls_fl_filter *fnew, in fl_ht_insert_unique() argument
1941 struct fl_flow_mask *mask = fnew->mask; in fl_ht_insert_unique()
[all …]
/kernel/linux/linux-5.10/drivers/hv/
Dchannel_mgmt.c549 bool fnew = true; in vmbus_process_offer() local
595 fnew = false; in vmbus_process_offer()
600 if (fnew) { in vmbus_process_offer()
651 wq = fnew ? vmbus_connection.handle_primary_chan_wq : in vmbus_process_offer()