From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id C57C327D for ; Fri, 8 Mar 2019 13:13:30 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Mar 2019 04:13:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,455,1544515200"; d="scan'208";a="132361202" Received: from irsmsx152.ger.corp.intel.com ([163.33.192.66]) by orsmga003.jf.intel.com with ESMTP; 08 Mar 2019 04:13:26 -0800 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.210]) by IRSMSX152.ger.corp.intel.com ([169.254.6.139]) with mapi id 14.03.0415.000; Fri, 8 Mar 2019 12:13:26 +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+qFmk6VtHpVGShS4qYBI6cAgACCgsA= Date: Fri, 8 Mar 2019 12:13:25 +0000 Message-ID: <2601191342CEEE43887BDE71AB9772580136556E78@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> 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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMGQ1YTBlMDgtYzgyNy00MjAxLTk1MDktYjM4N2ZkMjA2ZTYzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoid0JST0RXUnpyREp0TkxSdWdRbXhoTWpVVE9nWW1IaGo0a3kxV1RqT1JPVll3RkRDMk03Q2t6RmlValQyYXFEdiJ9 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 12:13:31 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogR2F2aW4gSHUgKEFybSBU ZWNobm9sb2d5IENoaW5hKSBbbWFpbHRvOkdhdmluLkh1QGFybS5jb21dDQo+IFNlbnQ6IEZyaWRh eSwgTWFyY2ggOCwgMjAxOSA0OjIzIEFNDQo+IFRvOiBJbHlhIE1heGltZXRzIDxpLm1heGltZXRz QHNhbXN1bmcuY29tPjsgZGV2QGRwZGsub3JnDQo+IENjOiBuZCA8bmRAYXJtLmNvbT47IHRob21h c0Btb25qYWxvbi5uZXQ7IGplcmluakBtYXJ2ZWxsLmNvbTsgaGVtYW50LmFncmF3YWxAbnhwLmNv bTs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