[ovs-git] [openvswitch/ovs] a96838: datapath-windows: Change reported time for flows

GitHub noreply at github.com
Wed Mar 23 16:50:52 UTC 2016

  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: a96838a6668dd3aa269cf4d1ba5f3da60eab708a
  Author: Alin Serdean <aserdean at cloudbasesolutions.com>
  Date:   2016-03-23 (Wed, 23 Mar 2016)

  Changed paths:
    M datapath-windows/ovsext/DpInternal.h
    M datapath-windows/ovsext/Flow.c

  Log Message:
  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

Signed-off-by: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>
Acked-by: Sorin Vinturis <svinturis at cloudbasesolutions.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>

More information about the git mailing list