X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fofproto.c;h=727f39605198dc388bdb24ea720b0ed4af797a53;hb=48c3de13bee26106d8e708600904f2b20bd08818;hp=5bdf1b7d0d3ae09816d47f790392d8077a443ae2;hpb=fbb2ea0b5bebaae691ce6ac4b3a2eed65c775d9b;p=openvswitch diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 5bdf1b7d..727f3960 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -2499,7 +2499,8 @@ static struct rule * lookup_valid_rule(struct ofproto *ofproto, const struct flow *flow) { struct rule *rule; - rule = rule_from_cls_rule(classifier_lookup(&ofproto->cls, flow)); + rule = rule_from_cls_rule(classifier_lookup(&ofproto->cls, flow, + CLS_INC_ALL)); /* The rule we found might not be valid, since we could be in need of * revalidation. If it is not valid, don't return it. */ @@ -4540,7 +4541,8 @@ revalidate_rule(struct ofproto *p, struct rule *rule) COVERAGE_INC(ofproto_revalidate_rule); if (rule->super) { struct rule *super; - super = rule_from_cls_rule(classifier_lookup_wild(&p->cls, flow)); + super = rule_from_cls_rule(classifier_lookup(&p->cls, flow, + CLS_INC_WILD)); if (!super) { rule_remove(p, rule); return false;