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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user