Lines Matching defs:new
418 * shared between the old and new copies to allow readers to
817 struct tc_u_knode *new;
819 new = kzalloc(struct_size(new, sel.keys, s->nkeys), GFP_KERNEL);
820 if (!new)
823 RCU_INIT_POINTER(new->next, n->next);
824 new->handle = n->handle;
825 RCU_INIT_POINTER(new->ht_up, n->ht_up);
827 new->ifindex = n->ifindex;
828 new->fshift = n->fshift;
829 new->flags = n->flags;
830 RCU_INIT_POINTER(new->ht_down, ht);
837 new->pf = n->pf;
841 new->val = n->val;
842 new->mask = n->mask;
844 new->pcpu_success = n->pcpu_success;
846 memcpy(&new->sel, s, struct_size(s, keys, s->nkeys));
848 if (tcf_exts_init(&new->exts, net, TCA_U32_ACT, TCA_U32_POLICE)) {
849 kfree(new);
857 return new;
899 struct tc_u_knode *new;
912 new = u32_init_knode(net, tp, n);
913 if (!new)
916 err = u32_set_parms(net, tp, new, tb, tca[TCA_RATE],
917 flags, new->flags, extack);
920 __u32_destroy_key(new);
924 u32_bind_filter(tp, new, base, tb);
926 err = u32_replace_hw_knode(tp, new, flags, extack);
928 u32_unbind_filter(tp, new, tb);
937 __u32_destroy_key(new);
941 if (!tc_in_hw(new->flags))
942 new->flags |= TCA_CLS_FLAGS_NOT_IN_HW;
944 u32_replace_knode(tp, tp_c, new);
1026 /* At this point, we need to derive the new handle that will be used to
1061 * 0x60000000, then pick a new nodeid from the pool of IDs
1289 /* When adding filters to a new dev, try to offload the