2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

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>
This commit is contained in:
Ryan Wilson
2014-07-26 06:51:55 +00:00
committed by Ethan Jackson
parent 5fdbade3c1
commit 6b31e07347
8 changed files with 374 additions and 390 deletions

View File

@@ -1934,6 +1934,9 @@ const struct dpif_class dpif_linux_class = {
dpif_linux_recv,
dpif_linux_recv_wait,
dpif_linux_recv_purge,
NULL, /* register_upcall_cb */
NULL, /* enable_upcall */
NULL, /* disable_upcall */
};
static int