Lines Matching refs:newmask
2108 struct fl_flow_mask *newmask; in fl_create_new_mask() local
2111 newmask = kzalloc(sizeof(*newmask), GFP_KERNEL); in fl_create_new_mask()
2112 if (!newmask) in fl_create_new_mask()
2115 fl_mask_copy(newmask, mask); in fl_create_new_mask()
2117 if ((newmask->key.tp_range.tp_min.dst && in fl_create_new_mask()
2118 newmask->key.tp_range.tp_max.dst) || in fl_create_new_mask()
2119 (newmask->key.tp_range.tp_min.src && in fl_create_new_mask()
2120 newmask->key.tp_range.tp_max.src)) in fl_create_new_mask()
2121 newmask->flags |= TCA_FLOWER_MASK_FLAGS_RANGE; in fl_create_new_mask()
2123 err = fl_init_mask_hashtable(newmask); in fl_create_new_mask()
2127 fl_init_dissector(&newmask->dissector, &newmask->key); in fl_create_new_mask()
2129 INIT_LIST_HEAD_RCU(&newmask->filters); in fl_create_new_mask()
2131 refcount_set(&newmask->refcnt, 1); in fl_create_new_mask()
2133 &newmask->ht_node, mask_ht_params); in fl_create_new_mask()
2138 list_add_tail_rcu(&newmask->list, &head->masks); in fl_create_new_mask()
2141 return newmask; in fl_create_new_mask()
2144 rhashtable_destroy(&newmask->ht); in fl_create_new_mask()
2146 kfree(newmask); in fl_create_new_mask()
2156 struct fl_flow_mask *newmask; in fl_check_assign_mask() local
2176 newmask = fl_create_new_mask(head, mask); in fl_check_assign_mask()
2177 if (IS_ERR(newmask)) { in fl_check_assign_mask()
2178 ret = PTR_ERR(newmask); in fl_check_assign_mask()
2182 fnew->mask = newmask; in fl_check_assign_mask()