• Home
  • Raw
  • Download

Lines Matching refs:new

219 	struct mask_array *new;  in tbl_mask_array_alloc()  local
222 new = kzalloc(sizeof(struct mask_array) + in tbl_mask_array_alloc()
225 if (!new) in tbl_mask_array_alloc()
228 new->masks_usage_zero_cntr = (u64 *)((u8 *)new + in tbl_mask_array_alloc()
233 new->masks_usage_stats = __alloc_percpu(sizeof(struct mask_array_stats) + in tbl_mask_array_alloc()
236 if (!new->masks_usage_stats) { in tbl_mask_array_alloc()
237 kfree(new); in tbl_mask_array_alloc()
241 new->count = 0; in tbl_mask_array_alloc()
242 new->max = size; in tbl_mask_array_alloc()
244 return new; in tbl_mask_array_alloc()
250 struct mask_array *new; in tbl_mask_array_realloc() local
252 new = tbl_mask_array_alloc(size); in tbl_mask_array_realloc()
253 if (!new) in tbl_mask_array_realloc()
262 new->masks[new->count++] = old->masks[i]; in tbl_mask_array_realloc()
267 rcu_assign_pointer(tbl->mask_array, new); in tbl_mask_array_realloc()
273 struct sw_flow_mask *new) in tbl_mask_array_add_mask() argument
294 rcu_assign_pointer(ma->masks[ma_count], new); in tbl_mask_array_add_mask()
364 struct mask_cache *new; in tbl_mask_cache_alloc() local
373 new = kzalloc(sizeof(*new), GFP_KERNEL); in tbl_mask_cache_alloc()
374 if (!new) in tbl_mask_cache_alloc()
377 new->cache_size = size; in tbl_mask_cache_alloc()
378 if (new->cache_size > 0) { in tbl_mask_cache_alloc()
380 new->cache_size), in tbl_mask_cache_alloc()
383 kfree(new); in tbl_mask_cache_alloc()
388 new->mask_cache = cache; in tbl_mask_cache_alloc()
389 return new; in tbl_mask_cache_alloc()
394 struct mask_cache *new; in ovs_flow_tbl_masks_cache_resize() local
403 new = tbl_mask_cache_alloc(size); in ovs_flow_tbl_masks_cache_resize()
404 if (!new) in ovs_flow_tbl_masks_cache_resize()
407 rcu_assign_pointer(table->mask_cache, new); in ovs_flow_tbl_masks_cache_resize()
579 struct table_instance *new, bool ufid) in flow_table_copy_flows() argument
585 new->node_ver = !old_ver; in flow_table_copy_flows()
596 ufid_table_instance_insert(new, flow); in flow_table_copy_flows()
601 table_instance_insert(new, flow); in flow_table_copy_flows()
1009 const struct sw_flow_mask *new) in flow_mask_insert() argument
1013 mask = flow_mask_find(tbl, new); in flow_mask_insert()
1019 mask->key = new->key; in flow_mask_insert()
1020 mask->range = new->range; in flow_mask_insert()
1111 struct mask_array *new; in ovs_flow_masks_rebalance() local
1173 new = tbl_mask_array_alloc(ma->max); in ovs_flow_masks_rebalance()
1174 if (!new) in ovs_flow_masks_rebalance()
1181 new->masks[new->count++] = ma->masks[index]; in ovs_flow_masks_rebalance()
1184 rcu_assign_pointer(table->mask_array, new); in ovs_flow_masks_rebalance()