From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 647CEA00C5; Wed, 13 May 2020 21:25:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id ADA2A1D551; Wed, 13 May 2020 21:25:24 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130051.outbound.protection.outlook.com [40.107.13.51]) by dpdk.org (Postfix) with ESMTP id 021681D534 for ; Wed, 13 May 2020 21:25:22 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ifx6VWBZaHRwEdvJpkI+XTudMXMzMWamMMs3qq/rsjuWiMrdb+VsZ1A8s7/jz+mj5dGuo5WXuTHlsJsoJkCwVD8PUuy2RKl37CQk7442lEHmxN98a21Q8dXsWJxC2guOQ8y5I1YZ6GFQfmCxPrLM+tuJnRzynOypIWDfaJ3SLiN11s1XomUCCcUHugqV993Btqq38TaKeYNB5xAGr4jwfkT9zjFE1sfNnMWJCRYAPqzyvgYKVUykTJFqGxe9OzOBd3EQZH1xLSNn4VjxXtzneDG8TN4IJgDNDky1iqS34WguaiX4kQOv5Gi0X2ewqpQLvlBUwQEu2XhjH4oni9o6eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xoUIIl8JBvSBqVKwODMX1Hf8eNM2IvsdfpUuWGnHLuQ=; b=FCUs0Qkplw32aGVqLfYNEqaTuskkI3xtlAo4XOjT05RvQ1WCQfS6smU0ZrB6VLDxwciIyRt8i+6f0CENMvFcBt+wj0EsqaJMy3gDeZTE9ytJK4s5oILx2Yx3PWYkTcwXqUEhSq83tsC1ObRWVZtPHSgXTPH52FLcPd1F+0q5lgIugdQnTzfafmlxdoZdQPg706MTkiqWzR695fGHU1FIQjSrcgEXzaj9fT9/UQNL2ZogtkJXkSfK8MTTFnXfT/j6OLik/C93c1c+NS85Mz3rkbojgRxUN9jM+dCDNNvSwg9zlr8/myC/KJUleykhSeVZYfTb0fqgprpLviexxEedZA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xoUIIl8JBvSBqVKwODMX1Hf8eNM2IvsdfpUuWGnHLuQ=; b=HXr7sy7YbUsC/8Y293RQ2CMC9/2+3zVzVy6me5UwZF8TOoodBBSkbQkNwY2lRx/hPiTd8ukMaJoH9ALA117IsUuO2fNK5SYY7RPjosq05LBuIrKe64knyZHIALTsm4XkPaGPdXzsdqFRies08/8Ta9C2ZTRnbnhZCnevLbXHY4c= Received: from HE1PR07MB4284.eurprd07.prod.outlook.com (2603:10a6:7:9f::29) by HE1PR07MB4284.eurprd07.prod.outlook.com (2603:10a6:7:9f::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.11; Wed, 13 May 2020 19:25:21 +0000 Received: from HE1PR07MB4284.eurprd07.prod.outlook.com ([fe80::542b:7b22:1f38:d985]) by HE1PR07MB4284.eurprd07.prod.outlook.com ([fe80::542b:7b22:1f38:d985%5]) with mapi id 15.20.3000.016; Wed, 13 May 2020 19:25:21 +0000 From: =?Windows-1252?Q?Mattias_R=F6nnblom?= To: Stephen Hemminger , Phil Yang CC: "thomas@monjalon.net" , "dev@dpdk.org" , "bruce.richardson@intel.com" , "ferruh.yigit@intel.com" , "hemant.agrawal@nxp.com" , "honnappa.nagarahalli@arm.com" , "jerinj@marvell.com" , "ktraynor@redhat.com" , "konstantin.ananyev@intel.com" , "maxime.coquelin@redhat.com" , "olivier.matz@6wind.com" , "mb@smartsharesystems.com" , "harry.van.haaren@intel.com" , "erik.g.carrillo@intel.com" , "nd@arm.com" Thread-Topic: [PATCH v4 4/4] eal/atomic: add wrapper for c11 atomics Thread-Index: AQHWKDQBAPoPOLaWUEiUCZ0j0YClPqikw4QAgAGkkIA= Date: Wed, 13 May 2020 19:25:21 +0000 Message-ID: <1dd1646f-d273-0630-ec50-475e28273563@ericsson.com> References: <1584407863-774-1-git-send-email-phil.yang@arm.com> <1589270586-4480-1-git-send-email-phil.yang@arm.com> <1589270586-4480-5-git-send-email-phil.yang@arm.com> <1589307606.25513.1@networkplumber.org> In-Reply-To: <1589307606.25513.1@networkplumber.org> Accept-Language: sv-SE, en-US Content-Language: sv-SE X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 authentication-results: networkplumber.org; dkim=none (message not signed) header.d=none;networkplumber.org; dmarc=none action=none header.from=ericsson.com; x-originating-ip: [95.205.75.197] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0e492b2c-55b8-4062-c7c7-08d7f7736103 x-ms-traffictypediagnostic: HE1PR07MB4284: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4941; x-forefront-prvs: 0402872DA1 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: fAYsXdNy2VgYJGUWdqxgAjFfubE0b+/rC02UBF9rlBiMOdASSk7OWWr8o33fbD+pc4dGR+N3YF44uq02ciaqSZ/LP0YYeTTLL+TFTj0RDPPwuC5kL2OjUDjz+cE4c8XbpGx7+ZqK6s8v56jYmdN4CdRyKTpZY5Y1xHQJ0cINbyul2W2giAcTuqJSlrgEhISRZwPup5+f97u/MVm7q6V5npES3CTh2KKJo+kHLTh/FnGSETDJLBoKejJ3dxjyf7y51usSI73wndriS1NsQYfbs0+pg2iYNlkFXB5qyFlvNB8XWfQYneqvDcLsUqIYRep+nI665FkYBPA878I2mITdkb++2gfJzJA/qk3U1bzplG6j431oM3oawxVjIOU6qev8Lj6GbDOf2+RdMQqeeVvVvevdZipojSDmf5/ZqYde6Xd5YNPjTYXtWpmrqroj6hCnwdplvWEe9lNRldgZ0Fw9fsyhGjS0U85a54gkq8UTNBBfy6InDDfrQKkc0R0CYi2McMzko1w0h54GWyq4squgjj+iu6YoEjlDLyuCMYEtfIK3s1iCaF9GTuO4CFQ34AhH x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR07MB4284.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(346002)(396003)(39860400002)(136003)(366004)(376002)(33430700001)(54906003)(316002)(86362001)(2616005)(2906002)(8676002)(26005)(110136005)(31686004)(8936002)(7416002)(6512007)(33440700001)(4326008)(6506007)(31696002)(53546011)(71200400001)(5660300002)(6486002)(66476007)(478600001)(66446008)(66946007)(76116006)(4744005)(66556008)(36756003)(186003)(64756008)(43740500002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: pxwLjt9inuwUOIJiBc7bus8aZIXX5gpqF6jZq0skgFDtVStyC3MgNBsg0jhkh/G7agkowPIoGvYWe28vYC12yblFfxS7c0/LNgFjDyO/iq+WttMIO+qi6VMk+0BAnCGsQLIdAmgEVbRep52VwfTzsV0Tb7fyEb03ii/OuuQuW9qyyP84qTHZHqonZTSdAmwplHhmDXP6CVi+g18nE0lPXtFIblrwRUovLtdoOF9b7Dq7VDjKyJh+ZahohldXcid5tC1qoB4xNO8tmTsCFQpuipllOu1XEp7DEm0OI+F76WErZpzmSR0O92w36OCX5PmHsg35Lu3gh6D/wjHklhp1ZXXqOkHqw6OO3PxLKuxbduCO7HK6dEhVC2xbkw0IEs1dIfPr3LXZo/EJqZxnbATTiIGAyHRT6dbbZi4vhnjvdYU+bE12sVkCQDjhAPoG4fwZSqMZ+5UP0Trx1NmXGLwWl1lsWJEElX2iJSewK9QrsEAL+VEBY9VZFBsCx4SbNLg+ x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="Windows-1252" Content-ID: <9C74EA6D356E0F42BD709871904DA3F0@eurprd07.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0e492b2c-55b8-4062-c7c7-08d7f7736103 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 May 2020 19:25:21.5492 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: bmBh5iu4AHeT3U2aMJJPCv7RqM910VlWTmThBn/9kc5e5ZVs5QaHwjYO/4Wi8acl7MeUcBIEbaJTtlsE3Z6dICDWOT1V43d/+6EF9twEfY4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB4284 Subject: Re: [dpdk-dev] [PATCH v4 4/4] eal/atomic: add wrapper for c11 atomics 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 2020-05-12 20:20, Stephen Hemminger wrote: > On Tue, May 12, 2020 at 4:03 pm, Phil Yang wrote: >> parameter. Signed-off-by: Phil Yang > > > > > What is the purpose of having rte_atomic at all? > Is this level of indirection really helping? > To allow a different implementation than the GCC built-ins, for certain=20 functions and architectures. To allow extensions (i.e. atomic functions=20 that aren't GCC built-ins) in a clean way. To avoid using GCC built-ins=20 directly, both for cosmetic reasons, and that it might cause problem for=20 future compilers.