This code needs to have flows be revalidated if the rule includes
wildcards, just like add_flow() and modify_flow().
displaced_rule = rule_from_cls_rule(classifier_insert(&p->cls, &rule->cr));
if (displaced_rule) {
- /* XXX */
rule_destroy(displaced_rule);
}
rule_install(p, rule, NULL);
} else {
assert(!packet);
+
+ /* We might need to change the rules for arbitrary subrules. */
+ p->need_revalidate = true;
}
}
flow, wildcards,
priority));
if (rule) {
+ if (rule->cr.wc.wildcards) {
+ ofproto->need_revalidate = true;
+ }
classifier_remove(&ofproto->cls, &rule->cr);
rule_destroy(rule);
}