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 5EA864613A; Mon, 27 Jan 2025 18:00:47 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 02C4040698; Mon, 27 Jan 2025 18:00:47 +0100 (CET) Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by mails.dpdk.org (Postfix) with ESMTP id 8F73940275 for ; Mon, 27 Jan 2025 18:00:45 +0100 (CET) Received: from mail.maildlp.com (unknown [172.19.88.194]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4YhZNs6RvyzRm3T; Tue, 28 Jan 2025 00:58:05 +0800 (CST) Received: from kwepemo200012.china.huawei.com (unknown [7.202.194.196]) by mail.maildlp.com (Postfix) with ESMTPS id EDBD614034D; Tue, 28 Jan 2025 01:00:41 +0800 (CST) Received: from frapeml500007.china.huawei.com (7.182.85.172) by kwepemo200012.china.huawei.com (7.202.194.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Tue, 28 Jan 2025 01:00:40 +0800 Received: from frapeml500007.china.huawei.com ([7.182.85.172]) by frapeml500007.china.huawei.com ([7.182.85.172]) with mapi id 15.01.2507.039; Mon, 27 Jan 2025 18:00:38 +0100 From: Konstantin Ananyev To: =?utf-8?B?TW9ydGVuIEJyw7hydXA=?= , "Thomas Monjalon" , Ferruh Yigit , "Andrew Rybchenko" , Slava Ovsiienko , Shahaf Shuler , Olivier Matz CC: "dev@dpdk.org" , huangdengdui Subject: RE: [PATCH v3] mbuf: add fast free bulk and raw alloc bulk functions Thread-Topic: [PATCH v3] mbuf: add fast free bulk and raw alloc bulk functions Thread-Index: AQHbbAohqIJPWKDf9kiPGg78RdoZBbMq4YUw Date: Mon, 27 Jan 2025 17:00:38 +0000 Message-ID: References: <20250114162544.125448-1-mb@smartsharesystems.com> <20250121134028.20733-1-mb@smartsharesystems.com> In-Reply-To: <20250121134028.20733-1-mb@smartsharesystems.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.206.138.73] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 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 DQo+IFdoZW4gcHV0dGluZyBhbiBtYnVmIGJhY2sgaW50byBpdHMgbWVtcG9vbCwgdGhlcmUgYXJl IGNlcnRhaW4gcmVxdWlyZW1lbnRzDQo+IHRvIHRoZSBtYnVmLiBTcGVjaWZpY2FsbHksIHNvbWUg b2YgaXRzIGZpZWxkcyBtdXN0IGJlIGluaXRpYWxpemVkLg0KPiANCj4gVGhlc2UgcmVxdWlyZW1l bnRzIGFyZSBpbiBmYWN0IGludmFyaWFudHMgYWJvdXQgZnJlZSBtYnVmcywgaGVsZCBpbg0KPiBt ZW1wb29scywgYW5kIHRodXMgYWxzbyBhcHBseSB3aGVuIGFsbG9jYXRpbmcgYW4gbWJ1ZiBmcm9t IGEgbWVtcG9vbC4NCj4gV2l0aCB0aGlzIGluIG1pbmQsIHRoZSBhZGRpdGlvbmFsIGFzc2VydGlv bnMgaW4gcnRlX21idWZfcmF3X2ZyZWUoKSB3ZXJlDQo+IG1vdmVkIHRvIF9fcnRlX21idWZfcmF3 X3Nhbml0eV9jaGVjaygpLg0KPiBGdXJ0aGVybW9yZSwgdGhlIGFzc2VydGlvbiByZWdhcmRpbmcg cGlubmVkIGV4dGVybmFsIGJ1ZmZlciB3YXMgZW5oYW5jZWQ7DQo+IGl0IG5vdyBhbHNvIGFzc2Vy dHMgdGhhdCB0aGUgcmVmZXJlbmNlZCBwaW5uZWQgZXh0ZXJuY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