From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id ED1E31B1B6 for ; Wed, 24 Jan 2018 16:41:07 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id A52E122708; Wed, 24 Jan 2018 10:41:07 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:41:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=tA9RtH0v/X4PE4we0 9MwVjEZ4f1zFBxoTe7HixIJmIc=; b=tXF2PGyrD1vYTDUmJcLHOeJIoXwYbrYKY pZiKnGWZdRac0AqHvHXO+1NCaqWIW9eTyiOmBsfmyDefxoS0AZzuIQfa79ngtJMU fKaZaL2hbimAfsfSJzC8gxI077uI+Po4LPZfR1WSiO1CS5+rtShsjqF9Xh4EStZs cylebzNZkpWA5bcco4abCd6mkZT4lY0i0skuNlZ54NLWEDFwy5mLm232Bv0w5Mcv L9M3OL4jCymCF3aGS9vdpIHwMBtAHkPMNQ3sQAChkcNJF1wxwN5Bw1jbyHJ+gSqf MFXRsqHCeNlUVQuTqXJwYXhkNKyxh2vDKCSBqk5rmLPaWM0hHq+/Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=tA9RtH0v/X4PE4we09MwVjEZ4f1zFBxoTe7HixIJmIc=; b=E2RiNXh5 vggxmVJp/eCGqCnIVBkMQ4Qi+MqAvxUAv+XdULaDU0IYGRX77N1hBkHVhJJGyMHb YbzQYaG1heIBu1uhzqjqSH5H636dACqWYhhchsWGUJAw77uhnj8d8GrI07X2e2we H67lBGV7nsQxPpruw1I9ztCLAeJslvbgPu0HiSEG7tlFplKnBycxs2YId7UA+FY5 MasJfBhlNk/YTHpA0c2B9seJhVZahtgX7thHom40MRGX2ljYbxVHc1aboW4u21J/ dGR9hw8e5UVQKGxbWaXhLhO8EjzJadLs/6r56eujBd8kyxV92AUfSTEzu2cKrleK VVPCGDNfTL9+cg== X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 853067E3DB; Wed, 24 Jan 2018 10:41:04 -0500 (EST) From: Yuanhan Liu To: Olivier Matz Cc: John McNamara , dpdk stable Date: Wed, 24 Jan 2018 23:33:05 +0800 Message-Id: <1516808026-25523-117-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> References: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'pdump: fix error check when creating/canceling thread' has been queued to LTS release 17.11.1 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: Wed, 24 Jan 2018 15:41:08 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 01/26/18. So please shout if anyone has objections. Thanks. --yliu --- >>From 9374e9d0b63588f508d0828b0af212b4c263262b Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Fri, 8 Dec 2017 11:20:13 +0100 Subject: [PATCH] pdump: fix error check when creating/canceling thread [ upstream commit 2969258cb41064d2295ac823f385ad41ef405f15 ] On error, pthread_create() returns a positive number (an errno) but does not set the errno variable. Fixes: 278f945402c5 ("pdump: add new library for packet capture") Signed-off-by: Olivier Matz Acked-by: John McNamara --- lib/librte_pdump/rte_pdump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_pdump/rte_pdump.c b/lib/librte_pdump/rte_pdump.c index bc18f81..44dcc95 100644 --- a/lib/librte_pdump/rte_pdump.c +++ b/lib/librte_pdump/rte_pdump.c @@ -581,7 +581,7 @@ rte_pdump_init(const char *path) if (ret != 0) { RTE_LOG(ERR, PDUMP, "Failed to create the pdump thread:%s, %s:%d\n", - strerror(errno), __func__, __LINE__); + strerror(ret), __func__, __LINE__); return -1; } /* Set thread_name for aid in debugging. */ @@ -604,7 +604,7 @@ rte_pdump_uninit(void) if (ret != 0) { RTE_LOG(ERR, PDUMP, "Failed to cancel the pdump thread:%s, %s:%d\n", - strerror(errno), __func__, __LINE__); + strerror(ret), __func__, __LINE__); return -1; } -- 2.7.4