[ovs-dev] [PATCH 4/7] ofproto-dpif-upcall: Intialize dump-seq of new flow to zero
Jan Scheurich
jan.scheurich at ericsson.com
Fri Feb 3 10:40:20 UTC 2017
This forces updating of flow stat at the next re-validation, even for
flows that are being created when the revalidation has already commenced.
It enables reliable testing of fast path flow stats using ovs-appctl
time/warp after flow creation.
Signed-off-by: Jan Scheurich <jan.scheurich at ericsson.com>
---
ofproto/ofproto-dpif-upcall.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ofproto/ofproto-dpif-upcall.c b/ofproto/ofproto-dpif-upcall.c
index 96a89b7..49fed77 100644
--- a/ofproto/ofproto-dpif-upcall.c
+++ b/ofproto/ofproto-dpif-upcall.c
@@ -1118,7 +1118,7 @@ upcall_xlate(struct udpif *udpif, struct upcall *upcall,
* with pushing its stats eventually. */
}
- upcall->dump_seq = seq_read(udpif->dump_seq);
+ upcall->dump_seq = 0;
upcall->reval_seq = seq_read(udpif->reval_seq);
xlate_actions(&xin, &upcall->xout);
--
1.9.1
More information about the dev
mailing list