mbox

[v3,0/3] eal: support configuring runtime directory

Message ID 20220209065403.168475-1-stephen@networkplumber.org (mailing list archive)
Headers

Message

Stephen Hemminger Feb. 9, 2022, 6:54 a.m. UTC
  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