From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140084.outbound.protection.outlook.com [40.107.14.84]) by dpdk.org (Postfix) with ESMTP id 6CED21B137 for ; Fri, 8 Mar 2019 06:06:14 +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=l94l5Au2tJnb9OcfFF/gdPc4MHme82t4uxi/S4VliCk=; b=E7genPzACWlrSGF2Y8mg7Wwb2hEAMU0aJD+Y1WKz2No4x4gUS4M+IDLxiMPd6Oc2QSOJtoot+LlkJ0QFX1XUV5OOJcmynBDlihMYeX6w8dKPYu8m2KzWKnZNT8zGwE9jfdGUEoU3+T6nCpvtBvatumgLn4asJ5kAwgyN0XcZ1e4= Received: from AM6PR08MB3672.eurprd08.prod.outlook.com (20.177.115.76) by AM6SPR01MB10.eurprd08.prod.outlook.com (52.135.169.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1686.16; Fri, 8 Mar 2019 05:06:12 +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 05:06:12 +0000 From: Honnappa Nagarahalli To: "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" , "bruce.richardson@intel.com" , "konstantin.ananyev@intel.com" , "chaozhu@linux.vnet.ibm.com" , nd Thread-Topic: [PATCH v2] ring: enforce reading the tails before ring operations Thread-Index: AQHU1LF2/U32CtPzl0aCGaPiZ5eq9qX/3LWAgAAJ9ACAAAXAgIAAD8EAgAEnwACAAAsKcA== Date: Fri, 8 Mar 2019 05:06:12 +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> In-Reply-To: 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.111.135] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 59906c50-1240-4145-25a4-08d6a383c907 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:AM6SPR01MB10; x-ms-traffictypediagnostic: AM6SPR01MB10: x-ms-exchange-purlcount: 2 x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr nodisclaimer: True x-microsoft-exchange-diagnostics: 1; AM6SPR01MB10; 20:9YSIsOUPt6srAXl01lBVD7wbwdpWPQKFiFlD64Pu1hL8krUn4lOR06XQIEt1kcv0mNmPRk/EiAfs7CT/q9sKofCCR2QK1xdAuNevzzIeROuJFpGNXUOrYCigCeJkApovRHbEhK1eYm6qmqRWtKDMWJMruBhzCpmgIZ8RocQVpLw= x-microsoft-antispam-prvs: x-forefront-prvs: 0970508454 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(136003)(396003)(39860400002)(366004)(376002)(189003)(199004)(5660300002)(6506007)(106356001)(102836004)(53546011)(7416002)(105586002)(76176011)(72206003)(2906002)(25786009)(52536013)(99286004)(478600001)(7696005)(486006)(966005)(33656002)(86362001)(229853002)(74316002)(186003)(68736007)(2501003)(54906003)(305945005)(26005)(97736004)(3846002)(7736002)(6116002)(8936002)(71190400001)(14444005)(93886005)(71200400001)(256004)(8676002)(81166006)(81156014)(66066001)(110136005)(55016002)(9686003)(6306002)(6436002)(316002)(446003)(11346002)(14454004)(476003)(53936002)(4326008)(6246003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6SPR01MB10; 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) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: TcbxTRF33LQEkrSnQrZI4tnxCoceRYm6swcKsZn6lj3dsPXW1FLGYKplXDisY1Sg/yu9Cs2l54NGO6BENxMszvLn1W3h5L6XJLdhx98Ly+NvpyrqddTa4YylMQt+he+dJ2qCRfdOGdsHwICiNOVFNyouRuR0NSe0NLdoK4/GoNiuz1WT0eCik0vHjRDZy4NhhiUomBaGB0nTpOo8o0EAKuSUb5F+75nJgqsngJG6hRcY0Fc983qNzzzeg07Z5Gh2m8E+TC7DGitw3rg2lfs5et7QQ/2SfzMNOem0HPO7WFGEvacsOHPM3QXN/r0B1LAxIRK2qmOOSE1Sv06o6N/lgBs99CFLo8t/MD2or/E3VHOMYV0MI/pnMBbIKZF7NtOvuJv4Q1MYQy0b7EcodDtpZqRaxRN5iUL3MNZso5aJnwI= 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: 59906c50-1240-4145-25a4-08d6a383c907 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Mar 2019 05:06:12.7135 (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: AM6SPR01MB10 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 05:06:14 -0000 PiA+ID4gPj4gT24gMDcuMDMuMjAxOSA5OjQ1LCBnYXZpbiBodSB3cm90ZToNCj4gPiA+ID4+PiBJ biB3ZWFrIG1lbW9yeSBtb2RlbHMsIGxpa2UgYXJtNjQsIHJlYWRpbmcgdGhlIHtwcm9kLGNvbnN9 LnRhaWwNCj4gPiA+ID4+PiBtYXkNCj4gPiBnZXQNCj4gPiA+ID4+PiByZW9yZGVyZWQgYWZ0ZXIg cmVhZGluZyBvciB3cml0aW5nIHRoZSByaW5nIHNsb3RzLCB3aGljaA0KPiA+ID4gPj4+IGNvcnJ1 cHRzIHRoZQ0KPiA+IHJpbmcNCj4gPiA+ID4+PiBhbmQgc3RhbGUgZGF0YSBpcyBvYnNlcnZlZC4N Cj4gPiA+ID4+Pg0KPiA+ID4gPj4+IFRoaXMgaXNzdWUgd2FzIHJlcG9ydGVkIGJ5IE5YUCBvbiA4 LUE3MiBEUEFBMiBib2FyZC4gVGhlIHByb2JsZW0NCj4gPiBpcw0KPiA+ID4gPj4gbW9zdA0KPiA+ ID4gPj4+IGxpa2VseSBjYXVzZWQgYnkgbWlzc2luZyB0aGUgYWNxdWlyZSBzZW1hbnRpY3Mgd2hl biByZWFkaW5nDQo+ID4gPiA+Pj4gY29ucy50YWlsDQo+ID4gKGluDQo+ID4gPiA+Pj4gU1AgZW5x dWV1ZSkgb3IgcHJvZC50YWlsIChpbiBTQyBkZXF1ZXVlKSB3aGljaCBtYWtlcyBpdCBwb3NzaWJs ZQ0KPiA+ID4gPj4+IHRvDQo+ID4gPiByZWFkDQo+ID4gPiA+PiBhDQo+ID4gPiA+Pj4gc3RhbGUg dmFsdWUgZnJvbSB0aGUgcmluZyBzbG90cy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