X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=datapath%2Fflow_table.c;h=29cfcbe862aea5de5f8ed8d39bb86f74899a2635;hb=4f88b5e5cf2f1da2afe62e339327b6878168875a;hp=4804db0cd071cd1b46116c6502344484a0a7ecba;hpb=a6363cfddb91620c9325e2812ae5af96a8d7f127;p=sliver-openvswitch.git diff --git a/datapath/flow_table.c b/datapath/flow_table.c index 4804db0cd..29cfcbe86 100644 --- a/datapath/flow_table.c +++ b/datapath/flow_table.c @@ -434,7 +434,7 @@ static struct sw_flow *masked_flow_lookup(struct table_instance *ti, return NULL; } -struct sw_flow *ovs_flow_tbl_lookup(struct flow_table *tbl, +struct sw_flow *ovs_flow_tbl_lookup_stats(struct flow_table *tbl, const struct sw_flow_key *key, u32 *n_mask_hit) { @@ -452,6 +452,14 @@ struct sw_flow *ovs_flow_tbl_lookup(struct flow_table *tbl, return NULL; } +struct sw_flow *ovs_flow_tbl_lookup(struct flow_table *tbl, + const struct sw_flow_key *key) +{ + u32 __always_unused n_mask_hit; + + return ovs_flow_tbl_lookup_stats(tbl, key, &n_mask_hit); +} + int ovs_flow_tbl_num_masks(const struct flow_table *table) { struct sw_flow_mask *mask;