aboutsummaryrefslogtreecommitdiffstats
path: root/net/openvswitch/flow_table.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/openvswitch/flow_table.h')
-rw-r--r--net/openvswitch/flow_table.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/net/openvswitch/flow_table.h b/net/openvswitch/flow_table.h
index 309fa6415689..616eda10d955 100644
--- a/net/openvswitch/flow_table.h
+++ b/net/openvswitch/flow_table.h
@@ -47,9 +47,11 @@ struct table_instance {
47 47
48struct flow_table { 48struct flow_table {
49 struct table_instance __rcu *ti; 49 struct table_instance __rcu *ti;
50 struct table_instance __rcu *ufid_ti;
50 struct list_head mask_list; 51 struct list_head mask_list;
51 unsigned long last_rehash; 52 unsigned long last_rehash;
52 unsigned int count; 53 unsigned int count;
54 unsigned int ufid_count;
53}; 55};
54 56
55extern struct kmem_cache *flow_stats_cache; 57extern struct kmem_cache *flow_stats_cache;
@@ -78,8 +80,10 @@ struct sw_flow *ovs_flow_tbl_lookup(struct flow_table *,
78 const struct sw_flow_key *); 80 const struct sw_flow_key *);
79struct sw_flow *ovs_flow_tbl_lookup_exact(struct flow_table *tbl, 81struct sw_flow *ovs_flow_tbl_lookup_exact(struct flow_table *tbl,
80 const struct sw_flow_match *match); 82 const struct sw_flow_match *match);
81bool ovs_flow_cmp_unmasked_key(const struct sw_flow *flow, 83struct sw_flow *ovs_flow_tbl_lookup_ufid(struct flow_table *,
82 const struct sw_flow_match *match); 84 const struct sw_flow_id *);
85
86bool ovs_flow_cmp(const struct sw_flow *, const struct sw_flow_match *);
83 87
84void ovs_flow_mask_key(struct sw_flow_key *dst, const struct sw_flow_key *src, 88void ovs_flow_mask_key(struct sw_flow_key *dst, const struct sw_flow_key *src,
85 const struct sw_flow_mask *mask); 89 const struct sw_flow_mask *mask);