2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-13 14:07:02 +00:00

ofproto: Correctly credit stats for displaced rules.

When a rule displaces another, we are supposed to credit the stats
for packets that have already been processed to the displaced rule
before we eject it from the datapath.  However, we were instead
crediting the new rule.
This commit is contained in:
Jesse Gross
2009-11-12 12:44:44 -08:00
parent f1bd68ab58
commit 14986b312e

View File

@@ -1625,7 +1625,7 @@ rule_install(struct ofproto *p, struct rule *rule, struct rule *displaced_rule)
&put)) {
rule->installed = true;
if (displaced_rule) {
update_stats(p, rule, &put.flow.stats);
update_stats(p, displaced_rule, &put.flow.stats);
rule_post_uninstall(p, displaced_rule);
}
}