Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp903207imm; Sat, 11 Aug 2018 02:05:13 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxlexYZESAbuSPiHNEdDq1EH++jAOsZk+MlE/a550INZTPIJ3jDU7U+Fhv5UaOnE1jdlqsl X-Received: by 2002:a17:902:6f02:: with SMTP id w2-v6mr9100836plk.216.1533978313688; Sat, 11 Aug 2018 02:05:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533978313; cv=none; d=google.com; s=arc-20160816; b=By9G25nj/ZayQFH8+4JZ7oxdVUi8mMY6p6VoXmR9enG42se8Blo5g7DkRbp3pnnnNO KktlPn4vWIrOCovUQPQpHrRRkKb8wgNbgV+KgxAh5UsybumwS+hW5o4ykRCBqnb0FUBG a0hs9f5J1TyqRwkC90oFN3Yb33qKN+vs1ckflwQXTKx3L/L2OJkBN4HkLY8/8C3/TwvK 3pKT2QtQgK5MeteX1CMUR9pYUns/mSRchnsFaO1Tk1yqaZhl85whasqYuX5w7NLXFcSD gU/c/nYF8t7HHDkkVBxUjyRTioX93vCBPCDYT9HmUBgKMuasLCIrZC6HC3Bkjzu3vh87 UirQ== 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=NwXUxYhHIZ8JHDrAhCzEALAjLcxbcSWzGjky1wVVjOk=; b=bAnH6gbVuDeBuPPjeTI1PMh7b77VZWzeUMFq+wmcKO12iuh91g+Ue5ngOtAaLlRXgl 7JCgRkwy2EGUs7HMfGwC8GX7WBqb7ABzuKZKFKBpVjDHOvLxNnaSa8QZSOUR9dmIZeL+ q25HFxZ6a3Vtt8NVGtWLqvUlydPUAtJqgTj4fA8eLyijInDRdXxcgoGGIYnBqa1qxXDO +9CmCnb6XF13zh6UxBqMz51VUkLuFt4lJk6B/0WJ0TmGzelBxl5+odhRkk9THnhjioSZ 0bEX7WcDRZaK8uUG850PQGZ4dMYxAGMHONURIe7XPuk+qQoD70LfEgAY3I40LGPUFur8 0Iog== 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 h29-v6si11473321pgb.53.2018.08.11.02.04.58; Sat, 11 Aug 2018 02:05:13 -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 S1727289AbeHKLhm (ORCPT + 99 others); Sat, 11 Aug 2018 07:37:42 -0400 Received: from smtprelay0159.hostedemail.com ([216.40.44.159]:41882 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727206AbeHKLhm (ORCPT ); Sat, 11 Aug 2018 07:37:42 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay07.hostedemail.com (Postfix) with ESMTP id EEB37181D337B; Sat, 11 Aug 2018 09:04:09 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::,RULES_HIT:41:355:379:541:599:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1537:1566:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3622:3865:3866:3867:3868:3870:3871:4321:5007:6119:7903:10004:10400:10848:11026:11473:11658:11914:12043:12295:12438:12740:12760:12895:13069:13161:13229:13311:13357:13439:14659:21080:21451:21627: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:29,LUA_SUMMARY:none X-HE-Tag: dock16_241525b8ae007 X-Filterd-Recvd-Size: 1571 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf06.hostedemail.com (Postfix) with ESMTPA; Sat, 11 Aug 2018 09:04:07 +0000 (UTC) Message-ID: <8e63583eb6898c3f481f1cb45b067234737a11b4.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 02:04:06 -0700 In-Reply-To: <75d66dfa-688b-f941-04fd-5a39cf882b21@interlog.com> References: <1533928331-21303-1-git-send-email-jeff.lien@wdc.com> <9b5b906f42dfab78f382c90f66851717d258a15d.camel@perches.com> <75d66dfa-688b-f941-04fd-5a39cf882b21@interlog.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 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.