ofproto: Simplify thread creation API.
authorEthan Jackson <ethan@nicira.com>
Fri, 8 Nov 2013 21:47:49 +0000 (13:47 -0800)
committerEthan Jackson <ethan@nicira.com>
Fri, 13 Dec 2013 17:35:00 +0000 (09:35 -0800)
commit6567010fff1a07100db5853416de0fe5ccd9e99d
treece37a8a16ed88c937fac5d0d5a7947807209a5fd
parentb420c0cfa85cefc011ad488928ec00297356afac
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>
ofproto/ofproto-dpif-upcall.c
ofproto/ofproto-dpif-upcall.h
ofproto/ofproto-dpif.c
ofproto/ofproto-provider.h
ofproto/ofproto.c
ofproto/ofproto.h
vswitchd/bridge.c