2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

match: New function minimatch_matches_flow().

Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Ben Pfaff
2013-02-06 16:13:19 -08:00
parent 60a0b9e5e1
commit df40c1520e
5 changed files with 146 additions and 40 deletions

View File

@@ -668,8 +668,7 @@ find_match(const struct cls_table *table, const struct flow *flow)
struct cls_rule *rule;
HMAP_FOR_EACH_WITH_HASH (rule, hmap_node, hash, &table->rules) {
if (miniflow_equal_flow_in_minimask(&rule->match.flow, flow,
&table->mask)) {
if (minimatch_matches_flow(&rule->match, flow)) {
return rule;
}
}