From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6DF0EA034F; Wed, 9 Feb 2022 07:54:09 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E87CA410FD; Wed, 9 Feb 2022 07:54:08 +0100 (CET) Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by mails.dpdk.org (Postfix) with ESMTP id A4C0F410F3 for ; Wed, 9 Feb 2022 07:54:07 +0100 (CET) Received: by mail-pj1-f48.google.com with SMTP id ki18-20020a17090ae91200b001b8be87e9abso3196725pjb.1 for ; Tue, 08 Feb 2022 22:54:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1zqEg8cZ9if4ZsIDvKRAvP1ryZxE0Cu9k2y7v1PXJFI=; b=K6aWIETDHIDnN5KdWIgDZTUW3Fpf3xOt7j8C8l4Zv4jENhtwfsBfH5xtZWNJ1EbQHQ 86GoISV/7iBzvjOvTEg4GLUXjgofR9sL46HIo0X5Jytqpn9YQt92MG6pY9C7p9hIepWi TuaccqLVB+9eLDPIRRhA8+XgXUbl5fz0pRBKTjlye3DyNBjqtqa+CRAKJh/W3hf8TEq2 TUqpXEl+3F5M7S6KqrEBG1v6th4MVMIAL3aad5Gu3le9BCHvN2tbibma/JvMg9yGQlvl AGhELtOP2MDCa3L95DbBlZfCBNIq6Pvs4EV2xTEZ5o250NxH+mgQ1Ux8Zgz72mI9VNFs 5+3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1zqEg8cZ9if4ZsIDvKRAvP1ryZxE0Cu9k2y7v1PXJFI=; b=BvdRpxU2G4nGIBhWPcuz8Gu/QoeO+FBz8V7WkKJ4il6wRVbgghqUNdQsICT6YWKmCg ytncSkWBDVXqrHk0vlQeXgxR06VUaADvg6R2kC6Vxpt+upuiJWTjDHiZIFpIZd0vq4TE 61EQbbnmrxqLE29gcLE3siofVpDfE+ZLSeoWirZ9OJp4OO4cSmm5bzeMy8rY+J/A2iJX gnzJYjEC49aSxf1YZ8brtnI582EAbIQnM3VUSGI1TqVIiF4fJSsyLoBxOCc3P3LeI1th p7LprzJlLYAw2LlvQr511zjkcxVJTTUe5jTtL+VP1HuShp9eTV+RWoADYiUVg22/LAGJ yNng== X-Gm-Message-State: AOAM530gYD9eA2tGyuEWTHVasWpvTHx4prxoESFloYCSBY1KzNgPq0oM AaAc4oRVlbboKFq7+f0wdRLVyeewmD2BjHRb X-Google-Smtp-Source: ABdhPJzD7WWqeA/rRQrskeNg1f9Ws3t6OM5aq9T0ch5+cMRz9QZV6Cqj2LTR5e1QgET1doCWaXxAqA== X-Received: by 2002:a17:90b:4a09:: with SMTP id kk9mr1864952pjb.107.1644389646381; Tue, 08 Feb 2022 22:54:06 -0800 (PST) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id oa5sm5208892pjb.0.2022.02.08.22.54.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 22:54:05 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v3 0/3] eal: support configuring runtime directory Date: Tue, 8 Feb 2022 22:54:00 -0800 Message-Id: <20220209065403.168475-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20211223233907.181033-1-stephen@networkplumber.org> References: <20211223233907.181033-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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