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 270671B1BD for ; Wed, 24 Jan 2018 16:37:04 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id D295E2241E; Wed, 24 Jan 2018 10:37:03 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:37:03 -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=WM1PcjPOabGWB4lQ2 LHU4gsciZFug1ktefGnBUJKW4U=; b=Q4IpC3xvxuxz3erQ4fatz/B9tPpp3yQHt U6J/ACXGVX4J00b8mesqwIz6Bo3fFGYGX6EN3KI9km3plLyfIib+pxukXK61J7cP xdzOgOajaP2fC/6OTMbkiRu6+yPBkQK6+HTXSUZHhwhKcnQZtSh6qB3lfO6YCqSV D/y6jJkO4BPC/U9Mx2lYlkC5nT0LCDfwHvmQrbmqO7qN/dlHRq/Zfo5ZTYU0wvQg UY1Gqdrh6hKY1r0HLGZOk/uany0q2WnYOFBLV1EPzwCb/JnRZMI5BzhcxW/D+Vs+ ZshLXQAmK3WmRyAAuKOJAMopN+ykYz6ENQrC3MxYC9otDFkA97KEw== 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=WM1PcjPOabGWB4lQ2LHU4gsciZFug1ktefGnBUJKW4U=; b=c4N9/uhJ xT8WgJ+mmDhQlQnoTA8y8qAY5tmZFrLLlu9itreSYNfgMdpmLpITgQnfjBVWy/Y1 Ai57G1iFDfsuU2mDgp5UECylKEtl7kQjPjvTvTlVpEbGHhXzCdNBhFmc2/WEL9gi NX7CvpAOmNgM81aHhD75r/+Kf1UDhnZAruKKq5Vqywlbr2ijLSr+kkJv+nbPUKGH tmJzsvVlD25eWF6jK10+r0CPv2UfWDZngnuB5PK7rHgct+BXCvWJ//sFyasFNInj p+YZ9iv+fAvqxphk9ibIrUB0J5NX0iS6heKO/tv0h1WIlfGcDpCJtZaogAgW5PTs 7XDS0pju78VpsQ== X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id BBC877E43A; Wed, 24 Jan 2018 10:37:01 -0500 (EST) From: Yuanhan Liu To: Erik Gabriel Carrillo Cc: Pavan Nikhilesh , dpdk stable Date: Wed, 24 Jan 2018 23:31:36 +0800 Message-Id: <1516808026-25523-28-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 'timer: fix reset on service cores' 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:37:04 -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 f95a50138aee23a2560390e87809ed7914448980 Mon Sep 17 00:00:00 2001 From: Erik Gabriel Carrillo Date: Fri, 12 Jan 2018 15:31:05 -0600 Subject: [PATCH] timer: fix reset on service cores [ upstream commit d33fbd51e58545666dc9980484fc7c6a1a0d5439 ] The return value of rte_lcore_has_role is misinterpreted in the timer reset function. The return values of rte_lcore_has_role will be changed in a future DPDK release, but this commit fixes this call site until that happens. Fixes: 351f463456f8 ("timer: allow reset on service cores") Signed-off-by: Erik Gabriel Carrillo Acked-by: Pavan Nikhilesh --- lib/librte_timer/rte_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_timer/rte_timer.c b/lib/librte_timer/rte_timer.c index 88826f5..ba436cd 100644 --- a/lib/librte_timer/rte_timer.c +++ b/lib/librte_timer/rte_timer.c @@ -432,7 +432,7 @@ rte_timer_reset(struct rte_timer *tim, uint64_t ticks, if (unlikely((tim_lcore != (unsigned)LCORE_ID_ANY) && !(rte_lcore_is_enabled(tim_lcore) || - rte_lcore_has_role(tim_lcore, ROLE_SERVICE)))) + rte_lcore_has_role(tim_lcore, ROLE_SERVICE) == 0))) return -1; if (type == PERIODICAL) -- 2.7.4