From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4C4E643C01; Tue, 27 Feb 2024 16:05:58 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 151184027D; Tue, 27 Feb 2024 16:05:58 +0100 (CET) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 86EE240151 for ; Tue, 27 Feb 2024 16:05:57 +0100 (CET) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id 56BAF2049C; Tue, 27 Feb 2024 16:05:56 +0100 (CET) Content-class: urn:content-classes:message Subject: RE: [RFC v4 1/6] eal: add static per-lcore memory allocation facility MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 Date: Tue, 27 Feb 2024 16:05:55 +0100 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35E9F278@smartserver.smartshare.dk> In-Reply-To: X-MimeOLE: Produced By Microsoft Exchange V6.5 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [RFC v4 1/6] eal: add static per-lcore memory allocation facility Thread-Index: AdppgxExe+vN+O/GSyyhBECiHPUTAgAAMw4Q References: <20240220084908.488252-2-mattias.ronnblom@ericsson.com> <20240225150330.517225-1-mattias.ronnblom@ericsson.com> <20240225150330.517225-2-mattias.ronnblom@ericsson.com> <98CBD80474FA8B44BF855DF32C47DC35E9F270@smartserver.smartshare.dk> From: =?UTF-8?B?TW9ydGVuIEJyw7hydXA=?= To: =?UTF-8?B?TWF0dGlhcyBSw7ZubmJsb20=?= , =?UTF-8?B?TWF0dGlhcyBSw7ZubmJsb20=?= , Cc: "Stephen Hemminger" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org PiBGcm9tOiBNYXR0aWFzIFLDtm5uYmxvbSBbbWFpbHRvOmhvZm9yc0BseXNhdG9yLmxpdS5zZV0N Cj4gU2VudDogVHVlc2RheSwgMjcgRmVicnVhcnkgMjAyNCAxNC40NA0KPiANCj4gT24gMjAyNC0w Mi0yNyAxMDo1OCwgTW9ydGVuIEJyw7hydXAgd3JvdGU6DQo+ID4+IEZyb206IE1hdHRpYXMgUsO2 bm5ibG9tIFttYWlsdG86bWF0dGlhcy5yb25uYmxvbUBlcmljc3Nvbi5jb21dDQo+ID4+IFNlbnQ6 IFN1bmRheSwgMjUgRmVicnVhcnkgMjAyNCAxNi4wMw0KPiA+DQo+ID4gWy4uLl0NCj4gPg0KPiA+ PiArc3RhdGljIHZvaWQgKg0KPiA+PiArbGNvcmVfdmFyX2FsbG9jKHNpemVfdCBzaXplLCBzaXpl X3QgYWxpZ24pDQo+ID4+ICt7DQo+ID4+ICsJdm9pZCAqaGFuZGxlOw0KPiA+PiArCXZvaWQgKnZh bHVlOw0KPiA+PiArDQo+ID4+ICsJb2Zmc2V0ID0gUlRFX0FMSUdOX0NFSUwob2Zmc2V0LCBhbGln bik7DQo+ID4+ICsNCj4gPj4gKwlpZiAob2Zmc2V0ICsgc2l6ZSA+IFJURV9NQVhfTENPUkVfVkFS KSB7DQo+ID4NCj4gPiBUaGlzIHdvdWxkIGJlIHRoZSB1c3VhbCBjb21wYXJpc29uOg0KPiA+IGlm IChsY29yZV9idWZmZXIgPT0gTlVMTCkgew0KPiA+DQo+ID4+ICsJCWxjb3JlX2J1ZmZlciA9IGFs aWduZWRfYWxsb2MoUlRFX0NBQ0hFX0xJTkVfU0laRSwNCj4gPj4gKwkJCQkJICAgICBMQ09SRV9C VUZGRVJfU0laRSk7DQo+ID4+ICsJCVJURV9WRVJJRlkobGNvcmVfYnVmZmVyICE9IE5V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