X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=vswitchd%2Fovs-vswitchd.c;h=84e5ad113302ea3e2573d1a06dcd43f4174521ab;hb=70e4e586e4aff1e369cacd721e874d9731253130;hp=6062a40a63261c44b977ceeca355e1e6920c2b05;hpb=d41d4b714d29091dd502dd8705ef489467e11a43;p=openvswitch diff --git a/vswitchd/ovs-vswitchd.c b/vswitchd/ovs-vswitchd.c index 6062a40a..84e5ad11 100644 --- a/vswitchd/ovs-vswitchd.c +++ b/vswitchd/ovs-vswitchd.c @@ -52,6 +52,7 @@ #include "vconn.h" #include "vlog.h" #include "lib/vswitch-idl.h" +#include "worker.h" VLOG_DEFINE_THIS_MODULE(vswitchd); @@ -95,6 +96,8 @@ main(int argc, char *argv[]) #endif } + worker_start(); + retval = unixctl_server_create(unixctl_path, &unixctl); if (retval) { exit(EXIT_FAILURE); @@ -106,6 +109,7 @@ main(int argc, char *argv[]) exiting = false; while (!exiting) { + worker_run(); if (signal_poll(sighup)) { vlog_reopen_log_file(); } @@ -124,6 +128,7 @@ main(int argc, char *argv[]) unixctl_server_run(unixctl); netdev_run(); + worker_wait(); signal_wait(sighup); memory_wait(); bridge_wait();