From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 81EFB1B315 for ; Fri, 26 Jan 2018 18:14:44 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 03CB220DD9; Fri, 26 Jan 2018 12:14:44 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Fri, 26 Jan 2018 12:14:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=yW0YvlsLaPHCYHNdZzeDXePQtc 0BnYf+MKPMkdnuQFI=; b=SjkkWosR13CEtkXOilzvPQ0t9nPrzMd0fhyRkp4MOH YqQYJ2kngG2Tt9rMmnc34TUcBfixLsJuOFFRrt8oAzsmLn61s22C0UPfrvP8kA0g SMCc5TgNmrxwG17hsf9C2yGJuer3ayjmT6ygrDfhtEs/MKLlPSWb86loDwP00d4u Q= 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-sender:x-me-sender:x-sasl-enc; s=fm1; bh=yW0Yvl sLaPHCYHNdZzeDXePQtc0BnYf+MKPMkdnuQFI=; b=GxLLXyZSsTKoxHap+jb9MM nAoMDZsTOX6Mimu1zMCGLk14a47iBGWVgOQTWFKTMD0Y76Xwg4p5lGkTJr1pOy9U MoWQ9MoYNbWbxgqAXRmHZcBZNtWqXv3huHBGUPEeQgiJM2fgFPSaGn3cu+8QSBbB 5k4GfIJusV8BLOFtv3GIVksPt2hGGqro0g5WF6ETvRaUaecvXj9BAp+mXR4nPMf6 p+bo5ybZyqJVzg3XplLk9MODhyId160ni+yAhHFByREyqENK729EF4y8q0pXYJsp lHSzgbNIUC3NWdUCeRGe0GqCwOEtm2pQkcDmcC3NHiXNzPyzNCWPzGxW+xkfpEog == X-ME-Sender: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 9496324606; Fri, 26 Jan 2018 12:14:43 -0500 (EST) From: Thomas Monjalon To: Stephen Hemminger Cc: dev@dpdk.org, Chao Zhu , bruce.richardson@intel.com, konstantin.ananyev@intel.com Date: Fri, 26 Jan 2018 18:14:01 +0100 Message-ID: <3131860.My9xXdrCmY@xps> In-Reply-To: <20180126020151.979-2-stephen@networkplumber.org> References: <20180126020151.979-1-stephen@networkplumber.org> <20180126020151.979-2-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v8 01/15] eal: introduce atomic exchange 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: Fri, 26 Jan 2018 17:14:44 -0000 26/01/2018 03:01, Stephen Hemminger: > To handle atomic update of link status (64 bit), every driver > was doing its own version using cmpset. > Atomic exchange is a useful primitive in its own right; > therefore make it a EAL routine. > > Signed-off-by: Stephen Hemminger > --- > .../common/include/arch/ppc_64/rte_atomic.h | 21 +++++- > .../common/include/arch/x86/rte_atomic.h | 24 +++++++ > .../common/include/arch/x86/rte_atomic_32.h | 12 ++++ > .../common/include/arch/x86/rte_atomic_64.h | 12 ++++ > lib/librte_eal/common/include/generic/rte_atomic.h | 78 ++++++++++++++++++++++ > 5 files changed, 146 insertions(+), 1 deletion(-) Looks good, thanks. It probably deserves a review by PPC experts. Adding Chao, maintainer of this part. + Bruce and Konstantin for x86 part.