From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 68E3A4C94 for ; Mon, 11 Mar 2019 14:58:39 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Mar 2019 06:58:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,468,1544515200"; d="scan'208";a="202064305" Received: from irsmsx108.ger.corp.intel.com ([163.33.3.3]) by orsmga001.jf.intel.com with ESMTP; 11 Mar 2019 06:58:35 -0700 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.210]) by IRSMSX108.ger.corp.intel.com ([169.254.11.7]) with mapi id 14.03.0415.000; Mon, 11 Mar 2019 13:58:34 +0000 From: "Ananyev, Konstantin" To: Honnappa Nagarahalli , "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: AQHU1NLSWD0O5+qFmk6VtHpVGShS4qYAA0EQgAEPFYCAACNFgIAAr7nwgAN2FwCAAR+hMA== Date: Mon, 11 Mar 2019 13:58:34 +0000 Message-ID: <2601191342CEEE43887BDE71AB9772580136557D8C@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> <2601191342CEEE43887BDE71AB97725801365527AC@irsmsx105.ger.corp.intel.com> <2601191342CEEE43887BDE71AB9772580136556F68@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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiY2MwNjRiYzQtMDBkOC00OGRmLWI5MjItMDIwNTE0NWY0MmJkIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoibEZ6VFU0VFlTZmROZHNUXC84T3Q2TGw2eGIzRko5Q2JrTjhyNmNrN2M2bjFnUitNR2daZlB3T1pnWVBMYmxTNTkifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [163.33.239.180] 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: Mon, 11 Mar 2019 13:58:40 -0000 PiA+ID4gPiA+ID4gPiA+Pj4gSW4gd2VhayBtZW1vcnkgbW9kZWxzLCBsaWtlIGFybTY0LCByZWFk aW5nIHRoZQ0KPiA+ID4gPiA+ID4gPiA+Pj4ge3Byb2QsY29uc30udGFpbCBtYXkgZ2V0IHJlb3Jk ZXJlZCBhZnRlciByZWFkaW5nIG9yDQo+ID4gPiA+ID4gPiA+ID4+PiB3cml0aW5nIHRoZSByaW5n IHNsb3RzLCB3aGljaCBj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