eal: move runtime directory creation after args parsing
authorAnatoly Burakov <anatoly.burakov@intel.com>
Tue, 15 May 2018 10:44:52 +0000 (11:44 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 15 May 2018 13:22:40 +0000 (15:22 +0200)
commit3f697d2ee592867c11c8378ef517f003e06dd6f0
tree2395e26503c8753d5e9409ec3c986a28a66c9a95
parent52f711f7b827ef5de0f6bd30066b9125d35c7ba6
eal: move runtime directory creation after args parsing

The intention of the original code was to create runtime data
directory as early as possible, however it was moved too early,
before the arguments were parsed, resulting in --file-prefix
option essentially not working.

Fix this by moving eal_create_runtime_dir() to after command
line arguments parsing.

Fixes: 56236363b481 ("eal: add directory for runtime data")

Reported-by: Andrew Rybchenko <arybchenko@solarflare.com>
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Tested-by: Andrew Rybchenko <arybchenko@solarflare.com>
lib/librte_eal/bsdapp/eal/eal.c
lib/librte_eal/linuxapp/eal/eal.c