datapath-windows: Change reported time for flows
authorAlin Serdean <aserdean@cloudbasesolutions.com>
Tue, 15 Mar 2016 19:41:44 +0000 (19:41 +0000)
committerBen Pfaff <blp@ovn.org>
Wed, 23 Mar 2016 16:50:04 +0000 (09:50 -0700)
commita96838a6668dd3aa269cf4d1ba5f3da60eab708a
tree786f048feded0c5d8f7f341142ec4a4760f97921
parenta79ba858f44d054c86299654b69a868ee5ecf727
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>
datapath-windows/ovsext/DpInternal.h
datapath-windows/ovsext/Flow.c