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 167D242469; Mon, 23 Jan 2023 13:52:28 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A1D22400EF; Mon, 23 Jan 2023 13:52:27 +0100 (CET) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by mails.dpdk.org (Postfix) with ESMTP id 63A8C400D4 for ; Mon, 23 Jan 2023 13:52:25 +0100 (CET) Received: from frapeml500005.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4P0qjt5BzYz67Klm; Mon, 23 Jan 2023 20:51:46 +0800 (CST) Received: from frapeml500007.china.huawei.com (7.182.85.172) by frapeml500005.china.huawei.com (7.182.85.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Mon, 23 Jan 2023 13:52:24 +0100 Received: from frapeml500007.china.huawei.com ([7.182.85.172]) by frapeml500007.china.huawei.com ([7.182.85.172]) with mapi id 15.01.2375.034; Mon, 23 Jan 2023 13:52:24 +0100 From: Konstantin Ananyev To: =?utf-8?B?TW9ydGVuIEJyw7hydXA=?= , "Konstantin Ananyev" , "olivier.matz@6wind.com" , "andrew.rybchenko@oktetlabs.ru" , "honnappa.nagarahalli@arm.com" , "kamalakshitha.aligeri@arm.com" , "bruce.richardson@intel.com" , "dev@dpdk.org" CC: "nd@arm.com" Subject: RE: [PATCH v5] mempool cache: add zero-copy get and put functions Thread-Topic: [PATCH v5] mempool cache: add zero-copy get and put functions Thread-Index: AQHZGgZWOrQgX1KmTUiJR1ZcFCHgK66q/Q6AgAAMFICAAQOvsIAAAyWAgAAMgBA= Date: Mon, 23 Jan 2023 12:52:24 +0000 Message-ID: References: <98CBD80474FA8B44BF855DF32C47DC35D87488@smartserver.smartshare.dk> <20221227151700.80887-1-mb@smartsharesystems.com> <60d35262-51bd-3d74-28f8-c2dda50d3400@yandex.ru> <98CBD80474FA8B44BF855DF32C47DC35D876A3@smartserver.smartshare.dk> <81e1ec960f6d4a1c80b236d9314cb549@huawei.com> <98CBD80474FA8B44BF855DF32C47DC35D876A9@smartserver.smartshare.dk> In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35D876A9@smartserver.smartshare.dk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.206.138.42] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected 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 DQoNCj4gPiA+ID4gPiBAQCAtMTM2NCwzMiArMTU1NiwyNSBAQCBydGVfbWVtcG9vbF9kb19nZW5l cmljX3B1dChzdHJ1Y3QNCj4gPiBydGVfbWVtcG9vbA0KPiA+ID4gPiAqbXAsIHZvaWQgKiBjb25z dCAqb2JqX3RhYmxlLA0KPiA+ID4gPiA+ICAgew0KPiA+ID4gPiA+ICAgCXZvaWQgKipjYWNoZV9v YmpzOw0KPiA+ID4gPiA+DQo+ID4gPiA+ID4gLQkvKiBObyBjYWNoZSBwcm92aWRlZCAqLw0KPiA+ ID4gPiA+IC0JaWYgKHVubGlrZWx5KGNhY2hlID09IE5VTEwpKQ0KPiA+ID4gPiA+IC0JCWdvdG8g ZHJpdmVyX2VucXVldWU7DQo+ID4gPiA+ID4gKwkvKiBObyBjYWNoZSBwcm92aWRlZD8gKi8NCj4g PiA+ID4gPiArCWlmICh1bmxpa2VseShjYWNoZSA9PSBOVUxMKSkgew0KPiA+ID4gPiA+ICsJCS8q IEluY3JlbWVudCBzdGF0cyBub3csIGFkZGluZyBpbiBtZW1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