git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
revalidator: Fix ukey stats cache updating.
[sliver-openvswitch.git]
/
ofproto
/
ofproto-dpif-upcall.c
diff --git
a/ofproto/ofproto-dpif-upcall.c
b/ofproto/ofproto-dpif-upcall.c
index
717563a
..
2c37781
100644
(file)
--- a/
ofproto/ofproto-dpif-upcall.c
+++ b/
ofproto/ofproto-dpif-upcall.c
@@
-1245,7
+1245,6
@@
revalidate_ukey(struct udpif *udpif, struct udpif_key *ukey,
push.n_bytes = stats->n_bytes > ukey->stats.n_bytes
? stats->n_bytes - ukey->stats.n_bytes
: 0;
push.n_bytes = stats->n_bytes > ukey->stats.n_bytes
? stats->n_bytes - ukey->stats.n_bytes
: 0;
- ukey->stats = *stats;
if (!ukey->flow_exists) {
/* Don't bother revalidating if the flow was already deleted. */
if (!ukey->flow_exists) {
/* Don't bother revalidating if the flow was already deleted. */
@@
-1258,6
+1257,8
@@
revalidate_ukey(struct udpif *udpif, struct udpif_key *ukey,
goto exit;
}
goto exit;
}
+ /* We will push the stats, so update the ukey stats cache. */
+ ukey->stats = *stats;
if (!push.n_packets && !udpif->need_revalidate) {
ok = true;
goto exit;
if (!push.n_packets && !udpif->need_revalidate) {
ok = true;
goto exit;