From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id D230E1B2C5 for ; Fri, 26 Jan 2018 18:59:25 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jan 2018 09:59:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,417,1511856000"; d="scan'208";a="196515828" Received: from irsmsx102.ger.corp.intel.com ([163.33.3.155]) by orsmga005.jf.intel.com with ESMTP; 26 Jan 2018 09:59:23 -0800 Received: from irsmsx103.ger.corp.intel.com ([169.254.3.197]) by IRSMSX102.ger.corp.intel.com ([169.254.2.95]) with mapi id 14.03.0319.002; Fri, 26 Jan 2018 17:59:23 +0000 From: "Ananyev, Konstantin" To: Stephen Hemminger , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v8 01/15] eal: introduce atomic exchange operation Thread-Index: AQHTlkm7orRmlhbkD0C3NruvWGBpHqOGcdEg Date: Fri, 26 Jan 2018 17:59:22 +0000 Message-ID: <2601191342CEEE43887BDE71AB977258905647BB@IRSMSX103.ger.corp.intel.com> References: <20180126020151.979-1-stephen@networkplumber.org> <20180126020151.979-2-stephen@networkplumber.org> In-Reply-To: <20180126020151.979-2-stephen@networkplumber.org> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZmQ2ZTYyMmYtM2E5Yy00ODlhLTgzZGItNDdjMGVhZTUyOTViIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IlJoYTBpUXBTTWQxaTJ1bHZTQkhhVFoxXC90eWlPcmcrWmRORTBQTyt6VGJnPSJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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:59:27 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Stephen Hemminger > Sent: Friday, January 26, 2018 2:02 AM > To: dev@dpdk.org > Cc: Stephen Hemminger > Subject: [dpdk-dev] [PATCH v8 01/15] eal: introduce atomic exchange opera= tion >=20 > 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. >=20 > 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 ++++++++++++++++= ++++++ Acked-by: Konstantin Ananyev