Lines Matching refs:new
803 struct tc_u_knode *new; in u32_init_knode() local
805 new = kzalloc(struct_size(new, sel.keys, s->nkeys), GFP_KERNEL); in u32_init_knode()
806 if (!new) in u32_init_knode()
809 RCU_INIT_POINTER(new->next, n->next); in u32_init_knode()
810 new->handle = n->handle; in u32_init_knode()
811 RCU_INIT_POINTER(new->ht_up, n->ht_up); in u32_init_knode()
813 new->ifindex = n->ifindex; in u32_init_knode()
814 new->fshift = n->fshift; in u32_init_knode()
815 new->flags = n->flags; in u32_init_knode()
816 RCU_INIT_POINTER(new->ht_down, ht); in u32_init_knode()
823 new->pf = n->pf; in u32_init_knode()
827 new->val = n->val; in u32_init_knode()
828 new->mask = n->mask; in u32_init_knode()
830 new->pcpu_success = n->pcpu_success; in u32_init_knode()
832 memcpy(&new->sel, s, struct_size(s, keys, s->nkeys)); in u32_init_knode()
834 if (tcf_exts_init(&new->exts, net, TCA_U32_ACT, TCA_U32_POLICE)) { in u32_init_knode()
835 kfree(new); in u32_init_knode()
843 return new; in u32_init_knode()
885 struct tc_u_knode *new; in u32_change() local
898 new = u32_init_knode(net, tp, n); in u32_change()
899 if (!new) in u32_change()
902 err = u32_set_parms(net, tp, base, new, tb, in u32_change()
906 __u32_destroy_key(new); in u32_change()
910 err = u32_replace_hw_knode(tp, new, flags, extack); in u32_change()
912 __u32_destroy_key(new); in u32_change()
916 if (!tc_in_hw(new->flags)) in u32_change()
917 new->flags |= TCA_CLS_FLAGS_NOT_IN_HW; in u32_change()
919 u32_replace_knode(tp, tp_c, new); in u32_change()