From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B42F4A00E6 for ; Thu, 11 Jul 2019 12:31:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 895F31B950; Thu, 11 Jul 2019 12:31:56 +0200 (CEST) Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by dpdk.org (Postfix) with ESMTP id 2EC881DBE; Thu, 11 Jul 2019 12:31:55 +0200 (CEST) Received: by mail-pl1-f193.google.com with SMTP id az7so2807498plb.5; Thu, 11 Jul 2019 03:31:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XCWB6leGpH8CZk4ZEHibzWNAQHbkJhf/7BheeZOW5dc=; b=j9zaXZVy3rzZOYREmGaWZuaRNyAS9akyaRbFLmQix85rJqSuhMyhLr0qbpqWwjQFiR zoiEM5dJtkzB4EiYg0n4XePuKYz15fXEL09GesHWPuq0FECDUUFPp1Ph5DZMKB9VOJ/H 2E1ugGmlmODCbVBRAiKHDsYB5p3wQK3nL92Yc8LqW0kU/bKBuRGo7FMXTvrd3FmTA2eE Q9Gehw4xBg4oJv3F0d+jfJyz0nXK4p/uXHjWZCJ78gFwyUdv0wqAOv6vYpCx5kw9o3K2 AZb8HmCZy0fRdWEB9s4/V3bk0/NA1E89PyU+A810c/wKb3WeJn8sBkip3MhZSw8MLpv8 4h8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=XCWB6leGpH8CZk4ZEHibzWNAQHbkJhf/7BheeZOW5dc=; b=UZ7wDNuZGtSa0Q7w/ewoQz9wPxR8+K4k5UCHgsCk5KKXTZQYT+x3G+xXd/AKXpL5fV Ht0HFchSWq9y7GAA+vb0GEkT/IgIStXAiXFdo1r5xkREp4j9DMYR86AbHkPQc8Y/q2MW 1mclc04jsjsUGClR1LSU3KHs9aEYhBu7Shz/9iJHN2HOBPOP5heVw2xYO9O1Ks6MbJc1 U7e9Hd5I9K5XDCuxjAmTJnldhvdK8S2klyklXzHLjOLNWIUkR5HFD0S1a6TtO+rbTvFx pURb/z0+1/waVN+ueLjlGNAIN7SirL4qbAs81AHt2YkZyHv1WZbQZ4I5aFWMMfoygkDG avrQ== X-Gm-Message-State: APjAAAXqXZyTSuA2ZWd9tnCQsAuJVaYLZ66BH2agTJTBYdXZRTVuuedI iTiKNnjkNPObwrqhymMSleGZIHvS X-Google-Smtp-Source: APXvYqxTF/SpGsB3Jpxfp9vVgGie1xh21ORE/a7GA/1QBk0AZ7SHfCihcxm9KUoH8vLRMEyJGadlUQ== X-Received: by 2002:a17:902:28c9:: with SMTP id f67mr3874325plb.19.1562841114502; Thu, 11 Jul 2019 03:31:54 -0700 (PDT) Received: from localhost.localdomain ([192.47.164.146]) by smtp.gmail.com with ESMTPSA id b29sm9575461pfr.159.2019.07.11.03.31.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Jul 2019 03:31:54 -0700 (PDT) From: yasufum.o@gmail.com To: anatoly.burakov@intel.com, david.marchand@redhat.com Cc: dev@dpdk.org, stable@dpdk.org, Yasufumi Ogawa Date: Thu, 11 Jul 2019 19:31:47 +0900 Message-Id: <20190711103148.9187-1-yasufum.o@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <1555379952-23517-1-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> References: <1555379952-23517-1-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> Subject: [dpdk-dev] [PATCH v3 0/1] fbarray: get fbarrays from containerized secondary X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Yasufumi Ogawa In secondary_msl_create_walk(), it creates a file for fbarrays with its PID for reserving unique name among secondary processes. However, it does not work if secondary is run as app container because each of containerized secondary has PID 1. To reserve unique name, use hostname instead of PID because hostname is assigned as a short form of 64 digits full container ID in docker. --- v2: * fix typo in commit message v3: * add fclose() after if getting hostname with fscan() is failed --- Yasufumi Ogawa (1): fbarray: get fbarrays from containerized secondary lib/librte_eal/linux/eal/eal_memalloc.c | 28 +++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) -- 2.17.1