summaryrefslogtreecommitdiff
path: root/ofproto/netflow.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-11-22 16:46:05 -0800
committerBen Pfaff <blp@nicira.com>2011-11-23 13:19:53 -0800
commit6fca1ffbff93d507336961602947b46320e0ef41 (patch)
tree2592adea61430b5cedb8a08bc64fec59d00cc6fd /ofproto/netflow.h
parenta70e4b2a0a8e0dead971c37872fb3c454908f2b6 (diff)
downloadopenvswitch-6fca1ffbff93d507336961602947b46320e0ef41.tar.gz
ofproto-dpif: Factor NetFlow active timeouts out of flow expiration.
NetFlow active timeouts were only mixed in with flow expiration for convenience: both processes need to iterate all the facets. But an upcoming commit will change flow expiration to work in terms of a new "subfacet" entity, so they will no longer fit together well. This change could be seen as an optimization, since NetFlow active timeouts don't ordinarily have to run as often as flow expiration, especially when the flow expiration rate is stepped up due to a large volume of flows.
Diffstat (limited to 'ofproto/netflow.h')
-rw-r--r--ofproto/netflow.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ofproto/netflow.h b/ofproto/netflow.h
index bf5bf45bf..daabbace5 100644
--- a/ofproto/netflow.h
+++ b/ofproto/netflow.h
@@ -60,7 +60,9 @@ void netflow_destroy(struct netflow *);
int netflow_set_options(struct netflow *, const struct netflow_options *);
void netflow_expire(struct netflow *, struct netflow_flow *,
struct ofexpired *);
-void netflow_run(struct netflow *);
+
+bool netflow_run(struct netflow *);
+void netflow_wait(struct netflow *);
void netflow_flow_init(struct netflow_flow *);
void netflow_flow_clear(struct netflow_flow *);