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 7B168A00C3; Thu, 16 Jun 2022 09:07:14 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1F9124114F; Thu, 16 Jun 2022 09:07:14 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 75B69410D0 for ; Thu, 16 Jun 2022 09:07:12 +0200 (CEST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01D8814F.B30A12AF" Subject: Vector optimized IP checksum X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Thu, 16 Jun 2022 09:07:09 +0200 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35D8712E@smartserver.smartshare.dk> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Vector optimized IP checksum Thread-Index: AdiBT7IsLiz7rOZ0QkSGmNMZh/+JdQ== From: =?iso-8859-1?Q?Morten_Br=F8rup?= To: "Jasvinder Singh" Cc: , "Olivier Matz" , "Maxime Coquelin" , "Chenbo Xia" 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 This is a multi-part message in MIME format. ------_=_NextPart_001_01D8814F.B30A12AF Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Jasvinder, =20 As the Packet CRC maintainer, have you considered adding vector = optimized variants of the rte_raw_cksum() function? =20 It might benefit some of the software PMDs, such as tap and virtio. =20 =20 Med venlig hilsen / Kind regards, -Morten Br=F8rup =20 ------_=_NextPart_001_01D8814F.B30A12AF Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi Jasvinder,

 

As the Packet = CRC maintainer, have you considered adding vector optimized variants of = the rte_raw_cksum() function?

 

It might = benefit some of the software PMDs, such as tap and = virtio.

 

 

Med venlig hilsen / Kind regards,

-Morten = Br=F8rup

 

------_=_NextPart_001_01D8814F.B30A12AF-- 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 EE810A00BE; Thu, 16 Jun 2022 15:46:32 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D51E740141; Thu, 16 Jun 2022 15:46:32 +0200 (CEST) Received: from mail.lysator.liu.se (mail.lysator.liu.se [130.236.254.3]) by mails.dpdk.org (Postfix) with ESMTP id 26A314003C for ; Thu, 16 Jun 2022 15:46:31 +0200 (CEST) Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id 7C489C4B7 for ; Thu, 16 Jun 2022 15:46:30 +0200 (CEST) Received: by mail.lysator.liu.se (Postfix, from userid 1004) id 7B327C619; Thu, 16 Jun 2022 15:46:30 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on hermod.lysator.liu.se X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=ALL_TRUSTED, AWL, NICE_REPLY_A, T_SCC_BODY_TEXT_LINE autolearn=disabled version=3.4.6 X-Spam-Score: -3.3 Received: from [192.168.1.59] (unknown [62.63.215.114]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id AED29C618; Thu, 16 Jun 2022 15:46:29 +0200 (CEST) Message-ID: <4f8a4f31-3c22-9cde-cb9a-96f628efbdf9@lysator.liu.se> Date: Thu, 16 Jun 2022 15:46:28 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: Vector optimized IP checksum Content-Language: en-US To: =?UTF-8?Q?Morten_Br=c3=b8rup?= , Jasvinder Singh Cc: dev@dpdk.org, Olivier Matz , Maxime Coquelin , Chenbo Xia References: <98CBD80474FA8B44BF855DF32C47DC35D8712E@smartserver.smartshare.dk> From: =?UTF-8?Q?Mattias_R=c3=b6nnblom?= In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35D8712E@smartserver.smartshare.dk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP 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 On 2022-06-16 09:07, Morten Brørup wrote: > Hi Jasvinder, > > As the Packet CRC maintainer, have you considered adding vector > optimized variants of the rte_raw_cksum() function? > The current implementation is vectorized by the compiler. In my experience, hand-crafting it using SIMD intrinsics doesn't improve the performance enough to warrant the trouble. > It might benefit some of the software PMDs, such as tap and virtio. > > Med venlig hilsen / Kind regards, > > -Morten Brørup > 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 414ACA00C3; Thu, 16 Jun 2022 16:17:37 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7DCC140141; Thu, 16 Jun 2022 16:11:27 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 1BD284003C for ; Thu, 16 Jun 2022 16:11:26 +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: Vector optimized IP checksum X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Thu, 16 Jun 2022 16:11:25 +0200 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35D87134@smartserver.smartshare.dk> In-Reply-To: <4f8a4f31-3c22-9cde-cb9a-96f628efbdf9@lysator.liu.se> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Vector optimized IP checksum Thread-Index: AdiBh372mzmbVPA0S7O1YjxUEBZtTwAAsKmg References: <98CBD80474FA8B44BF855DF32C47DC35D8712E@smartserver.smartshare.dk> <4f8a4f31-3c22-9cde-cb9a-96f628efbdf9@lysator.liu.se> From: =?UTF-8?B?TW9ydGVuIEJyw7hydXA=?= To: =?UTF-8?B?TWF0dGlhcyBSw7ZubmJsb20=?= , "Jasvinder Singh" Cc: , "Olivier Matz" , "Maxime Coquelin" , "Chenbo Xia" 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 Cj4gU2VudDogVGh1cnNkYXksIDE2IEp1bmUgMjAyMiAxNS40Ng0KPiANCj4gT24gMjAyMi0wNi0x NiAwOTowNywgTW9ydGVuIEJyw7hydXAgd3JvdGU6DQo+ID4gSGkgSmFzdmluZGVyLA0KPiA+DQo+ ID4gQXMgdGhlIFBhY2tldCBDUkMgbWFpbnRhaW5lciwgaGF2ZSB5b3UgY29uc2lkZXJlZCBhZGRp bmcgdmVjdG9yDQo+ID4gb3B0aW1pemVkIHZhcmlhbnRzIG9mIHRoZSBydGVfcmF3X2Nrc3VtKCkg ZnVuY3Rpb24/DQo+ID4NCj4gDQo+IFRoZSBjdXJyZW50IGltcGxlbWVudGF0aW9uIGlzIHZlY3Rv cml6ZWQgYnkgdGhlIGNvbXBpbGVyLg0KPiANCj4gSW4gbXkgZXhwZXJpZW5jZSwgaGFuZC1jcmFm dGluZyBpdCB1c2luZyBTSU1EIGludHJpbnNpY3MgZG9lc24ndA0KPiBpbXByb3ZlDQo+IHRoZSBw ZXJmb3JtYW5jZSBlbm91Z2ggdG8gd2FycmFudCB0aGUgdHJvdWJsZS4NCj4gDQoNClRoYXQgaXMg Z3JlYXQsIE1hdHRpYXMhDQoNClRoYXQgZGVmaW5pdGVseSBwdXRzIG15IHF1ZXN0aW9uIHRvIHJl c3QuIDotKQ0KDQo=