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 959F9A046B for ; Wed, 24 Jul 2019 10:20:41 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 807921C138; Wed, 24 Jul 2019 10:20:40 +0200 (CEST) Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by dpdk.org (Postfix) with ESMTP id 6139D1C132; Wed, 24 Jul 2019 10:20:38 +0200 (CEST) Received: by mail-pf1-f195.google.com with SMTP id q10so20541002pff.9; Wed, 24 Jul 2019 01:20:38 -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=jvTBjSKopDCXRhPOl6tnNt0srDRtBPRd93338YYbwn0=; b=QVvnuacciKH4AscWoV+LzFPd5NZJCva5Fgji8C2DS7vzmV6Ew22N4zhhGRtnpn1kr6 yEjF2vEy0x/Nm23qlEyINKPSaopTWaeXud82hYBAkKFIF7Mclhco2QJZtu6b+dB5kXnU nEI49LEX30dFejL41kSVMPPSitczCe0J1hKJBPAL6TNkS7+wwXPP3HWp2foUGjEA4gsZ Rkt+zajWFf29u0eODyz9lfF4/NdLAZeEg+KYD+Pe9j94oRNmCu6iO5OCDvrkBKkUMTEz R87GQ8ad0Q6Fga1c9cZOvbN4bQP+cUk9dlNxJ79Lj2YVgfRW57i+6xBMwowUB8DG7/59 Im8Q== 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=jvTBjSKopDCXRhPOl6tnNt0srDRtBPRd93338YYbwn0=; b=Z99+Zzwbcv4wSS9PUN1n90zyUu1p9xwh3aQSkMYUCNRGK89pXGk5xB6TpZVELgqpyB kQZpeeu1gXYbOLRn79vtF649LnvjxQtDkoqfY7QHhSI0Jr2mS4u/FTeowPrcjuHxuEiw LrnwryY502voC4kwG7XL3qAnGgkOCuh5BE8nTkk7tcaz2Ak4inx8aXBTMX3TNNSZJ7nj SjpD0K9pNvjZXTuEiC4mXuidy8jO2z9AB7yzAZGX1mT+Te4mk9cLPANrnhiu3V7xJoZC Mq8F/RaBXGJbx57r7mGM6DHOdXRq1oXvpIBw1VWdcau/AbqsGEBt0x9HM8cslIxHAGY4 Vd5Q== X-Gm-Message-State: APjAAAVNyIQrOQlvQB9b5kfwOS4llP3GrrK254+CJfu28k40L1UmYtYc lh1Z/9eZcKSh7eIzN0/bvg8= X-Google-Smtp-Source: APXvYqyvcKNHvcStDSiQdg2NiwQA4gDi1N63heY8EC5Z+wVonYoYOeR68FhWcA6oqcUAM2u+CHZGqA== X-Received: by 2002:aa7:8f24:: with SMTP id y4mr9958423pfr.36.1563956437625; Wed, 24 Jul 2019 01:20:37 -0700 (PDT) Received: from localhost.localdomain ([192.47.164.146]) by smtp.gmail.com with ESMTPSA id w22sm48842558pfi.175.2019.07.24.01.20.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Jul 2019 01:20:37 -0700 (PDT) From: yasufum.o@gmail.com To: anatoly.burakov@intel.com, david.marchand@redhat.com Cc: dev@dpdk.org, stable@dpdk.org, yasufum.o@gmail.com Date: Wed, 24 Jul 2019 17:20:30 +0900 Message-Id: <20190724082031.45546-1-yasufum.o@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190711103148.9187-1-yasufum.o@gmail.com> References: <20190711103148.9187-1-yasufum.o@gmail.com> Subject: [dpdk-dev] [PATCH v4 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 v4: * Increase the size of proc_id to 33 and add boundary in calling fscan() --- 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