X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=blobdiff_plain;f=datapath%2Fflow_table.h;h=ddf0c01e24147733bca5125dc7e7ff912827678d;hp=4db5f78b6f81ac1925380414a10ca340cead1540;hb=e379e4d167e31d1cd5f7b86fff091a2e09ff6e45;hpb=0585f7a88c7773737095e0eb2cf0f1222c0fed2e diff --git a/datapath/flow_table.h b/datapath/flow_table.h index 4db5f78b6..ddf0c01e2 100644 --- a/datapath/flow_table.h +++ b/datapath/flow_table.h @@ -52,6 +52,8 @@ struct flow_table { unsigned int count; }; +extern struct kmem_cache *flow_stats_cache; + int ovs_flow_init(void); void ovs_flow_exit(void); @@ -66,8 +68,12 @@ int ovs_flow_tbl_flush(struct flow_table *flow_table); int ovs_flow_tbl_insert(struct flow_table *table, struct sw_flow *flow, struct sw_flow_mask *mask); void ovs_flow_tbl_remove(struct flow_table *table, struct sw_flow *flow); +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); struct sw_flow *ovs_flow_tbl_lookup(struct flow_table *, const struct sw_flow_key *);