From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by dpdk.org (Postfix) with ESMTP id BAF0EFFA for ; Mon, 30 Apr 2018 16:06:38 +0200 (CEST) Received: by mail-wm0-f67.google.com with SMTP id n10so14401477wmc.1 for ; Mon, 30 Apr 2018 07:06: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=kuRDBLIb8ayNT4dYpiDXlgV65Ge8qx6k5/WLOwjHzyc=; b=D/eh5Zqv30mJcStbaK20YUfx7li5fAyU4rppvcpWx/GOIriKcB55AMbikWTOTARAsD nXTzjkLKSmLM4kAGqbmPeONPvk2nubiqSgQC9cIdwSUnzy04NIVhLp8Tvq9/XlCiZ7uy itxi/A7HSP0d/zk7pMQ32sOWiDm33741d+40oW55Wef1HgtBv1UWK2C0ELnxMCjhqGI0 b9FUUGvZRSk3nrvs7UxldqGmPaXWCSmtRX/Zt45vMD0Vcggq2YPn3k9okO7VsJGZO2UG dt8ppT9Lyo8Di2aUOINTozFRNIWmcnPzcLoScTlKZWGUC5zlIDwq4bhbDrrGx2QD7Y5F fr+Q== 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=kuRDBLIb8ayNT4dYpiDXlgV65Ge8qx6k5/WLOwjHzyc=; b=NnXsG00s9IO4S+NB/Ccgz2OjZQ610sabTD6gePBRbiwX0yrb9Xdz+LCZx6jMkFspGQ FsN4Lgf4nzV9D263q1FvKtVLBMV1VPc84F9KanDPM4hie6AYxUqNDxJrWDlZY1VHp7hm 8MI+SuZqCl2ZE2IRgH6720fLPS8zuZ31QkdsG3Q7k+wBot3qwJlo7ppEdQQAM66SpVYv yEg/sPm7F9L85VmBfwCybpg+P8rAMHYb+MAL8KiLLcQ1B5TtBE71Gx4M/9r8gQk5snzq nbMAPfixSJaiGKdHOn/P8CkGQWWsT6iRieXHOashNMCHI/5eYdI6jrB2oz4v2n/CA/BN RIug== X-Gm-Message-State: ALQs6tDEJ9ur4BVL+uANw+w3EMd6+VqogqrQxrhx8j84IA8zgC7UPRAE 9mZid+nB96CzJjaZscmutx2iFZM19Nc= X-Google-Smtp-Source: AB8JxZrQZ0AqUDDu76ZyMqDEDqH2Hzbw4XqFQYR7tEUnaV3FNptghRFa0BmLsEf7ZjlyorAYrjgExQ== X-Received: by 10.28.171.193 with SMTP id u184mr7825350wme.60.1525097198463; Mon, 30 Apr 2018 07:06:38 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id s15-v6sm4613760wrg.70.2018.04.30.07.06.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 07:06:37 -0700 (PDT) From: luca.boccassi@gmail.com To: Anatoly Burakov Cc: Jianfeng Tan , dpdk stable Date: Mon, 30 Apr 2018 15:02:46 +0100 Message-Id: <20180430140606.4615-8-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180430140606.4615-1-luca.boccassi@gmail.com> References: <20180430140606.4615-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'eal: fix IPC socket path' has been queued to stable release 18.02.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Apr 2018 14:06:38 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/02/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From cdf4d8cbc37306ef73a4a770bb1449309671d31d Mon Sep 17 00:00:00 2001 From: Anatoly Burakov Date: Fri, 2 Mar 2018 08:41:34 +0000 Subject: [PATCH] eal: fix IPC socket path [ upstream commit bed4c1dfa9b5f29debfbd5fbc13a797bbed83a34 ] Fixes: bacaa2754017 ("eal: add channel for multi-process communication") Signed-off-by: Anatoly Burakov Acked-by: Jianfeng Tan --- lib/librte_eal/common/eal_common_proc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/common/eal_common_proc.c b/lib/librte_eal/common/eal_common_proc.c index e4d81044f..ec60d1643 100644 --- a/lib/librte_eal/common/eal_common_proc.c +++ b/lib/librte_eal/common/eal_common_proc.c @@ -489,10 +489,14 @@ mp_send(struct rte_mp_msg *msg, const char *peer, int type) return -1; } while ((ent = readdir(mp_dir))) { + char path[PATH_MAX]; + if (fnmatch(mp_filter, ent->d_name, 0) != 0) continue; - if (send_msg(ent->d_name, msg, type) < 0) + snprintf(path, sizeof(path), "%s/%s", mp_dir_path, + ent->d_name); + if (send_msg(path, msg, type) < 0) ret = -1; } -- 2.14.2