Re: [RFC v2 12/14] eal: limit maximum runtime directory and socket paths

Bruce Richardson
2025-12-05T08:46:28Z

On Thu, Dec 04, 2025 at 06:28:21PM -0800, Stephen Hemminger wrote:
> Linux (and FreeBSD) has a limitation of 108 characters for
> any unix domain socket path. Therefore DPDK would not work
> if a really large runtime directory was used.
>

FreeBSD actually limits it to 104 [1]. Should reduce the define by that
extra amount.

/Bruce

[1] https://man.freebsd.org/cgi/man.cgi?query=unix&sektion=4

> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> ---
> lib/eal/common/eal_common_config.c | 6 ++-
> lib/eal/common/eal_common_proc.c | 83 +++++++++++++++++++-----------
> lib/eal/common/eal_filesystem.h | 6 ++-
> 3 files changed, 63 insertions(+), 32 deletions(-)
>