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 54C3CA0093; Fri, 23 Dec 2022 17:58:31 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F0A1641156; Fri, 23 Dec 2022 17:58:30 +0100 (CET) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by mails.dpdk.org (Postfix) with ESMTP id D86DA410F9 for ; Fri, 23 Dec 2022 17:58:29 +0100 (CET) Received: from frapeml100006.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4NdtZ34Rjmz6HJLh; Sat, 24 Dec 2022 00:54:19 +0800 (CST) Received: from frapeml500007.china.huawei.com (7.182.85.172) by frapeml100006.china.huawei.com (7.182.85.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Fri, 23 Dec 2022 17:58:28 +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; Fri, 23 Dec 2022 17:58:28 +0100 From: Konstantin Ananyev To: =?utf-8?B?TW9ydGVuIEJyw7hydXA=?= , "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 v2] mempool cache: add zero-copy get and put functions Thread-Topic: [PATCH v2] mempool cache: add zero-copy get and put functions Thread-Index: AQHY+eXshGdkTOQ6MEqhZVx6ONxTsK56QgvAgAAW+lCAAYwvoA== Date: Fri, 23 Dec 2022 16:58:28 +0000 Message-ID: <1cc060f3507d4d42ac8bcfa615fb2fa5@huawei.com> References: <98CBD80474FA8B44BF855DF32C47DC35D87488@smartserver.smartshare.dk> <20221116180419.98937-1-mb@smartsharesystems.com> <98CBD80474FA8B44BF855DF32C47DC35D875DF@smartserver.smartshare.dk> In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35D875DF@smartserver.smartshare.dk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.48.146.12] 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 DQo+ID4gRnJvbTogS29uc3RhbnRpbiBBbmFueWV2IFttYWlsdG86a29uc3RhbnRpbi5hbmFueWV2 QGh1YXdlaS5jb21dDQo+ID4gU2VudDogVGh1cnNkYXksIDIyIERlY2VtYmVyIDIwMjIgMTYuNTcN Cj4gPg0KPiA+ID4gWmVyby1jb3B5IGFjY2VzcyB0byBtZW1wb29sIGNhY2hlcyBpcyBiZW5lZmlj aWFsIGZvciBQTUQgcGVyZm9ybWFuY2UsDQo+ID4gYW5kDQo+ID4gPiBtdXN0IGJlIHByb3ZpZGVk IGJ5IHRoZSBtZW1wb29sIGxpYnJhcnkgdG8gZml4IFtCdWcgMTA1Ml0gd2l0aG91dCBhDQo+ID4g PiBwZXJmb3JtYW5jZSByZWdyZXNzaW9uLg0KPiA+DQo+ID4gTEdUTSBpbiBnZW5lcmFsLCB0aGFu ayB5b3UgZm9yIHdvcmtpbmcgb24gaXQuDQo+ID4gRmV3IGNvbW1lbnRzIGJlbG93Lg0KPiA+DQo+ ID4gPg0KPiA+ID4gW0J1ZyAxMDUyXTogaHR0cHM6Ly9idWdzLmRwZGsub3JnL3Nob3dfYnVnLmNn aT9pZD0xMDUyDQo+ID4gPg0KPiA+ID4gdjI6DQo+ID4gPiAqIEZpeCBjaGVja3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