From: Cunming Liang Date: Tue, 17 Feb 2015 02:08:05 +0000 (+0800) Subject: eal/bsd: standardize init sequence between linux and bsd X-Git-Tag: spdx-start~9583 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d55b8f3a49ef90fcc0176b2a593d98a9ef2621bd;p=dpdk.git eal/bsd: standardize init sequence between linux and bsd Signed-off-by: Cunming Liang Acked-by: Olivier Matz Acked-by: Konstantin Ananyev --- diff --git a/lib/librte_eal/bsdapp/eal/eal.c b/lib/librte_eal/bsdapp/eal/eal.c index ca2f445e1f..288db577bd 100644 --- a/lib/librte_eal/bsdapp/eal/eal.c +++ b/lib/librte_eal/bsdapp/eal/eal.c @@ -514,6 +514,8 @@ rte_eal_init(int argc, char **argv) rte_eal_mcfg_complete(); + eal_thread_init_master(rte_config.master_lcore); + if (rte_eal_dev_init() < 0) rte_panic("Cannot init pmd devices\n"); @@ -537,8 +539,6 @@ rte_eal_init(int argc, char **argv) rte_panic("Cannot create thread\n"); } - eal_thread_init_master(rte_config.master_lcore); - /* * Launch a dummy function on all slave lcores, so that master lcore * knows they are all ready when this function returns.