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 255A343B4C; Mon, 19 Feb 2024 16:05:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AA4C040289; Mon, 19 Feb 2024 16:04:59 +0100 (CET) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 8B89540275 for ; Mon, 19 Feb 2024 16:04:58 +0100 (CET) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id 5686D206EF; Mon, 19 Feb 2024 16:04:58 +0100 (CET) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Subject: RE: [RFC 1/5] eal: add static per-lcore memory allocation facility X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Mon, 19 Feb 2024 16:04:57 +0100 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35E9F230@smartserver.smartshare.dk> In-Reply-To: <9cfa6531-83a4-460f-989e-b61203ff34c4@lysator.liu.se> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [RFC 1/5] eal: add static per-lcore memory allocation facility Thread-Index: AdpjQFn5saXO73XlTh+QGQH1+gxQEwAArB9g References: <20240208181644.455233-1-mattias.ronnblom@ericsson.com> <20240208181644.455233-2-mattias.ronnblom@ericsson.com> <98CBD80474FA8B44BF855DF32C47DC35E9F200@smartserver.smartshare.dk> <98CBD80474FA8B44BF855DF32C47DC35E9F203@smartserver.smartshare.dk> <98CBD80474FA8B44BF855DF32C47DC35E9F22E@smartserver.smartshare.dk> <9cfa6531-83a4-460f-989e-b61203ff34c4@lysator.liu.se> 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 Cj4gU2VudDogTW9uZGF5LCAxOSBGZWJydWFyeSAyMDI0IDE1LjMyDQo+IA0KPiBPbiAyMDI0LTAy LTE5IDEyOjEwLCBNb3J0ZW4gQnLDuHJ1cCB3cm90ZToNCj4gPj4gRnJvbTogTWF0dGlhcyBSw7Zu bmJsb20gW21haWx0bzpob2ZvcnNAbHlzYXRvci5saXUuc2VdDQo+ID4+IFNlbnQ6IE1vbmRheSwg MTkgRmVicnVhcnkgMjAyNCAwOC40OQ0KPiA+Pg0KPiA+PiBPbiAyMDI0LTAyLTA5IDE0OjA0LCBN b3J0ZW4gQnLDuHJ1cCB3cm90ZToNCj4gPj4+PiBGcm9tOiBNYXR0aWFzIFLDtm5uYmxvbSBbbWFp bHRvOmhvZm9yc0BseXNhdG9yLmxpdS5zZV0NCj4gPj4+PiBTZW50OiBGcmlkYXksIDkgRmVicnVh cnkgMjAyNCAxMi40Ng0KPiA+Pj4+DQo+ID4+Pj4gT24gMjAyNC0wMi0wOSAwOToyNSwgTW9ydGVu IEJyw7hydXAgd3JvdGU6DQo+ID4+Pj4+PiBGcm9tOiBNYXR0aWFzIFLDtm5uYmxvbSBbbWFpbHRv Om1hdHRpYXMucm9ubmJsb21AZXJpY3Nzb24uY29tXQ0KPiA+Pj4+Pj4gU2VudDogVGh1cnNkYXks IDggRmVicnVhcnkgMjAyNCAxOS4xNw0KPiA+Pj4+Pj4NCj4gPj4+Pj4+IEludHJvZHVjZSBEUERL IHBlci1sY29y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