Home
last modified time | relevance | path

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

/net/openvswitch/
Dflow_table.c276 int err, ma_count = READ_ONCE(ma->count); in tbl_mask_array_add_mask() local
278 if (ma_count >= ma->max) { in tbl_mask_array_add_mask()
292 BUG_ON(ovsl_dereference(ma->masks[ma_count])); in tbl_mask_array_add_mask()
294 rcu_assign_pointer(ma->masks[ma_count], new); in tbl_mask_array_add_mask()
295 WRITE_ONCE(ma->count, ma_count + 1); in tbl_mask_array_add_mask()
304 int i, ma_count = READ_ONCE(ma->count); in tbl_mask_array_del_mask() local
307 for (i = 0; i < ma_count; i++) { in tbl_mask_array_del_mask()
316 WRITE_ONCE(ma->count, ma_count - 1); in tbl_mask_array_del_mask()
318 rcu_assign_pointer(ma->masks[i], ma->masks[ma_count - 1]); in tbl_mask_array_del_mask()
319 RCU_INIT_POINTER(ma->masks[ma_count - 1], NULL); in tbl_mask_array_del_mask()
[all …]