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 C8623A00E6 for ; Sat, 15 Jun 2019 23:00:17 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2520A1C258; Sat, 15 Jun 2019 23:00:17 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20055.outbound.protection.outlook.com [40.107.2.55]) by dpdk.org (Postfix) with ESMTP id 768F01C224 for ; Sat, 15 Jun 2019 23:00:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tOSxGw6zHjXG8oMbiRL0WZ7q46jKA1dLv5n+NdZW5Vg=; b=Ji3Smal3Cwtsy4xh5xykKsrvbpllHzQBn6jYhAkUGz40MHuvJrHKCyK7TopBALw1JC7H+1rjM9OGF9fkVKKCVzAian71E+09RSNGdx7BjfL+HEnPsAJGOfNJUtdLfIAOh79hLfwH1Wcgh6E4N478/2qSP3iKmM++wSoU8xWpZB8= Received: from HE1PR0801MB2076.eurprd08.prod.outlook.com (10.168.93.12) by HE1PR0801MB1834.eurprd08.prod.outlook.com (10.168.143.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1987.13; Sat, 15 Jun 2019 21:00:12 +0000 Received: from HE1PR0801MB2076.eurprd08.prod.outlook.com ([fe80::4118:802f:d814:b1fe]) by HE1PR0801MB2076.eurprd08.prod.outlook.com ([fe80::4118:802f:d814:b1fe%2]) with mapi id 15.20.1987.014; Sat, 15 Jun 2019 21:00:12 +0000 From: Ola Liljedahl To: Honnappa Nagarahalli , "bruce.richardson@intel.com" , "gage.eads@intel.com" , "dev@dpdk.org" CC: nd Thread-Topic: [RFC,v2] lfring: lock-free ring buffer Thread-Index: AQHUuLnsVjNyP3ffWk++amgxuRaei6aOD9BwgA/5YIA= Date: Sat, 15 Jun 2019 21:00:12 +0000 Message-ID: References: <1548866179-20766-1-git-send-email-ola.liljedahl@arm.com> <9184057F7FC11744A2107296B6B8EB1E68CD76ED@FMSMSX108.amr.corp.intel.com> In-Reply-To: <9184057F7FC11744A2107296B6B8EB1E68CD76ED@FMSMSX108.amr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: Evolution 3.28.5-0ubuntu0.18.04.1 authentication-results: spf=none (sender IP is ) smtp.mailfrom=Ola.Liljedahl@arm.com; x-originating-ip: [158.174.8.16] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0137e521-0a4b-4f54-0f93-08d6f1d4757b x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:HE1PR0801MB1834; x-ms-traffictypediagnostic: HE1PR0801MB1834: x-ms-exchange-purlcount: 1 nodisclaimer: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-forefront-prvs: 0069246B74 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39850400004)(396003)(136003)(366004)(346002)(376002)(199004)(189003)(51914003)(68736007)(86362001)(316002)(446003)(476003)(2616005)(229853002)(76176011)(99286004)(26005)(25786009)(6506007)(66066001)(50226002)(53946003)(2501003)(8936002)(81156014)(110136005)(4326008)(71200400001)(8676002)(71190400001)(81166006)(6246003)(11346002)(5660300002)(186003)(2201001)(30864003)(966005)(66556008)(66446008)(66476007)(66946007)(486006)(53936002)(72206003)(76116006)(6116002)(3846002)(14454004)(7736002)(14444005)(305945005)(478600001)(2906002)(118296001)(256004)(6486002)(6512007)(6306002)(102836004)(73956011)(36756003)(6436002)(64756008)(99106002)(142933001); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0801MB1834; H:HE1PR0801MB2076.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 6Rmd9MxVbk6hlIp92Gw6BZ7K7VoQRtEafKPAAA/EJm+jVYey3YTg0vkTMGxrxwSfU9ElGnocGleRKRt934l6xIyeAvGZAut1OeLbBmraXf8wWwy1LbGbdYOd8r5+ar+BZxNucR0byoFcCwlA7tikgfPIqg7hLu21bDqRP69FFyiwNJtHn5o0u3ClxVaK/HzGueywluyhep+a7E7Cf27ECIKlCbgUiF4AlxrDizqu4g3ZoCaXEk7OPgU6h60pHI3ADVvpGX5JCSh/qOuaCwGJq89qz/Tp44CNFWHTVwkOolKvxWmsTtrxYRCXhROclo5aZmsdst9ciKxrV5BOJeiAtQyN6pkIqCg5DxQWIk49H5Evn713Rq+9iJlD6tbFr+a6mV6CbZ9+Kb0qf2hbPMeYYjCYAZ4B3doQBpCpZ5NXEFY= Content-Type: text/plain; charset="utf-8" Content-ID: <9FAF8E8D01018E48875C982A1DC49F6A@eurprd08.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0137e521-0a4b-4f54-0f93-08d6f1d4757b X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jun 2019 21:00:12.4502 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Ola.Liljedahl@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0801MB1834 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" T24gV2VkLCAyMDE5LTA2LTA1IGF0IDE4OjIxICswMDAwLCBFYWRzLCBHYWdlIHdyb3RlOg0KPiBI aSBPbGEsDQo+IA0KPiBJcyBpdCBwb3NzaWJsZSB0byBhZGQgYnVyc3QgZW5xdWV1ZSBhbmQgZGVx dWV1ZSBmdW5jdGlvbnMgYXMgd2VsbCwgc28gd2UgY2FuDQo+IHBsdWcgdGhpcyBpbnRvIGEgbWVt cG9vbCBoYW5kbGVyPw0KUHJvcGVyIGJ1cnN0IGVucXVldWUgaXMgZGlmZmljdWx0IG9yIGF0IGxl YXN0IG5vdCB2ZXJ5IGVmZmljaWVudC4NCg0KPiAgQmVzaWRlcyB0aGUgbWVtcG9vbCBoYW5kbGVy LCBJIHRoaW5rIHRoZSBhbGwtb3Itbm90aGluZyBzZW1hbnRpY3Mgd291bGQgYmUNCj4gdXNlZnVs IGZvciBhcHBsaWNhdGlvbnMuIEJlc2lkZXMgdGhhdCwgdGhpcyBSRkMgbG9va3MgZ29vZCBhdCBh IGhpZ2ggbGV2ZWwuDQo+IA0KPiBGb3IgYSBjb21wbGV0ZSBzdWJtaXNzaW9uLCBhIGZldyBtb3Jl IGNoYW5nZXMgYXJlIG5lZWRlZDoNCj4gLSBCdWlsZHM6IE5lZWQgdG8gYWRkICdsZnJpbmcnIHRv IGxpYi9tZXNvbi5idWlsZCBhbmQgbWsvcnRlLmFwcC5taw0KPiAtIERvY3VtZW50YXRpb246IG5l ZWQgdG8gdXBkYXRlIHJlbGVhc2Ugbm90ZXMsIGFkZCBhIG5ldyBzZWN0aW9uIGluIHRoZQ0KPiBw cm9ncmFtbWVyJ3MgZ3VpZGUsIGFuZCB1cGRhdGUgdGhlI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