upcall: Delete flows that were not recently dumped.
authorJoe Stringer <joestringer@nicira.com>
Tue, 11 Feb 2014 21:55:35 +0000 (13:55 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 26 Feb 2014 00:01:53 +0000 (16:01 -0800)
commite4b79342001c74b829afde60f060a9ae2e95d340
tree3a02226e245bac803e074f9dbc7df915b31f508f
parent13bb6ed00c10ae46b3f9b92d05edb41398714166
upcall: Delete flows that were not recently dumped.

Previously, we would clean up the ukeys whose flow was not seen in the
most recent dump, while leaving the flow in the datapath. In the
unlikely case that the datapath fails to dump a flow that still exists
in the datapath, this would cause double-counting of those flow stats.

This is currently very rare to see due to batching of datapath flow
deletion, but is more easily observable with upcoming patches which
modify the batch size based on dpif implementation.

Signed-off-by: Joe Stringer <joestringer@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif-upcall.c