Lines Matching defs:tbl
248 static int tbl_mask_array_realloc(struct flow_table *tbl, int size)
257 old = ovsl_dereference(tbl->mask_array);
268 rcu_assign_pointer(tbl->mask_array, new);
273 static int tbl_mask_array_add_mask(struct flow_table *tbl,
276 struct mask_array *ma = ovsl_dereference(tbl->mask_array);
280 err = tbl_mask_array_realloc(tbl, ma->max +
285 ma = ovsl_dereference(tbl->mask_array);
301 static void tbl_mask_array_del_mask(struct flow_table *tbl,
304 struct mask_array *ma = ovsl_dereference(tbl->mask_array);
327 tbl_mask_array_realloc(tbl, ma->max / 2);
334 static void flow_mask_remove(struct flow_table *tbl, struct sw_flow_mask *mask)
345 tbl_mask_array_del_mask(tbl, mask);
730 static struct sw_flow *flow_lookup(struct flow_table *tbl,
786 struct sw_flow *ovs_flow_tbl_lookup_stats(struct flow_table *tbl,
792 struct mask_cache *mc = rcu_dereference(tbl->mask_cache);
793 struct mask_array *ma = rcu_dereference(tbl->mask_array);
794 struct table_instance *ti = rcu_dereference(tbl->ti);
806 return flow_lookup(tbl, ti, ma, key, n_mask_hit, &cache,
827 flow = flow_lookup(tbl, ti, ma, key, n_mask_hit,
841 flow = flow_lookup(tbl, ti, ma, key, n_mask_hit, n_cache_hit,
850 struct sw_flow *ovs_flow_tbl_lookup(struct flow_table *tbl,
853 struct table_instance *ti = rcu_dereference_ovsl(tbl->ti);
854 struct mask_array *ma = rcu_dereference_ovsl(tbl->mask_array);
865 flow = flow_lookup(tbl, ti, ma, key, &n_mask_hit, &n_cache_hit, &index);
870 struct sw_flow *ovs_flow_tbl_lookup_exact(struct flow_table *tbl,
873 struct mask_array *ma = ovsl_dereference(tbl->mask_array);
878 struct table_instance *ti = rcu_dereference_ovsl(tbl->ti);
920 struct sw_flow *ovs_flow_tbl_lookup_ufid(struct flow_table *tbl,
923 struct table_instance *ti = rcu_dereference_ovsl(tbl->ufid_ti);
990 static struct sw_flow_mask *flow_mask_find(const struct flow_table *tbl,
996 ma = ovsl_dereference(tbl->mask_array);
1009 static int flow_mask_insert(struct flow_table *tbl, struct sw_flow *flow,
1014 mask = flow_mask_find(tbl, new);
1024 if (tbl_mask_array_add_mask(tbl, mask)) {