summaryrefslogtreecommitdiff
path: root/ofproto/netflow.h
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2013-10-30 12:59:15 -0700
committerEthan Jackson <ethan@nicira.com>2013-12-12 17:13:04 -0800
commit8e407f2744c0fad4fe4785c7be5849eb6ad1f903 (patch)
tree8813cc0d75b39a71ab9a6765e717fadf0064802b /ofproto/netflow.h
parent8bfaca5b9a63a4900c3c99fc6a97e2b821870f66 (diff)
downloadopenvswitch-8e407f2744c0fad4fe4785c7be5849eb6ad1f903.tar.gz
netflow: Make thread safe.
In future patches upcall handler threads will need to update netflow. Signed-off-by: Ethan Jackson <ethan@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
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 6493841cf..f37cfa7a4 100644
--- a/ofproto/netflow.h
+++ b/ofproto/netflow.h
@@ -41,7 +41,9 @@ struct netflow_options {
#define NF_OUT_DROP OFP_PORT_C(UINT16_MAX - 2)
struct netflow *netflow_create(void);
-void netflow_destroy(struct netflow *);
+struct netflow *netflow_ref(const struct netflow *);
+void netflow_unref(struct netflow *);
+
int netflow_set_options(struct netflow *, const struct netflow_options *);
void netflow_expire(struct netflow *, struct flow *);