eal: create runtime dir even when shared data is not used
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 7 Jul 2021 12:52:54 +0000 (13:52 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 7 Jul 2021 13:23:09 +0000 (15:23 +0200)
commitce382fdddba9ca272c47f2fee39b9694666759e0
treef4e0b8fa0cd845ad5b0d66d210eca8c1723b4d85
parentd07fc02fb4b38c0dded75d2d21b976d68b494f0e
eal: create runtime dir even when shared data is not used

When multi-process is not wanted and DPDK is run with the "no-shconf"
flag, the telemetry library still needs a runtime directory to place the
unix socket for telemetry connections. Therefore, rather than not
creating the directory when this flag is set, we can change the code to
attempt the creation anyway, but not error out if it fails. If it
succeeds, then telemetry will be available, but if it fails, the rest of
DPDK will run without telemetry. This ensures that the "in-memory" flag
will allow DPDK to run even if the whole filesystem is read-only, for
example.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Morten Brørup <mb@smartsharesystems.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
lib/eal/freebsd/eal.c
lib/eal/linux/eal.c