diff options
Diffstat (limited to 'net/openvswitch/flow_table.c')
-rw-r--r-- | net/openvswitch/flow_table.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/net/openvswitch/flow_table.c b/net/openvswitch/flow_table.c index f96ebd53c2cf..261a54e77503 100644 --- a/net/openvswitch/flow_table.c +++ b/net/openvswitch/flow_table.c | |||
@@ -429,7 +429,7 @@ static struct sw_flow *masked_flow_lookup(struct table_instance *ti, | |||
429 | return NULL; | 429 | return NULL; |
430 | } | 430 | } |
431 | 431 | ||
432 | struct sw_flow *ovs_flow_tbl_lookup(struct flow_table *tbl, | 432 | struct sw_flow *ovs_flow_tbl_lookup_stats(struct flow_table *tbl, |
433 | const struct sw_flow_key *key, | 433 | const struct sw_flow_key *key, |
434 | u32 *n_mask_hit) | 434 | u32 *n_mask_hit) |
435 | { | 435 | { |
@@ -447,6 +447,14 @@ struct sw_flow *ovs_flow_tbl_lookup(struct flow_table *tbl, | |||
447 | return NULL; | 447 | return NULL; |
448 | } | 448 | } |
449 | 449 | ||
450 | struct sw_flow *ovs_flow_tbl_lookup(struct flow_table *tbl, | ||
451 | const struct sw_flow_key *key) | ||
452 | { | ||
453 | u32 __always_unused n_mask_hit; | ||
454 | |||
455 | return ovs_flow_tbl_lookup_stats(tbl, key, &n_mask_hit); | ||
456 | } | ||
457 | |||
450 | int ovs_flow_tbl_num_masks(const struct flow_table *table) | 458 | int ovs_flow_tbl_num_masks(const struct flow_table *table) |
451 | { | 459 | { |
452 | struct sw_flow_mask *mask; | 460 | struct sw_flow_mask *mask; |