Home
last modified time | relevance | path

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

/net/openvswitch/
Dflow_table.c277 int err, ma_count = READ_ONCE(ma->count); in tbl_mask_array_add_mask() local
279 if (ma_count >= ma->max) { in tbl_mask_array_add_mask()
293 BUG_ON(ovsl_dereference(ma->masks[ma_count])); in tbl_mask_array_add_mask()
295 rcu_assign_pointer(ma->masks[ma_count], new); in tbl_mask_array_add_mask()
296 WRITE_ONCE(ma->count, ma_count + 1); in tbl_mask_array_add_mask()
305 int i, ma_count = READ_ONCE(ma->count); in tbl_mask_array_del_mask() local
308 for (i = 0; i < ma_count; i++) { in tbl_mask_array_del_mask()
317 WRITE_ONCE(ma->count, ma_count - 1); in tbl_mask_array_del_mask()
319 rcu_assign_pointer(ma->masks[i], ma->masks[ma_count - 1]); in tbl_mask_array_del_mask()
320 RCU_INIT_POINTER(ma->masks[ma_count - 1], NULL); in tbl_mask_array_del_mask()
[all …]