summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@ugent.be>2017-05-24 15:31:20 +0200
committerdimitri staessens <dimitri.staessens@ugent.be>2017-05-24 15:31:20 +0200
commitf2be3677aedd7a3d68122c48f00c99a4c8e76f88 (patch)
tree8615ed60a9ccb7a352963f3f106fff34bd0bd332 /src
parenta3ede18c5d3e652e9d0bade4b28193e666198574 (diff)
downloadouroboros-f2be3677aedd7a3d68122c48f00c99a4c8e76f88.tar.gz
ouroboros-f2be3677aedd7a3d68122c48f00c99a4c8e76f88.zip
ipcpd: Start DT component before flow allocator
Diffstat (limited to 'src')
-rw-r--r--src/ipcpd/normal/main.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/ipcpd/normal/main.c b/src/ipcpd/normal/main.c
index 0b8a26ab..8c28de78 100644
--- a/src/ipcpd/normal/main.c
+++ b/src/ipcpd/normal/main.c
@@ -128,19 +128,14 @@ static int boot_components(void)
log_dbg("Ribmgr started.");
- if (fa_init()) {
- log_err("Failed to initialize flow allocator ae.");
- goto fail_fa;
- }
-
if (dt_init()) {
log_err("Failed to initialize data transfer ae.");
goto fail_dt;
}
- if (fa_start()) {
- log_err("Failed to start flow allocator.");
- goto fail_fa_start;
+ if (fa_init()) {
+ log_err("Failed to initialize flow allocator ae.");
+ goto fail_fa;
}
if (dt_start()) {
@@ -148,6 +143,11 @@ static int boot_components(void)
goto fail_dt_start;
}
+ if (fa_start()) {
+ log_err("Failed to start flow allocator.");
+ goto fail_fa_start;
+ }
+
if (enroll_start()) {
log_err("Failed to start enroll.");
goto fail_enroll_start;
@@ -166,14 +166,14 @@ static int boot_components(void)
ipcp_set_state(IPCP_INIT);
enroll_stop();
fail_enroll_start:
- dt_stop();
- fail_dt_start:
fa_stop();
fail_fa_start:
- dt_fini();
- fail_dt:
+ dt_stop();
+ fail_dt_start:
fa_fini();
fail_fa:
+ dt_fini();
+ fail_dt:
ribmgr_fini();
fail_ribmgr:
dir_fini();
@@ -191,14 +191,14 @@ void shutdown_components(void)
enroll_stop();
- dt_stop();
-
fa_stop();
- dt_fini();
+ dt_stop();
fa_fini();
+ dt_fini();
+
ribmgr_fini();
dir_fini();