From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60046.outbound.protection.outlook.com [40.107.6.46]) by dpdk.org (Postfix) with ESMTP id C4B592C24 for ; Sun, 10 Mar 2019 21:47:55 +0100 (CET) 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=tMjSdcxrREN6ODLMGEIay3U1gPan5LJSw9d1MET+kDM=; b=SSqcOfBDInf+u3uxNGMn8wGEdnd144FAptl7Dcm0SH6YAFl026WEojmTiNZm70dAf0m/bfkyFzL9EZh7byg6YwYYIkpUgIEuPjYLfRbx+5EpnGamhQ/eXKXbBWm2LC+YAWTswmfNd6koZEE47XVmAWTGR6yZFUkAy6mTzMm2j7c= Received: from AM6PR08MB3672.eurprd08.prod.outlook.com (20.177.115.76) by AM6PR08MB4487.eurprd08.prod.outlook.com (20.179.18.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1686.16; Sun, 10 Mar 2019 20:47:54 +0000 Received: from AM6PR08MB3672.eurprd08.prod.outlook.com ([fe80::4d90:78f1:e670:14d5]) by AM6PR08MB3672.eurprd08.prod.outlook.com ([fe80::4d90:78f1:e670:14d5%3]) with mapi id 15.20.1686.021; Sun, 10 Mar 2019 20:47:54 +0000 From: Honnappa Nagarahalli To: "Ananyev, Konstantin" , "Gavin Hu (Arm Technology China)" , Ilya Maximets , "dev@dpdk.org" CC: nd , "thomas@monjalon.net" , "jerinj@marvell.com" , "hemant.agrawal@nxp.com" , "Nipun.gupta@nxp.com" , "olivier.matz@6wind.com" , "Richardson, Bruce" , "chaozhu@linux.vnet.ibm.com" , nd Thread-Topic: [PATCH v2] ring: enforce reading the tails before ring operations Thread-Index: AQHU1LF2/U32CtPzl0aCGaPiZ5eq9qYAA0EQgAEPFYCAACNFgIAAr7nwgANtirA= Date: Sun, 10 Mar 2019 20:47:54 +0000 Message-ID: References: <1551841661-42892-1-git-send-email-gavin.hu@arm.com> <1551941137-33250-1-git-send-email-gavin.hu@arm.com> <3cdf6747-21f3-d77e-0935-d73b5cc617f6@samsung.com> <2601191342CEEE43887BDE71AB97725801365527AC@irsmsx105.ger.corp.intel.com> <2601191342CEEE43887BDE71AB9772580136556F68@irsmsx105.ger.corp.intel.com> In-Reply-To: <2601191342CEEE43887BDE71AB9772580136556F68@irsmsx105.ger.corp.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: 47f97dc9-5124-4005-837b-08d6a599ab59 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600127)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:AM6PR08MB4487; x-ms-traffictypediagnostic: AM6PR08MB4487: x-ms-exchange-purlcount: 1 x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr nodisclaimer: True x-microsoft-exchange-diagnostics: 1; AM6PR08MB4487; 20:p30BMvuz0lqGpg7DJe1ASW+73PsKuylsE6Kc8Adeuwm38dB9uki9NTVdUxE54XgzQo1ps4AoeXRWJS9veFypP//p1DB4zFjM0vOQRVF/UK8AnQjDDQyiJNYesC8FuTvOFhFrgDRFH08WCAifg2wdXU1FoKUlKFBvD37KVG6lwiI= x-microsoft-antispam-prvs: x-forefront-prvs: 0972DEC1D9 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(136003)(376002)(366004)(39850400004)(346002)(199004)(189003)(305945005)(93886005)(8676002)(9686003)(81156014)(81166006)(71190400001)(86362001)(54906003)(6306002)(110136005)(6246003)(71200400001)(186003)(7736002)(256004)(14444005)(3846002)(4326008)(229853002)(53936002)(68736007)(25786009)(7416002)(66066001)(74316002)(6116002)(33656002)(97736004)(2501003)(476003)(72206003)(486006)(26005)(2906002)(446003)(966005)(11346002)(105586002)(106356001)(478600001)(52536013)(6436002)(55016002)(5660300002)(316002)(76176011)(99286004)(7696005)(6506007)(14454004)(102836004)(8936002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR08MB4487; H:AM6PR08MB3672.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: gFf11TANi4JcIDzQ3My8wUTvd76itzu81bh/XlFYwx9bDPLKf9uurCxJ6H98/Xl5TJC8il/J+7P90sbdN17zWun6qx1XjZWEZYvT063Jstn60kOqolq3UjVTda5jvJ0I7kaJ1gXD/cVpLk4B1zJ0duZGYIKK749Yod3USdwyZzKt4sUE+OuMJVW1BrqJ/aLhEh7kgQggVTklgmEZws8ub67nDX/dd1kAFmEzMfZvcZm7JM25YjBdszDJHL+4/b0mehzovlC37JiUV+95KM9wK6iC5Q9f/q0VfxXdd6CLIzaNQky4jWm889l2zjB1LwTE7cuM9nqMM2LTpX3SWtXryWNgcPNtwOTbdC9t32CK4qTPgzvv86V4EBtCY/DdhsfeYEcQCyXvRX2YtHqq20NOxRXEbOAoHcy5EI4KUAkCnYA= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: 47f97dc9-5124-4005-837b-08d6a599ab59 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Mar 2019 20:47:54.2112 (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: AM6PR08MB4487 Subject: Re: [dpdk-dev] [PATCH v2] ring: enforce reading the tails before ring operations 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, 10 Mar 2019 20:47:56 -0000 PiA+ID4gPiA+ID4gPj4+IEluIHdlYWsgbWVtb3J5IG1vZGVscywgbGlrZSBhcm02NCwgcmVhZGlu ZyB0aGUNCj4gPiA+ID4gPiA+ID4+PiB7cHJvZCxjb25zfS50YWlsIG1heSBnZXQgcmVvcmRlcmVk IGFmdGVyIHJlYWRpbmcgb3INCj4gPiA+ID4gPiA+ID4+PiB3cml0aW5nIHRoZSByaW5nIHNsb3Rz LCB3aGljaCBjb3JydXB0cyB0aGUgcmluZyBhbmQgc3RhbGUgZGF0YSBpcw0KPiBvYnNlcnZlZC4N Cj4gPiA+ID4gPiA+ID4+Pg0KPiA+ID4gPiA+ID4gPj4+IFRoaXMgaXNzdWUgd2FzIHJlcG9ydGVk IGJ5IE5YUCBvbiA4LUE3MiBEUEFBMiBib2FyZC4gVGhlDQo+ID4gPiBwcm9ibGVtDQo+ID4gPiA+ ID4gPiA+Pj4gaXMNCj4gPiA+ID4gPiA+ID4+IG1vc3QNCj4gPiA+ID4gPiA+ID4+PiBsaWtlbHkg Y2F1c2VkIGJ5IG1pc3NpbmcgdGhlIGFjcXVpcmUgc2VtYW50aWNzIHdoZW4NCj4gPiA+ID4gPiA+ ID4+PiByZWFkaW5nIGNvbnMudGFpbCAoaW4gU1AgZW5xdWV1ZSkgb3IgcHJvZC50YWlsIChpbiBT Qw0KPiA+ID4gPiA+ID4gPj4+IGRlcXVldWUpIHdoaWNoIG1ha2VzIGl0IHBvc3NpYmxlIHRvDQo+ ID4gPiA+ID4gPiByZWF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