eal: fix dependency in multi-process detection
authorAnatoly Burakov <anatoly.burakov@intel.com>
Wed, 18 Jul 2018 10:53:42 +0000 (11:53 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 19 Jul 2018 10:05:14 +0000 (12:05 +0200)
commite4ea1bbd6e643cc28e4c59f2e227b00bdf2b9c65
treeca928a3430a97879e53f60b82beef7742abc63c9
parentd5dd22c9f6ba86ce9175d84a8f95946edbdb04fc
eal: fix dependency in multi-process detection

Currently, we need runtime dir to put all of our runtime info in,
including the DPDK shared config. However, we use the shared
config to determine our proc type, and this happens earlier than
we actually create the config dir and thus can know where to
place the config file.

Fix this by moving runtime dir creation right after the EAL
arguments parsing, but before proc type autodetection. Also,
previously we were creating the config file unconditionally,
even if we specified no_shconf - fix it by only creating
the config file if no_shconf is not set.

Fixes: adf1d867361c ("eal: move runtime config file to new location")

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Tested-by: Lei Yao <lei.a.yao@intel.com>
lib/librte_eal/bsdapp/eal/eal.c
lib/librte_eal/linuxapp/eal/eal.c