Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 235A4C433F5 for ; Mon, 13 Dec 2021 22:52:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243969AbhLMWwU (ORCPT ); Mon, 13 Dec 2021 17:52:20 -0500 Received: from eu-smtp-delivery-151.mimecast.com ([185.58.85.151]:52759 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241004AbhLMWwT (ORCPT ); Mon, 13 Dec 2021 17:52:19 -0500 Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-236-RVzOHFxaPKeIAG20wAJ41w-1; Mon, 13 Dec 2021 22:52:16 +0000 X-MC-Unique: RVzOHFxaPKeIAG20wAJ41w-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Mon, 13 Dec 2021 22:52:15 +0000 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.026; Mon, 13 Dec 2021 22:52:15 +0000 From: David Laight To: 'Alexander Duyck' , 'Noah Goldstein' , 'Eric Dumazet' CC: "'tglx@linutronix.de'" , "'mingo@redhat.com'" , 'Borislav Petkov' , "'dave.hansen@linux.intel.com'" , 'X86 ML' , "'hpa@zytor.com'" , "'peterz@infradead.org'" , 'open list' , 'netdev' Subject: RE: [PATCH] lib/x86: Optimise csum_partial of buffers that are not multiples of 8 bytes. Thread-Topic: [PATCH] lib/x86: Optimise csum_partial of buffers that are not multiples of 8 bytes. Thread-Index: AdfwSx7jhGb9mOkwS12sTJ1p5oR1JQABEUYAAAftMsA= Date: Mon, 13 Dec 2021 22:52:15 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogQWxleGFuZGVyIER1eWNrIDxhbGV4YW5kZXJkdXlja0BmYi5jb20+DQo+IFNlbnQ6IDEz IERlY2VtYmVyIDIwMjEgMTg6NDANCi4uLg0KPiA+IEFkZCBpbiB0aGUgdHJhaWxpbmcgYnl0ZXMg Zmlyc3Qgc28gdGhhdCB0aGVyZSBpcyBubyBuZWVkIHRvIHdvcnJ5IGFib3V0IHRoZSBzdW0NCj4g PiBleGNlZWRpbmcgNjQgYml0cy4NCj4gPg0KPiA+IFNpZ25lZC1vZmYtYnk6IERhdmlkIExhaWdo dCA8ZGF2aWQubGFpZ2h0QGFjdWxhYi5jb20+DQo+ID4gLS0tDQo+ID4NCj4gPiBUaGlzIG91Z2h0 IHRvIGJlIGZhc3RlciAtIGJlY2F1c2Ugb2YgYWxsIHRoZSByZW1vdmVkICdhZGMgJDAnLg0KPiA+ IEd1ZXNzaW5nIGhvdyBmYXN0IHg4NiBjb2RlIHdpbGwgcnVuIGlzIGhhcmQhDQo+ID4gVGhlcmUg YXJlIG90aGVyIHdheXMgb2YgaGFuZGluZyBidWZmZXJzIHRoYXQgYXJlIHNob3J0ZXIgdGhhbiA4 IGJ5dGVz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