dpif-netdev: Polling threads directly call ofproto upcall functions.
authorRyan Wilson <wryan@nicira.com>
Sat, 26 Jul 2014 06:51:55 +0000 (06:51 +0000)
committerEthan Jackson <ethan@nicira.com>
Fri, 25 Jul 2014 23:19:40 +0000 (16:19 -0700)
commit6b31e07347ad28db9031cc00efbc30a553653517
tree88bb6111c728f7da38699bf374960082ad852113
parent5fdbade3c1199eeac8a8584f3f320014665aa827
dpif-netdev: Polling threads directly call ofproto upcall functions.

Typically, kernel datapath threads send upcalls to userspace where
handler threads process the upcalls. For TAP and DPDK devices, the
datapath threads operate in userspace, so there is no need for
separate handler threads.

This patch allows userspace datapath threads to directly call the
ofproto upcall functions, eliminating the need for handler threads
for datapaths of type 'netdev'.

Signed-off-by: Ryan Wilson <wryan@nicira.com>
Signed-off-by: Ethan Jackson <ethan@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
lib/dpif-linux.c
lib/dpif-netdev.c
lib/dpif-netdev.h
lib/dpif-provider.h
lib/dpif.c
lib/dpif.h
ofproto/ofproto-dpif-upcall.c
ofproto/ofproto-dpif-upcall.h