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 36514456E6; Mon, 29 Jul 2024 21:56:33 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0227A40A6D; Mon, 29 Jul 2024 21:56:33 +0200 (CEST) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 0221F40A6B for ; Mon, 29 Jul 2024 21:56:31 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id AF77820778; Mon, 29 Jul 2024 21:56:30 +0200 (CEST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 Subject: RE: [PATCH v5 6/6] vhost: optimize memcpy routines when cc memcpy is used Date: Mon, 29 Jul 2024 21:56:27 +0200 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35E9F5C7@smartserver.smartshare.dk> X-MimeOLE: Produced By Microsoft Exchange V6.5 In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH v5 6/6] vhost: optimize memcpy routines when cc memcpy is used Thread-Index: Adrh7U0LwuUjIWzOQhKItR4zXxHT8AAA0LCw References: <20240620175731.420639-2-mattias.ronnblom@ericsson.com> <20240724075357.546248-1-mattias.ronnblom@ericsson.com> <20240724075357.546248-7-mattias.ronnblom@ericsson.com> <98CBD80474FA8B44BF855DF32C47DC35E9F5B8@smartserver.smartshare.dk> From: =?UTF-8?B?TW9ydGVuIEJyw7hydXA=?= To: =?UTF-8?B?TWF0dGlhcyBSw7ZubmJsb20=?= , =?UTF-8?B?TWF0dGlhcyBSw7ZubmJsb20=?= , Cc: "Stephen Hemminger" , "David Marchand" , "Pavan Nikhilesh" , "Bruce Richardson" 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 Cj4gU2VudDogTW9uZGF5LCAyOSBKdWx5IDIwMjQgMjEuMjcNCj4gDQo+IE9uIDIwMjQtMDctMjkg MTM6MDAsIE1vcnRlbiBCcsO4cnVwIHdyb3RlOg0KPiA+PiBGcm9tOiBNYXR0aWFzIFLDtm5uYmxv bSBbbWFpbHRvOm1hdHRpYXMucm9ubmJsb21AZXJpY3Nzb24uY29tXQ0KPiA+PiBTZW50OiBXZWRu ZXNkYXksIDI0IEp1bHkgMjAyNCAwOS41NA0KPiA+DQo+ID4gV2hpY2ggcGFja2V0IG1peCB3YXMg dXNlZCBmb3IgeW91ciB0ZXN0cz8gU3ludGhldGljIElNSVgsIG9yIHNvbWUgbGl2ZQ0KPiBkYXRh Pw0KPiA+DQo+IA0KPiBJIHVzZWQgdGhlIHNhbWUgdGVzdCBhcyB3YXMgYmVpbmcgZG9uZSB3aGVu IHRoZSBwZXJmb3JtYW5jZSByZWdyZXNzaW9uDQo+IHdhcyBkZW1vbnN0cmF0ZWQgKGkuZS4sIDJ4 IHRlc3RwbWQgd2l0aCBmaXhlZCBwYWNrZXQgc2l6ZSkuDQo+IA0KPiA+PiArLyogVGhlIGNvZGUg Z2VuZXJhdGVkIGJ5IEdDQyAoYW5kIHRvIGEgbGVzc2VyIGV4dGVudCwgY2xhbmcpIHdpdGgNCj4g anVzdA0KPiA+PiArICogYSBzdHJhaWdodCBtZW1jcHkoKSB0byBjb3B5IHBhY2tldHMgaXMgbGVz cyB0aGFuIG9wdGltYWwgb24gSW50ZWwNCj4gPj4gKyAqIFAtY29yZXMsIGZvciBzbWFsbCBwYWNr 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