From: Tim Chen Subject: Re: [PATCH v4 3/4] lib: introduce crc_t10dif_update() Date: Tue, 05 May 2015 09:16:33 -0700 Message-ID: <1430842593.660.112.camel@schen9-desk2.jf.intel.com> References: <1430461431-5936-1-git-send-email-akinobu.mita@gmail.com> <1430461431-5936-4-git-send-email-akinobu.mita@gmail.com> <1430496906.660.79.camel@schen9-desk2.jf.intel.com> <1430755775.660.88.camel@schen9-desk2.jf.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: target-devel@vger.kernel.org, Herbert Xu , "David S. Miller" , linux-crypto@vger.kernel.org, Nicholas Bellinger , Sagi Grimberg , "Martin K. Petersen" , Christoph Hellwig , "James E.J. Bottomley" To: Akinobu Mita Return-path: Received: from mga02.intel.com ([134.134.136.20]:21957 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752042AbbEEQQe (ORCPT ); Tue, 5 May 2015 12:16:34 -0400 In-Reply-To: Sender: linux-crypto-owner@vger.kernel.org List-ID: On Tue, 2015-05-05 at 13:22 +0900, Akinobu Mita wrote: > The reason for crypto_shash_import() was I wanted to make > crc_t10dif_update() more generic. But as far as I can see existing > crct10dif modules (crct10dif-generic and crct10dif-pclmul), we don't > need it (i.e. '*(__u16 *)desc.ctx = crc' instead of crc_t10dif_import) > > Do you think it's better to remove crc_t10dif_import call from > crc_t10dif() and crc_t10dif_update() altogether? Yes, it will be better if we can eliminate crc_t10dif_import call if we can do a direct assignment. Tim