From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by dpdk.org (Postfix) with ESMTP id A16CE1DA4 for ; Mon, 30 Apr 2018 16:06:40 +0200 (CEST) Received: by mail-wr0-f196.google.com with SMTP id v60-v6so8163960wrc.7 for ; Mon, 30 Apr 2018 07:06:40 -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=pcebPMZcw7ztjSxX08B7LABnNbbYg8z9H+jIqLGN6ns=; b=PE3ktmyCbkV58MpcmeRTrD6flv5Uot87wu7quqOWEM3CaufJyd64jP7pmR1mXHggMb KJLDJj11iHtQWLqc8WeeobQNTQZX++OnNunsVC1CjBd46THGM36UGWLh7HoWYKCH+NiA 7uwAX8m4KH/lmaBoB2MLOZfMa1NaZsXkAI/iRxoiq56NQGmUNGjIE2BA+WuF3E9HS79v L2LjCVIzf7YDO6VFKgCGRHEMlK2jBVyc0ZPj39DjuDcno/3GzsP6NayOVqbvMv5K33xu 3EHa0qbHcQDL9VIoTiX7HfCw9Xa5Mi+oRkfPOuwGW6M2GvmrUms5v2PsqRt3yNcFXaDE 2xKQ== 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=pcebPMZcw7ztjSxX08B7LABnNbbYg8z9H+jIqLGN6ns=; b=nlfCJF6vx9mc/YrF+a1IINGf+aFPWBEq+xGrd5ZZ+FkZddSUEn2B8mBMtCVetM0M6a wMbzBmAlf3G3ylAGgyX7rkwsD+ousM/KpMewmdVN6Dgi7WGi7ByW8c0KkevN0i5nI5Dp r7Lk5SmdXKskLRmTHu4LFyj+QpcKhB9FOhEiT86urNdSNIynSNPSu7gLpiyirQhmS4Dp 2YJXbofDot5PFw0AWIBPsOdFjYm+mEgC3BetTaDwyHojueMVVDy9Wp/Zk0AnZQphWQk7 +bED/fn7X8Xj2O27O5l+D/W+l3GBIisPsuDYM55y8YtfIlV9R5a6xAZIV3lZXwxKeMC5 MmQg== X-Gm-Message-State: ALQs6tCSOFF3SE9gX1uUQRTcszf9M8AUO9gRcgNH0HCjgSvdSlr0eb/D d4bUCy1OrZq/9AEsYoCCzhk= X-Google-Smtp-Source: AB8JxZrMK88DOuKfTIH9pc1Yhu4R1OsD/4vdDvcU9Tsf0A8flMEIvyKRNLPo8WaLrO6LQnPW+EF9Ag== X-Received: by 2002:adf:e4cc:: with SMTP id v12-v6mr9536531wrm.243.1525097200359; Mon, 30 Apr 2018 07:06:40 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id x7-v6sm9548905wrm.0.2018.04.30.07.06.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 07:06:39 -0700 (PDT) From: luca.boccassi@gmail.com To: Anatoly Burakov Cc: Jianfeng Tan , dpdk stable Date: Mon, 30 Apr 2018 15:02:47 +0100 Message-Id: <20180430140606.4615-9-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 request 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:40 -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 fe6bb9c8b57237e061ed4bea357c245c6542cfb0 Mon Sep 17 00:00:00 2001 From: Anatoly Burakov Date: Fri, 2 Mar 2018 08:41:35 +0000 Subject: [PATCH] eal: fix IPC request socket path [ upstream commit 836c2ed0c0a08910d818c0011eb4a9705d413120 ] Fixes: 783b6e54971d ("eal: add synchronous multi-process communication") Signed-off-by: Anatoly Burakov Acked-by: Jianfeng Tan --- lib/librte_eal/common/eal_common_proc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/common/eal_common_proc.c b/lib/librte_eal/common/eal_common_proc.c index ec60d1643..2dddcaf78 100644 --- a/lib/librte_eal/common/eal_common_proc.c +++ b/lib/librte_eal/common/eal_common_proc.c @@ -658,10 +658,15 @@ rte_mp_request(struct rte_mp_msg *req, struct rte_mp_reply *reply, } while ((ent = readdir(mp_dir))) { + char path[PATH_MAX]; + if (fnmatch(mp_filter, ent->d_name, 0) != 0) continue; - if (mp_request_one(ent->d_name, req, reply, &end)) + snprintf(path, sizeof(path), "%s/%s", mp_dir_path, + ent->d_name); + + if (mp_request_one(path, req, reply, &end)) ret = -1; } -- 2.14.2