summaryrefslogtreecommitdiff
path: root/datapath-windows/ovsext/DpInternal.h
diff options
context:
space:
mode:
authorAlin Serdean <aserdean@cloudbasesolutions.com>2016-03-15 19:41:44 +0000
committerBen Pfaff <blp@ovn.org>2016-03-23 09:50:04 -0700
commita96838a6668dd3aa269cf4d1ba5f3da60eab708a (patch)
tree786f048feded0c5d8f7f341142ec4a4760f97921 /datapath-windows/ovsext/DpInternal.h
parenta79ba858f44d054c86299654b69a868ee5ecf727 (diff)
downloadopenvswitch-a96838a6668dd3aa269cf4d1ba5f3da60eab708a.tar.gz
datapath-windows: Change reported time for flows
Currently the datapath reports the tick counter to the userspace. The userspace uses KeQueryPerformanceCounter as a monotonic clock. This patch changes the flow stats to be reported in a monotonic format, while also decaying the time between the flow actual usage and the flow report usage. This patch also changes to report EEXIST if the userspace tries to add the same flow twice. After adding a flow, lookup the flow only if the extension is compiled in debug mode. Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Acked-by: Sorin Vinturis <svinturis@cloudbasesolutions.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'datapath-windows/ovsext/DpInternal.h')
-rw-r--r--datapath-windows/ovsext/DpInternal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/datapath-windows/ovsext/DpInternal.h b/datapath-windows/ovsext/DpInternal.h
index c094f3297..10ea5e86f 100644
--- a/datapath-windows/ovsext/DpInternal.h
+++ b/datapath-windows/ovsext/DpInternal.h
@@ -179,7 +179,7 @@ typedef __declspec(align(8)) struct OvsFlowKey {
typedef struct OvsFlowStats {
Ovs64AlignedU64 packetCount;
Ovs64AlignedU64 byteCount;
- uint32_t used;
+ uint64_t used;
uint8_t tcpFlags;
} OvsFlowStats;