From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id ED4A4239 for ; Fri, 8 Mar 2019 17:33:25 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Mar 2019 08:33:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,456,1544515200"; d="scan'208";a="122765792" Received: from irsmsx106.ger.corp.intel.com ([163.33.3.31]) by orsmga006.jf.intel.com with ESMTP; 08 Mar 2019 08:33:22 -0800 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.210]) by IRSMSX106.ger.corp.intel.com ([169.254.8.205]) with mapi id 14.03.0415.000; Fri, 8 Mar 2019 16:33:21 +0000 From: "Ananyev, Konstantin" To: "Gavin Hu (Arm Technology China)" , Honnappa Nagarahalli , 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+qFmk6VtHpVGShS4qYAA0EQgAEPFYCAACNFgIAAr7nw Date: Fri, 8 Mar 2019 16:33:21 +0000 Message-ID: <2601191342CEEE43887BDE71AB9772580136556F68@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> 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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMThlMGEyN2UtZDA4ZC00Zjc0LWE2ODktZjE2MGE0MzgxZmZhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiYnVzQlJXVGZSbDdkQ29LUDVcL3U3R0tvVXVwbFVjdHJPSXVpSlQ3QXAwOE04Zk9LXC9PY2FsM0JLQTR4SkFPWit4In0= 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 16:33:26 -0000 DQo+ID4gPiA+ID4gPj4+IEluIHdlYWsgbWVtb3J5IG1vZGVscywgbGlrZSBhcm02NCwgcmVhZGlu ZyB0aGUge3Byb2QsY29uc30udGFpbA0KPiA+ID4gPiA+ID4+PiBtYXkgZ2V0IHJlb3JkZXJlZCBh ZnRlciByZWFkaW5nIG9yIHdyaXRpbmcgdGhlIHJpbmcgc2xvdHMsIHdoaWNoDQo+ID4gPiA+ID4g Pj4+IGNvcnJ1cHRzIHRoZSByaW5nIGFuZCBzdGFsZSBkYXRhIGlzIG9ic2VydmVkLg0KPiA+ID4g PiA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