Systemd defines a standard way for setting the runtime directory for services by setting RUNTIME_DIRECTORY in the environment, and this is a useful way to interact with DPDK internals. DPDK was already following the relevant standards but there can be time when running as a non-root user that the defaults don't work well.
v3 - move to common code between Linux and FreeBSD there is lots more code that could be combined here in future. v2 - fix dpdk_telemetry.py to use append dpdk Stephen Hemminger (3): eal: remove size for eal_set_runtime_dir eal: support systemd service convention for runtime directory eal: move common filesystem setup code into one file lib/eal/common/eal_common_config.c | 7 +- lib/eal/common/eal_private.h | 4 +- lib/eal/freebsd/eal.c | 88 ----------------------- lib/eal/linux/eal.c | 87 ----------------------- lib/eal/unix/eal_filesystem.c | 110 +++++++++++++++++++++++++++++ lib/eal/unix/meson.build | 1 + usertools/dpdk-telemetry.py | 10 ++- 7 files changed, 121 insertions(+), 186 deletions(-) create mode 100644 lib/eal/unix/eal_filesystem.c -- 2.34.1