Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752192AbcDRNgT (ORCPT ); Mon, 18 Apr 2016 09:36:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33203 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751054AbcDRNgQ (ORCPT ); Mon, 18 Apr 2016 09:36:16 -0400 Date: Mon, 18 Apr 2016 09:36:12 -0400 From: Mike Snitzer To: Baolin Wang Cc: Herbert Xu , David Miller , Alasdair G Kergon , Jens Axboe , dm-devel@redhat.com, Andrew Morton , david.s.gordon@intel.com, Tom Lendacky , Robert Jarzmik , Masahiro Yamada , smueller@chronox.de, tadeusz.struk@intel.com, Masanari Iida , shli@kernel.org, Mark Brown , Linus Walleij , Arnd Bergmann , LKML , linux-crypto@vger.kernel.org, linux-raid@vger.kernel.org, Milan Broz Subject: Re: [PATCH v2 0/4] Introduce bulk mode for crypto engine framework Message-ID: <20160418133612.GA16853@redhat.com> References: <20160415134849.GA32694@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1369 Lines: 32 On Mon, Apr 18 2016 at 1:31am -0400, Baolin Wang wrote: > Hi Herbert, > > On 15 April 2016 at 21:48, Herbert Xu wrote: > > On Tue, Mar 15, 2016 at 03:47:58PM +0800, Baolin Wang wrote: > >> Now some cipher hardware engines prefer to handle bulk block by merging requests > >> to increase the block size and thus increase the hardware engine processing speed. > >> > >> This patchset introduces request bulk mode to help the crypto hardware drivers > >> improve in efficiency. > > > > Could you please explain why this merging can't be done in dm-crypt > > instead? > > We've tried to do this in dm-crypt, but it failed. > The dm-crypt maintainer explained to me that I should optimize the > driver, not add strange hw-dependent crypto modes to dm-crypt, this is > not the first crypto accelerator that is just not suited for this kind > of use. As a DM mainatiner my only contribution to this line of discussion was relative to your proposal to train the dm-crypt target (which is bio-based) to also provide request-based support, see: https://www.redhat.com/archives/dm-devel/2015-November/msg00112.html But follow-up discussion occured, primarily with Milan Broz, which led to this bulk mode support in the crypto layer. Pretty strange Milan wasn't cc'd on your patchset posting (I've now cc'd him). Mike