Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp697754pxm; Fri, 25 Feb 2022 17:35:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJyvYYMkZQcG3VPScKuSsIQYzP468g/Kll/0AIlqsgmh0FX/FnjZXagGugXHBx0E9NG4F7Hh X-Received: by 2002:a17:902:7b85:b0:14e:fbca:9af9 with SMTP id w5-20020a1709027b8500b0014efbca9af9mr9863847pll.29.1645839303924; Fri, 25 Feb 2022 17:35:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645839303; cv=none; d=google.com; s=arc-20160816; b=k+S06a3m11IcoOMrxynhdwMl6WJB3wpjo11DSp5UAfZU3XMkW2cO1dZkAhmX83cQxI 2VC2ULbSiqPTaNTYTqjAnZ1sFNhfKdyzGLSUlsxdRpyV2mnbUBzvwJFWu/UbHShGBMZ4 Zrevv8eLmmg82aAON7nNvoElo2TDVwr3tRrKNyewaGD8Shf3oxpwxsgdun5N1Ja0kMDB 9+TyeqC/P1fF05y4/l1k1MADhAQt1GI8MRgI43vCdkHRUYOExhGa1VQl4BrQ3hfGnPFL 6T4rdeCi3v3nz0/9IH2hWEC6Mx7Abuhr1j5cYkc+LL+Vb0047hnasQ6am+K4hSlJTwvj DO+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Q/peAGBWtsQBU0632/2ZHPNzyLKa2P7sBW0VQL5RzMU=; b=i4eutvUY63XkBsh8C1lWv32P5t13YzOsxj1pcY6Un9fE0bh9VNmd1VGbZnJQJ6MVYm MtU9y++N3l6nNPvobN8D7xLv5Gkxw0O55wACNMSqNqShD+aOg4QgO4HZBzRzMxcD8dXK bAVWW0F3FQPml5FMkEqBkBs8R5fqdNqTro2/t/EDJnF1Z288nHP/P6j//jHcWH4vu2QS ulgBd2rTXxvQlP614gMhjfPLQlSo6sJq36VC4Ni3DpzjUpXEliQZKxIj04c8VuvJ6aZj yUHRjHZkZGfubqwkz4uy8t7WQopgCDM3llXcUg/vNXVL9TJHAiGmlO4qIMkXmxJR42kP 7JkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mtsCG6GW; spf=softfail (google.com: domain of transitioning linux-crypto-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 4-20020a630c44000000b003739f49a7e9si3111846pgm.488.2022.02.25.17.35.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 17:35:03 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-crypto-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mtsCG6GW; spf=softfail (google.com: domain of transitioning linux-crypto-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 28D331F83F1; Fri, 25 Feb 2022 17:29:50 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242667AbiBYQNj (ORCPT + 99 others); Fri, 25 Feb 2022 11:13:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242666AbiBYQNe (ORCPT ); Fri, 25 Feb 2022 11:13:34 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD9684D9F8; Fri, 25 Feb 2022 08:13:02 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 634D961743; Fri, 25 Feb 2022 16:13:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C090C340E7; Fri, 25 Feb 2022 16:13:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645805581; bh=jt01kIc8j089u4k2Qkwdo2wyv3o+TW0lyH1J9zmLffY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mtsCG6GWUXJc3Bz0PD+LGadcwO49hYXB9NxWwK58IRveizIGJHxPcl/nCtE9xDB3O zzUF3KVgw5qJhG4u3RaGtW1rOebnEJo6nyfO4ed9pMr7IOgujwZHqRdb3l0LUa/xdO 1Y22GWteHEf5kfOz4bfoty8L1/jT2nsSMVVEZgU4JaYe+JomrfvrT1ZQrhgVAKMVV5 BVRB70E5ynby6zEgleP5g85w3DsopvUV962TRS6mDzIigOUNH4OG1iCuAMShznJIwI 4JwDzSI3XRPpKfQam2qHoRSf2yNBadLgfV9TRLtWmArvp+5yE6ZBEl6B+BOA5Kaotm 8TpOo2S0DJneQ== Date: Fri, 25 Feb 2022 08:12:59 -0800 From: Keith Busch To: Christoph Hellwig Cc: linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, linux-crypto@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, axboe@kernel.dk, martin.petersen@oracle.com, colyli@suse.de Subject: Re: [PATCHv3 07/10] lib: add crc64 tests Message-ID: <20220225161259.GA4111669@dhcp-10-100-145-180.wdc.com> References: <20220222163144.1782447-1-kbusch@kernel.org> <20220222163144.1782447-8-kbusch@kernel.org> <20220225160509.GE13610@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220225160509.GE13610@lst.de> X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Feb 25, 2022 at 05:05:09PM +0100, Christoph Hellwig wrote: > On Tue, Feb 22, 2022 at 08:31:41AM -0800, Keith Busch wrote: > > Provide a module to test the rocksoft crc64 calculations with well known > > inputs and exepected values. Check the generic table implementation and > > whatever module is registered from the crypto library, and compare their > > speeds. > > The code looks good, but isn't the trent to use the kunit framework > for these kinds of tests these days? I don't have experience with kunit, but I'll look into that. I am already changing the way this gets tested. Eric recommended adding to the crypto "testmgr", and I've done that on my private tree. That test framework exercises a lot more than this this patch, and it did reveal a problem with how I've implemented the initial XOR when the buffer is split, so I have some minor updates coming soon.