From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id CE4B027D for ; Fri, 8 Mar 2019 16:50:32 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Mar 2019 07:50:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,456,1544515200"; d="scan'208";a="129959704" Received: from irsmsx151.ger.corp.intel.com ([163.33.192.59]) by fmsmga008.fm.intel.com with ESMTP; 08 Mar 2019 07:50:27 -0800 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.210]) by IRSMSX151.ger.corp.intel.com ([169.254.4.91]) with mapi id 14.03.0415.000; Fri, 8 Mar 2019 15:50:27 +0000 From: "Ananyev, Konstantin" 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" , Honnappa Nagarahalli , "olivier.matz@6wind.com" , "Richardson, Bruce" , "chaozhu@linux.vnet.ibm.com" Thread-Topic: [PATCH v2] ring: enforce reading the tails before ring operations Thread-Index: AQHU1NLSWD0O5+qFmk6VtHpVGShS4qYBI6cAgACCgsCAADDbAIAACfEw Date: Fri, 8 Mar 2019 15:50:26 +0000 Message-ID: <2601191342CEEE43887BDE71AB9772580136556F40@irsmsx105.ger.corp.intel.com> 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> <2601191342CEEE43887BDE71AB9772580136556E78@irsmsx105.ger.corp.intel.com> In-Reply-To: Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNWQwZTZiMGYtNGI4Yy00YmEzLWEyOTUtNDE5YzA4OTEzMzZjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiTWlYdG56d0c1aFJTRkVzV3lPRDdkWjJQN3g1akxmSUlIZVl4WjJRZStGNjYwMmRcL21jc3ZxU3FtUEgrOVNHV2cifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 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 15:50:33 -0000 DQoNCj4gPiA+ID4gPiA+Pj4gSW4gd2VhayBtZW1vcnkgbW9kZWxzLCBsaWtlIGFybTY0LCByZWFk aW5nIHRoZSB7cHJvZCxjb25zfS50YWlsDQo+ID4gbWF5DQo+ID4gPiA+IGdldA0KPiA+ID4gPiA+ ID4+PiByZW9yZGVyZWQgYWZ0ZXIgcmVhZGluZyBvciB3cml0aW5nIHRoZSByaW5nIHNsb3RzLCB3 aGljaCBjb3JydXB0cw0KPiA+IHRoZQ0KPiA+ID4gPiByaW5nDQo+ID4gPiA+ID4gPj4+IGFuZCBz dGFsZSBkYX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