Lines Matching refs:mc
348 static void __mask_cache_destroy(struct mask_cache *mc) in __mask_cache_destroy() argument
350 free_percpu(mc->mask_cache); in __mask_cache_destroy()
351 kfree(mc); in __mask_cache_destroy()
356 struct mask_cache *mc = container_of(rcu, struct mask_cache, rcu); in mask_cache_rcu_cb() local
358 __mask_cache_destroy(mc); in mask_cache_rcu_cb()
393 struct mask_cache *mc = rcu_dereference_ovsl(table->mask_cache); in ovs_flow_tbl_masks_cache_resize() local
396 if (size == mc->cache_size) in ovs_flow_tbl_masks_cache_resize()
408 call_rcu(&mc->rcu, mask_cache_rcu_cb); in ovs_flow_tbl_masks_cache_resize()
416 struct mask_cache *mc; in ovs_flow_tbl_init() local
419 mc = tbl_mask_cache_alloc(MC_DEFAULT_HASH_ENTRIES); in ovs_flow_tbl_init()
420 if (!mc) in ovs_flow_tbl_init()
438 rcu_assign_pointer(table->mask_cache, mc); in ovs_flow_tbl_init()
449 __mask_cache_destroy(mc); in ovs_flow_tbl_init()
519 struct mask_cache *mc = rcu_dereference_raw(table->mask_cache); in ovs_flow_tbl_destroy() local
522 call_rcu(&mc->rcu, mask_cache_rcu_cb); in ovs_flow_tbl_destroy()
791 struct mask_cache *mc = rcu_dereference(tbl->mask_cache); in ovs_flow_tbl_lookup_stats() local
801 if (unlikely(!skb_hash || mc->cache_size == 0)) { in ovs_flow_tbl_lookup_stats()
817 entries = this_cpu_ptr(mc->mask_cache); in ovs_flow_tbl_lookup_stats()
821 int index = hash & (mc->cache_size - 1); in ovs_flow_tbl_lookup_stats()
946 struct mask_cache *mc = rcu_dereference_ovsl(table->mask_cache); in ovs_flow_tbl_masks_cache_size() local
948 return READ_ONCE(mc->cache_size); in ovs_flow_tbl_masks_cache_size()