summaryrefslogtreecommitdiff
path: root/ofproto/ofproto-dpif-upcall.h
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2013-11-08 13:47:49 -0800
committerEthan Jackson <ethan@nicira.com>2013-12-13 09:35:00 -0800
commit6567010fff1a07100db5853416de0fe5ccd9e99d (patch)
treece37a8a16ed88c937fac5d0d5a7947807209a5fd /ofproto/ofproto-dpif-upcall.h
parentb420c0cfa85cefc011ad488928ec00297356afac (diff)
downloadopenvswitch-6567010fff1a07100db5853416de0fe5ccd9e99d.tar.gz
ofproto: Simplify thread creation API.
There's no particular reason for the function controlling the number of threads to be bound up with dpif_recv_set(). This patch breaks them up, but as a side effect means threads will run doing nothing when datapath upcall receiving is disabled. By doing this, the udpif thread creation API becomes a bit easier to reason about once there are multiple types of thread introduced in future patches. Signed-off-by: Ethan Jackson <ethan@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'ofproto/ofproto-dpif-upcall.h')
-rw-r--r--ofproto/ofproto-dpif-upcall.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ofproto/ofproto-dpif-upcall.h b/ofproto/ofproto-dpif-upcall.h
index 805530bff..a4d8228aa 100644
--- a/ofproto/ofproto-dpif-upcall.h
+++ b/ofproto/ofproto-dpif-upcall.h
@@ -33,7 +33,7 @@ struct dpif_backer;
* module. */
struct udpif *udpif_create(struct dpif_backer *, struct dpif *);
-void udpif_recv_set(struct udpif *, size_t n_workers, bool enable);
+void udpif_set_threads(struct udpif *, size_t n_handlers);
void udpif_destroy(struct udpif *);
void udpif_wait(struct udpif *);