X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=blobdiff_plain;f=datapath%2Fflow_table.h;h=281d1da8d71cd25f6bf7e7ca4b2e7aaa5711ca3f;hp=ddf0c01e24147733bca5125dc7e7ff912827678d;hb=5604935e4e1cbc16611d2d97f50b717aa31e8ec5;hpb=e379e4d167e31d1cd5f7b86fff091a2e09ff6e45 diff --git a/datapath/flow_table.h b/datapath/flow_table.h index ddf0c01e2..281d1da8d 100644 --- a/datapath/flow_table.h +++ b/datapath/flow_table.h @@ -36,6 +36,11 @@ #include "flow.h" +struct mask_cache_entry { + u32 skb_hash; + u32 mask_index; +}; + struct table_instance { struct flex_array *buckets; unsigned int n_buckets; @@ -47,6 +52,7 @@ struct table_instance { struct flow_table { struct table_instance __rcu *ti; + struct mask_cache_entry __percpu *mask_cache; struct list_head mask_list; unsigned long last_rehash; unsigned int count; @@ -72,8 +78,9 @@ int ovs_flow_tbl_num_masks(const struct flow_table *table); struct sw_flow *ovs_flow_tbl_dump_next(struct table_instance *table, u32 *bucket, u32 *idx); struct sw_flow *ovs_flow_tbl_lookup_stats(struct flow_table *, - const struct sw_flow_key *, - u32 *n_mask_hit); + const struct sw_flow_key *, + u32 skb_hash, + u32 *n_mask_hit); struct sw_flow *ovs_flow_tbl_lookup(struct flow_table *, const struct sw_flow_key *);