Lines Matching refs:flow_table
115 int ovs_flow_tbl_count(const struct flow_table *table) in ovs_flow_tbl_count()
209 int ovs_flow_tbl_init(struct flow_table *table) in ovs_flow_tbl_init()
262 hlist_for_each_entry_safe(flow, n, head, flow_table.node[ver]) { in table_instance_destroy()
263 hlist_del_rcu(&flow->flow_table.node[ver]); in table_instance_destroy()
283 void ovs_flow_tbl_destroy(struct flow_table *table) in ovs_flow_tbl_destroy()
303 hlist_for_each_entry_rcu(flow, head, flow_table.node[ver]) { in ovs_flow_tbl_dump_next()
330 head = find_bucket(ti, flow->flow_table.hash); in table_instance_insert()
331 hlist_add_head_rcu(&flow->flow_table.node[ti->node_ver], head); in table_instance_insert()
365 flow_table.node[old_ver]) in flow_table_copy_flows()
386 int ovs_flow_tbl_flush(struct flow_table *flow_table) in ovs_flow_tbl_flush() argument
398 old_ti = ovsl_dereference(flow_table->ti); in ovs_flow_tbl_flush()
399 old_ufid_ti = ovsl_dereference(flow_table->ufid_ti); in ovs_flow_tbl_flush()
401 rcu_assign_pointer(flow_table->ti, new_ti); in ovs_flow_tbl_flush()
402 rcu_assign_pointer(flow_table->ufid_ti, new_ufid_ti); in ovs_flow_tbl_flush()
403 flow_table->last_rehash = jiffies; in ovs_flow_tbl_flush()
404 flow_table->count = 0; in ovs_flow_tbl_flush()
405 flow_table->ufid_count = 0; in ovs_flow_tbl_flush()
483 hlist_for_each_entry_rcu(flow, head, flow_table.node[ti->node_ver]) { in masked_flow_lookup()
484 if (flow->mask == mask && flow->flow_table.hash == hash && in masked_flow_lookup()
491 struct sw_flow *ovs_flow_tbl_lookup_stats(struct flow_table *tbl, in ovs_flow_tbl_lookup_stats()
509 struct sw_flow *ovs_flow_tbl_lookup(struct flow_table *tbl, in ovs_flow_tbl_lookup()
517 struct sw_flow *ovs_flow_tbl_lookup_exact(struct flow_table *tbl, in ovs_flow_tbl_lookup_exact()
556 struct sw_flow *ovs_flow_tbl_lookup_ufid(struct flow_table *tbl, in ovs_flow_tbl_lookup_ufid()
574 int ovs_flow_tbl_num_masks(const struct flow_table *table) in ovs_flow_tbl_num_masks()
592 static void flow_mask_remove(struct flow_table *tbl, struct sw_flow_mask *mask) in flow_mask_remove()
610 void ovs_flow_tbl_remove(struct flow_table *table, struct sw_flow *flow) in ovs_flow_tbl_remove()
616 hlist_del_rcu(&flow->flow_table.node[ti->node_ver]); in ovs_flow_tbl_remove()
651 static struct sw_flow_mask *flow_mask_find(const struct flow_table *tbl, in flow_mask_find()
667 static int flow_mask_insert(struct flow_table *tbl, struct sw_flow *flow, in flow_mask_insert()
690 static void flow_key_insert(struct flow_table *table, struct sw_flow *flow) in flow_key_insert()
695 flow->flow_table.hash = flow_hash(&flow->key, &flow->mask->range); in flow_key_insert()
714 static void flow_ufid_insert(struct flow_table *table, struct sw_flow *flow) in flow_ufid_insert()
736 int ovs_flow_tbl_insert(struct flow_table *table, struct sw_flow *flow, in ovs_flow_tbl_insert()