From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 281D4A0471 for ; Tue, 18 Jun 2019 19:06:42 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CF93E1C261; Tue, 18 Jun 2019 19:06:40 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 7B0211C24B for ; Tue, 18 Jun 2019 19:06:38 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Jun 2019 10:06:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,389,1557212400"; d="scan'208";a="164759332" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga006.jf.intel.com with ESMTP; 18 Jun 2019 10:06:36 -0700 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 18 Jun 2019 10:06:36 -0700 Received: from fmsmsx108.amr.corp.intel.com ([169.254.9.149]) by FMSMSX114.amr.corp.intel.com ([169.254.6.20]) with mapi id 14.03.0439.000; Tue, 18 Jun 2019 10:06:36 -0700 From: "Eads, Gage" To: Ola Liljedahl , Honnappa Nagarahalli , "Richardson, Bruce" , "dev@dpdk.org" CC: nd Thread-Topic: [RFC,v2] lfring: lock-free ring buffer Thread-Index: AQHUuLnsVjNyP3ffWk++amgxuRaei6aOD9BwgA/5YICABG5iwA== Date: Tue, 18 Jun 2019 17:06:35 +0000 Message-ID: <9184057F7FC11744A2107296B6B8EB1E68CFBA4C@FMSMSX108.amr.corp.intel.com> References: <1548866179-20766-1-git-send-email-ola.liljedahl@arm.com> <9184057F7FC11744A2107296B6B8EB1E68CD76ED@FMSMSX108.amr.corp.intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZjg3MDU1NDEtZmFiNS00ODAwLTlkODQtNmE2MTZiN2M2MDdjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoickZiSCtYMTlCTW1VejF6YXpDQVZDODVVbjFaV1BPdDBIZGhKbndiQ0UzZFZEVHd6SHVrZ1k1aUlvZGx0cUlTQyJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-originating-ip: [10.1.200.106] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [RFC,v2] lfring: lock-free ring buffer 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogT2xhIExpbGplZGFobCBb bWFpbHRvOk9sYS5MaWxqZWRhaGxAYXJtLmNvbV0NCj4gU2VudDogU2F0dXJkYXksIEp1bmUgMTUs IDIwMTkgNDowMCBQTQ0KPiBUbzogSG9ubmFwcGEgTmFnYXJhaGFsbGkgPEhvbm5hcHBhLk5hZ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