X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=vswitchd%2Fovs-vswitchd.c;h=9736b79e0c4198bc884e0209a5bec823fdf193a3;hb=3444fdfb453d3593914cf1e18f9ac2f8b036e986;hp=6062a40a63261c44b977ceeca355e1e6920c2b05;hpb=908ff19af7ab2b6e0a865bcf566aaa47e32889ff;p=sliver-openvswitch.git diff --git a/vswitchd/ovs-vswitchd.c b/vswitchd/ovs-vswitchd.c index 6062a40a6..9736b79e0 100644 --- a/vswitchd/ovs-vswitchd.c +++ b/vswitchd/ovs-vswitchd.c @@ -15,7 +15,6 @@ #include -#include #include #include #include @@ -52,6 +51,7 @@ #include "vconn.h" #include "vlog.h" #include "lib/vswitch-idl.h" +#include "worker.h" VLOG_DEFINE_THIS_MODULE(vswitchd); @@ -95,6 +95,8 @@ main(int argc, char *argv[]) #endif } + worker_start(); + retval = unixctl_server_create(unixctl_path, &unixctl); if (retval) { exit(EXIT_FAILURE); @@ -106,6 +108,7 @@ main(int argc, char *argv[]) exiting = false; while (!exiting) { + worker_run(); if (signal_poll(sighup)) { vlog_reopen_log_file(); } @@ -124,6 +127,7 @@ main(int argc, char *argv[]) unixctl_server_run(unixctl); netdev_run(); + worker_wait(); signal_wait(sighup); memory_wait(); bridge_wait();