From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140073.outbound.protection.outlook.com [40.107.14.73]) by dpdk.org (Postfix) with ESMTP id AA9BE5F14 for ; Fri, 8 Mar 2019 04:21:18 +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=tFhbtNQMp6OHIfssDsnPPMGLVRBi0gIGTxX5Fo7A3IE=; b=jIqhYUQNBdtZ/tP0+MgoTT307aRNBJE2Ej84BBKOqr4q3rnl9agqihKATxrSO2ohqcyraU1iwTCIqLfhXGfHZ12NXW+0bjA7EntLnrCK1/cUeRH7aIRsLfwB9JoCmuuXmsURtOknwUJ2fdVtbJMx7nGcz9w3TthYKWFG+Pirp8g= Received: from AM6PR08MB3672.eurprd08.prod.outlook.com (20.177.115.76) by AM6PR08MB3064.eurprd08.prod.outlook.com (52.135.163.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1686.18; Fri, 8 Mar 2019 03:21:17 +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.1665.021; Fri, 8 Mar 2019 03:21:17 +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/U32CtPzl0aCGaPiZ5eq9qX/3LWAgAAJ9ACAAAXAgIAAD8EAgAAJPoCAAQlcMA== Date: Fri, 8 Mar 2019 03:21:17 +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> In-Reply-To: <2601191342CEEE43887BDE71AB97725801365527AC@irsmsx105.ger.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [217.140.111.135] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 717a24f6-ba82-478a-636f-08d6a37520a0 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM6PR08MB3064; x-ms-traffictypediagnostic: AM6PR08MB3064: x-ms-exchange-purlcount: 1 x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr nodisclaimer: True x-microsoft-exchange-diagnostics: 1; AM6PR08MB3064; 20:sxM8IpuGIJ1hZq0E/1NaW4b0O6tBmQAGeUWgCaF9lh4Bh3kA/ytpdGjA7ikhZcyAqpY76HShzgQYawdD2Ull3StEFlYsm2sfHQwUmNotacVmau1UxWziJUJj4T+z/000aRu0kWHgK6w5MxbEJIntb3WKq0vp4+2vrWqkWQBYpD8= x-microsoft-antispam-prvs: x-forefront-prvs: 0970508454 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(366004)(396003)(376002)(136003)(39860400002)(189003)(199004)(229853002)(33656002)(99286004)(478600001)(97736004)(86362001)(6506007)(6436002)(76176011)(25786009)(54906003)(72206003)(14454004)(7696005)(966005)(316002)(66066001)(6246003)(105586002)(4326008)(110136005)(106356001)(305945005)(7736002)(14444005)(256004)(52536013)(186003)(71200400001)(74316002)(71190400001)(102836004)(81166006)(8936002)(93886005)(8676002)(81156014)(6346003)(11346002)(446003)(476003)(486006)(26005)(3846002)(68736007)(7416002)(6306002)(9686003)(5660300002)(2501003)(53936002)(2906002)(6116002)(55016002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR08MB3064; H:AM6PR08MB3672.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) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Honnappa.Nagarahalli@arm.com; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: eFNlBaVLiA32EqBOxA2eb5QV5XagezUC1sriY1nts0d+rjkO8vCwCrwaII9QXP1on4/x8xWI9qvouG1JUqjaY+6wiX5OiNQshpdGv1rEzJlMvHF7zBndzhx+dQ7Xs7RwKBP9fm4yS4rOfnzmCXR4MZdFv9GL7owEium5uBvkd/cDO/0AeNa1+Ir5J/C8AQOcwMfgE+AdtBkuj6yuFlsLk8ivLQ48uY3FSmUrwLixDdrapMarvEN42B9JeEO+VJr4rv91Ik3jreBqOBoD70h1FOxYMqZQtcYmThVlFV90tb8ZgWMNFwAorbubaIqZrXSWtbWKX7U+4w58znF+HO1cFfsEu9C6EGPNYbLd0H7udYRhXAQX40kaKEgZ2MYyorfk2RvuiPYoJ6ZvkHZcVYapiRjCxA5PRJRKoPw7Y2Yk7W0= 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: 717a24f6-ba82-478a-636f-08d6a37520a0 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Mar 2019 03:21:17.2396 (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: AM6PR08MB3064 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: Fri, 08 Mar 2019 03:21:18 -0000 PiBIaSBHYXZpbiwNCj4gDQo+ID4gPiA+Pj4gSW4gd2VhayBtZW1vcnkgbW9kZWxzLCBsaWtlIGFy bTY0LCByZWFkaW5nIHRoZSB7cHJvZCxjb25zfS50YWlsDQo+ID4gPiA+Pj4gbWF5IGdldCByZW9y ZGVyZWQgYWZ0ZXIgcmVhZGluZyBvciB3cml0aW5nIHRoZSByaW5nIHNsb3RzLCB3aGljaA0KPiA+ ID4gPj4+IGNvcnJ1cHRzIHRoZSByaW5nIGFuZCBzdGFsZSBkYXRhIGlzIG9ic2VydmVkLg0KPiA+ ID4gPj4+DQo+ID4gPiA+Pj4gVGhpcyBpc3N1ZSB3YXMgcmVwb3J0ZWQgYnkgTlhQIG9uIDgtQTcy IERQQUEyIGJvYXJkLiBUaGUgcHJvYmxlbQ0KPiA+ID4gPj4+IGlzDQo+ID4gPiA+PiBtb3N0DQo+ ID4gPiA+Pj4gbGlrZWx5IGNhdXNlZCBieSBtaXNzaW5nIHRoZSBhY3F1aXJlIHNlbWFudGljcyB3 aGVuIHJlYWRpbmcNCj4gPiA+ID4+PiBjb25zLnRhaWwgKGluIFNQIGVucXVldWUpIG9yIHByb2Qu dGFpbCAoaW4gU0MgZGVxdWV1ZSkgd2hpY2gNCj4gPiA+ID4+PiBtYWtlcyBpdCBwb3NzaWJsZSB0 bw0KPiA+ID4gcmVhZA0KPiA+ID4gPj4gYQ0KPiA+ID4gPj4+IHN0YWxlIHZhbHVlIGZyb20gdGhl IHJpbmcgc2xvdHMuDQo+ID4g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