Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1200110imm; Sat, 11 Aug 2018 08:10:17 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxdZFbA00o6V0opQpMA2EYZombaJBQbNehCcZXMhJ2fGxyN3ojXyQ+zgiCmNqcZZw9+G15e X-Received: by 2002:a65:6086:: with SMTP id t6-v6mr10712220pgu.424.1534000217085; Sat, 11 Aug 2018 08:10:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534000217; cv=none; d=google.com; s=arc-20160816; b=SRtHsnDsXbyyZekW0BGu8GVtVYn1cP9EksTxeZq6WTpzs2LTFibBEPjwnnnqwzX+TL abDoz+T5UtdMC8mnnG87lDYzM78NGPFfuuG7vKxwij8ENnGYURGAhUTGuOP0QVRo94UE vUG3Kpd4p2fEhOd4Dgo5Oa/etTkVJDkzIBDxAbZ4I7L6K8l3Dj/wWKwCQTxi1MarzxMa VGR2YPyLgND0Gd/OKTJNViWEAwCU/ymMqex+0IZ686BM9iCtlK9aHzZLzai28LgLTmvz wCBq4EzBlLlJBhK9oA5RYDsfbBbhiNdPyucD6hkOkJBTt4AGGQnyIapJC8b9l/Ojazbr NxhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=9JDu4QrUi+lnY0wevl9HnYMkYkBPLAtNZpr97bnHFaA=; b=ybQzlO+MhzAJmoYFKIOzaj+92cgoCVz7nMB6e+3NrbF2KmEmSqpIcrfcTTK23eA5fT /Xq462aQ3LJBaPNt+fbtmCf4AV01fYak+I9YGtzaSna2KI1+iNyDA1kLFMbEaF6xO94+ D52VUoUVbBvWUJ0/nxu/Q9IIMZWL5NCFlND4SuBzgT4z7GpM5MKg13hZB0g4zwLqknE7 yfZzzJDjkGxW7OgQjpqGuk4z2kK3TozyR1YMLITb5L9uMUaF51CkJ5+8IgftKCophU3L w0p5fPfOiwmAh/zSJZCUggppUCJ8fftSTWeWJt4ZGucRWoHwSVv16sd+TBYtmQbBeVYg g8sA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y3-v6si4772307pgg.266.2018.08.11.08.09.38; Sat, 11 Aug 2018 08:10:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727450AbeHKRkn (ORCPT + 99 others); Sat, 11 Aug 2018 13:40:43 -0400 Received: from smtprelay0101.hostedemail.com ([216.40.44.101]:33187 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727348AbeHKRkn (ORCPT ); Sat, 11 Aug 2018 13:40:43 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay03.hostedemail.com (Postfix) with ESMTP id 4418F837F24A; Sat, 11 Aug 2018 15:06:13 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::,RULES_HIT:41:355:379:541:599:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3873:4321:5007:6119:7903:10004:10400:10848:11026:11232:11473:11658:11914:12043:12295:12438:12740:12760:12895:13069:13311:13357:13439:13548:14659:21080:21451:21611:21627:21740:30012:30054:30079:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:30,LUA_SUMMARY:none X-HE-Tag: tail16_8d54ac301ad15 X-Filterd-Recvd-Size: 1986 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf11.hostedemail.com (Postfix) with ESMTPA; Sat, 11 Aug 2018 15:06:11 +0000 (UTC) Message-ID: <2089960838bccf80f6fb9cc586b1a663f1f9e9da.camel@perches.com> Subject: Re: [PATCH] Performance Improvement in CRC16 Calculations. From: Joe Perches To: dgilbert@interlog.com, Nicolas Pitre Cc: Jeff Lien , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, linux-block@vger.kernel.org, linux-scsi@vger.kernel.org, herbert@gondor.apana.org.au, tim.c.chen@linux.intel.com, martin.petersen@oracle.com, david.darrington@wdc.com, jeff.furlong@wdc.com Date: Sat, 11 Aug 2018 08:06:10 -0700 In-Reply-To: <8e63583eb6898c3f481f1cb45b067234737a11b4.camel@perches.com> References: <1533928331-21303-1-git-send-email-jeff.lien@wdc.com> <9b5b906f42dfab78f382c90f66851717d258a15d.camel@perches.com> <75d66dfa-688b-f941-04fd-5a39cf882b21@interlog.com> <8e63583eb6898c3f481f1cb45b067234737a11b4.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2018-08-11 at 02:04 -0700, Joe Perches wrote: > On Fri, 2018-08-10 at 22:39 -0400, Douglas Gilbert wrote: > > but below is a copy and paste of a table 27 from draft SBC-4 > > revision 15 in chapter 4.22.4.4 on page 87. > > The posted code returns the proper crc for each > CONFIG_CRYPTO_CRCT10DIF_TABLE_SIZE value from > 1 to 5 for these arrays. Jeff, could you please test the suggested patch with your comparison framework again with each CONFIG_CRYPTO_CRCT10DIF_TABLE_SIZE from 1 to 5? I get on a very limited test framework here: (runtime average of 10 runs) 1: 4.32 2: 1.86 3: 1.31 4: 1.05 5: 0.99