git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1bd68a
)
ofproto: Correctly credit stats for displaced rules.
author
Jesse Gross
<jesse@nicira.com>
Thu, 12 Nov 2009 20:44:44 +0000
(12:44 -0800)
committer
Jesse Gross
<jesse@nicira.com>
Thu, 12 Nov 2009 22:31:39 +0000
(14:31 -0800)
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.
secchan/ofproto.c
patch
|
blob
|
history
diff --git
a/secchan/ofproto.c
b/secchan/ofproto.c
index
cfaf0cf
..
200633e
100644
(file)
--- a/
secchan/ofproto.c
+++ b/
secchan/ofproto.c
@@
-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);
}
}