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 4E8374F9B for ; Sun, 18 Nov 2018 17:36:53 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id D1198211B7; Sun, 18 Nov 2018 11:36:52 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 18 Nov 2018 11:36:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=bEjiVrT9oVc7EnM3Vp04e+2P1yQLGs9BqL8dwANIGsg=; b=iu7PzWTLANad y7qm4SjdPgJ6p/bBNoCl/MYzAyKQhlEtBvHlNW3juP0iJ9WO4J257ogL/1/JBpYW ff1+BcIqvuGdlaPBFZGancHTQtwsnqFNsrV7rE0xG6lrjFLSZD4VvvtNskBnWdRF YdFWnZRp95CcErIBkc23Sb3yMtwZPrM= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=bEjiVrT9oVc7EnM3Vp04e+2P1yQLGs9BqL8dwANIG sg=; b=Q2OaUgB68ou4inpoFrtuZr05LFmP2R1iI3/HqYA0IcWa4DYWQCIoH0v0L OecPZ3C7RTaJ3UmGeksusthIIG4ESilg6L74nVvV+YeZtOB1XhzztXLN1VHi2WMv PCML0l91yI1YxtmtNgGCGypVwHToXpS7yjYdV5JLaSKR+WtaTFAbZEWdtRQ0sA1a jlO2ksYL2um44EMlXgeGa9a4oiMHA44jQ3ZyT0kMnTxCoUFyohl3lLcJD4tOoAWC jj0HAB8EkE1QULUwa/PLRPQPw2OddoQgIOe1bLs+lp8KEbPqvnU6X3z0JqjRPhpR AQ6UgLlIglb2lyo7BetbUJlnh8gMw== X-ME-Sender: X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 3D1D4E405B; Sun, 18 Nov 2018 11:36:51 -0500 (EST) From: Thomas Monjalon To: Anoob Joseph , "Dwivedi, Ankur" Cc: dev@dpdk.org, Akhil Goyal , Pablo de Lara , "Jacob, Jerin" , "Athreya, Narayana Prasad" , "Joseph, Anoob" Date: Sun, 18 Nov 2018 17:36:50 +0100 Message-ID: <1670873.f7ehEq6XVY@xps> In-Reply-To: <1542258584-5779-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1542258584-5779-1-git-send-email-anoob.joseph@caviumnetworks.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] common/cpt: fix bad shift operation 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: , X-List-Received-Date: Sun, 18 Nov 2018 16:36:53 -0000 15/11/2018 06:10, Anoob Joseph: > From: Ankur Dwivedi > > Coverity Issue: 323477 > > Using the rte_bsf32 function to find last set bit. This avoids > the for loop and hence the bad bit shift operation. > > Fixes: 351fbee21986 ("common/cpt: support hash") > > Signed-off-by: Ankur Dwivedi > Signed-off-by: Anoob Joseph Applied, thanks