#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"
}
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();
}
unixctl_server_run(unixctl);
dp_run();
+ netdev_run();
if (need_reconfigure) {
poll_immediate_wake();
bridge_wait();
unixctl_server_wait(unixctl);
dp_wait();
+ netdev_wait();
poll_block();
}
"use --help for usage");
}
+ cfg_init();
config_file = argv[0];
error = cfg_set_file(config_file);
if (error) {