From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130075.outbound.protection.outlook.com [40.107.13.75]) by dpdk.org (Postfix) with ESMTP id 899E834F3 for ; Tue, 2 Apr 2019 13:11:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=d/bRcUcC3cNZ+yYD1RnKyhjPCc7nHrFreV6oV91oNJg=; b=fWgtBkB4GQ7u4q/i7hYz6cQd5l69yIHjmXebtiyZW1/6YjaTExFUJUCeRaMnIebYA1jIBWicaLKLy+rt4HdmMRGJug0tB1m53F2t24FX5DP5y8g1umF2XaK/4ZagHYOAdUjwPI2XRAJSR7MJ0RyhCxYhbN7ynnXxHfXRhlmdYw0= Received: from VE1PR08MB5149.eurprd08.prod.outlook.com (20.179.30.152) by VE1PR08MB4800.eurprd08.prod.outlook.com (10.255.114.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.15; Tue, 2 Apr 2019 11:11:36 +0000 Received: from VE1PR08MB5149.eurprd08.prod.outlook.com ([fe80::e0ae:ecad:ec5:8177]) by VE1PR08MB5149.eurprd08.prod.outlook.com ([fe80::e0ae:ecad:ec5:8177%2]) with mapi id 15.20.1750.017; Tue, 2 Apr 2019 11:11:36 +0000 From: Honnappa Nagarahalli To: Gage Eads , "dev@dpdk.org" CC: "olivier.matz@6wind.com" , "arybchenko@solarflare.com" , "bruce.richardson@intel.com" , "konstantin.ananyev@intel.com" , "Gavin Hu (Arm Technology China)" , nd , "thomas@monjalon.net" , nd Thread-Topic: [PATCH v6 6/8] stack: add C11 atomic implementation Thread-Index: AQHU6NAC354wUwf4UkC9Wyeo21N08KYot5Fw Date: Tue, 2 Apr 2019 11:11:36 +0000 Message-ID: References: <20190401001238.17625-1-gage.eads@intel.com> <20190401211429.20282-1-gage.eads@intel.com> <20190401211429.20282-7-gage.eads@intel.com> In-Reply-To: <20190401211429.20282-7-gage.eads@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Honnappa.Nagarahalli@arm.com; x-originating-ip: [217.140.103.75] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 389bb24d-f194-462e-c8ad-08d6b75bf919 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600139)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:VE1PR08MB4800; x-ms-traffictypediagnostic: VE1PR08MB4800: x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr nodisclaimer: True x-microsoft-antispam-prvs: x-forefront-prvs: 0995196AA2 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(366004)(136003)(346002)(396003)(376002)(189003)(199004)(68736007)(110136005)(72206003)(6506007)(71200400001)(52536014)(71190400001)(74316002)(97736004)(476003)(478600001)(486006)(14454004)(106356001)(446003)(54906003)(66066001)(11346002)(305945005)(105586002)(33656002)(8936002)(229853002)(53936002)(6436002)(6116002)(26005)(9686003)(2906002)(99286004)(7696005)(2501003)(3846002)(76176011)(55016002)(8676002)(81156014)(4326008)(186003)(6246003)(5660300002)(4744005)(7736002)(316002)(25786009)(81166006)(14444005)(256004)(86362001)(102836004); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR08MB4800; H:VE1PR08MB5149.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: D4cgrysG+KEFnPDFRSPx/dJB/8do70J4lwgJp891DbeBJn0iJjbJeASuCHfwoPPzJRPVOI236kgzi4660VsDAZQiKNFjuavN3TUYq5l81cKr74vPT9xdZwAbX6H1CvF08quYrhP2KDayMCTXbbceG8jY/J4pC1HjEd0QU2eZy1ItL9Y9Gd9uy591GgzO0asjPtKHKmok3Tq0Ew4yHSUV+YzSVmdZDlENqSgYpkiluC/xq4IZyYYHXAmxlRScEYZvcpUnv3mPu3e+19F8JIfqrIySMzddmopO1QRkaPc7q6r7Jf4KbNIPRX7Dv0AoBmyUrKhk5IOj+VFIMak/IryrtEXRIrLpiqm8fK/d4qBvgR3c1zvHemitfanHWgz168y7QgK5Bk+yvrePCQn583a2W+yAuH3wNRkxhUxXJpJe340= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: 389bb24d-f194-462e-c8ad-08d6b75bf919 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Apr 2019 11:11:36.6856 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB4800 Subject: Re: [dpdk-dev] [PATCH v6 6/8] stack: add C11 atomic implementation 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: Tue, 02 Apr 2019 11:11:39 -0000 > Subject: [PATCH v6 6/8] stack: add C11 atomic implementation >=20 > This commit adds an implementation of the lock-free stack push, pop, and > length functions that use __atomic builtins, for systems that benefit fro= m the > finer-grained memory ordering control. >=20 > Signed-off-by: Gage Eads > Reviewed-by: Olivier Matz > --- Reviewed-by: Honnappa Nagarahalli From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id B86A8A0679 for ; Tue, 2 Apr 2019 13:11:41 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DEC9F378B; Tue, 2 Apr 2019 13:11:40 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130075.outbound.protection.outlook.com [40.107.13.75]) by dpdk.org (Postfix) with ESMTP id 899E834F3 for ; Tue, 2 Apr 2019 13:11:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=d/bRcUcC3cNZ+yYD1RnKyhjPCc7nHrFreV6oV91oNJg=; b=fWgtBkB4GQ7u4q/i7hYz6cQd5l69yIHjmXebtiyZW1/6YjaTExFUJUCeRaMnIebYA1jIBWicaLKLy+rt4HdmMRGJug0tB1m53F2t24FX5DP5y8g1umF2XaK/4ZagHYOAdUjwPI2XRAJSR7MJ0RyhCxYhbN7ynnXxHfXRhlmdYw0= Received: from VE1PR08MB5149.eurprd08.prod.outlook.com (20.179.30.152) by VE1PR08MB4800.eurprd08.prod.outlook.com (10.255.114.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.15; Tue, 2 Apr 2019 11:11:36 +0000 Received: from VE1PR08MB5149.eurprd08.prod.outlook.com ([fe80::e0ae:ecad:ec5:8177]) by VE1PR08MB5149.eurprd08.prod.outlook.com ([fe80::e0ae:ecad:ec5:8177%2]) with mapi id 15.20.1750.017; Tue, 2 Apr 2019 11:11:36 +0000 From: Honnappa Nagarahalli To: Gage Eads , "dev@dpdk.org" CC: "olivier.matz@6wind.com" , "arybchenko@solarflare.com" , "bruce.richardson@intel.com" , "konstantin.ananyev@intel.com" , "Gavin Hu (Arm Technology China)" , nd , "thomas@monjalon.net" , nd Thread-Topic: [PATCH v6 6/8] stack: add C11 atomic implementation Thread-Index: AQHU6NAC354wUwf4UkC9Wyeo21N08KYot5Fw Date: Tue, 2 Apr 2019 11:11:36 +0000 Message-ID: References: <20190401001238.17625-1-gage.eads@intel.com> <20190401211429.20282-1-gage.eads@intel.com> <20190401211429.20282-7-gage.eads@intel.com> In-Reply-To: <20190401211429.20282-7-gage.eads@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Honnappa.Nagarahalli@arm.com; x-originating-ip: [217.140.103.75] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 389bb24d-f194-462e-c8ad-08d6b75bf919 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600139)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:VE1PR08MB4800; x-ms-traffictypediagnostic: VE1PR08MB4800: x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr nodisclaimer: True x-microsoft-antispam-prvs: x-forefront-prvs: 0995196AA2 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(366004)(136003)(346002)(396003)(376002)(189003)(199004)(68736007)(110136005)(72206003)(6506007)(71200400001)(52536014)(71190400001)(74316002)(97736004)(476003)(478600001)(486006)(14454004)(106356001)(446003)(54906003)(66066001)(11346002)(305945005)(105586002)(33656002)(8936002)(229853002)(53936002)(6436002)(6116002)(26005)(9686003)(2906002)(99286004)(7696005)(2501003)(3846002)(76176011)(55016002)(8676002)(81156014)(4326008)(186003)(6246003)(5660300002)(4744005)(7736002)(316002)(25786009)(81166006)(14444005)(256004)(86362001)(102836004); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR08MB4800; H:VE1PR08MB5149.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: D4cgrysG+KEFnPDFRSPx/dJB/8do70J4lwgJp891DbeBJn0iJjbJeASuCHfwoPPzJRPVOI236kgzi4660VsDAZQiKNFjuavN3TUYq5l81cKr74vPT9xdZwAbX6H1CvF08quYrhP2KDayMCTXbbceG8jY/J4pC1HjEd0QU2eZy1ItL9Y9Gd9uy591GgzO0asjPtKHKmok3Tq0Ew4yHSUV+YzSVmdZDlENqSgYpkiluC/xq4IZyYYHXAmxlRScEYZvcpUnv3mPu3e+19F8JIfqrIySMzddmopO1QRkaPc7q6r7Jf4KbNIPRX7Dv0AoBmyUrKhk5IOj+VFIMak/IryrtEXRIrLpiqm8fK/d4qBvgR3c1zvHemitfanHWgz168y7QgK5Bk+yvrePCQn583a2W+yAuH3wNRkxhUxXJpJe340= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: 389bb24d-f194-462e-c8ad-08d6b75bf919 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Apr 2019 11:11:36.6856 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB4800 Subject: Re: [dpdk-dev] [PATCH v6 6/8] stack: add C11 atomic implementation 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" Message-ID: <20190402111136.ZtAATlN-yTxogtEa5SZqM5ZzTcuiHz7234z1Ioz-O0Y@z> > Subject: [PATCH v6 6/8] stack: add C11 atomic implementation >=20 > This commit adds an implementation of the lock-free stack push, pop, and > length functions that use __atomic builtins, for systems that benefit fro= m the > finer-grained memory ordering control. >=20 > Signed-off-by: Gage Eads > Reviewed-by: Olivier Matz > --- Reviewed-by: Honnappa Nagarahalli