X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=vswitchd%2Fovs-vswitchd.c;h=28491fc6c17f5a9d6261e6b4bf4672c09c4a8ee0;hb=3b135da329687c69d3a0f1689621f75cc4888d6f;hp=3ee29c77194659936479cd0167e42248db60f0e6;hpb=795fe1fba0ffd036bf68c237f4857ce7a4003068;p=openvswitch diff --git a/vswitchd/ovs-vswitchd.c b/vswitchd/ovs-vswitchd.c index 3ee29c77..28491fc6 100644 --- a/vswitchd/ovs-vswitchd.c +++ b/vswitchd/ovs-vswitchd.c @@ -32,6 +32,7 @@ #include "fault.h" #include "leak-checker.h" #include "mgmt.h" +#include "netdev.h" #include "ovs-vswitchd.h" #include "poll-loop.h" #include "proc-net-compat.h" @@ -80,7 +81,10 @@ main(int argc, char *argv[]) } unixctl_command_register("vswitchd/reload", reload); - cfg_read(); + retval = cfg_read(); + if (retval) { + ovs_fatal(retval, "could not read config file"); + } mgmt_init(); bridge_init(); mgmt_reconfigure(); @@ -100,6 +104,7 @@ main(int argc, char *argv[]) } unixctl_server_run(unixctl); dp_run(); + netdev_run(); if (need_reconfigure) { poll_immediate_wake(); @@ -109,6 +114,7 @@ main(int argc, char *argv[]) bridge_wait(); unixctl_server_wait(unixctl); dp_wait(); + netdev_wait(); poll_block(); } @@ -219,6 +225,7 @@ parse_options(int argc, char *argv[]) "use --help for usage"); } + cfg_init(); config_file = argv[0]; error = cfg_set_file(config_file); if (error) {