[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160418083116.GA18406@gondor.apana.org.au>
Date: Mon, 18 Apr 2016 16:31:16 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Baolin Wang <baolin.wang@...aro.org>
Cc: David Miller <davem@...emloft.net>,
Alasdair G Kergon <agk@...hat.com>,
Mike Snitzer <snitzer@...hat.com>, Jens Axboe <axboe@...com>,
dm-devel@...hat.com, Andrew Morton <akpm@...ux-foundation.org>,
david.s.gordon@...el.com, Tom Lendacky <thomas.lendacky@....com>,
Robert Jarzmik <robert.jarzmik@...e.fr>,
Masahiro Yamada <yamada.masahiro@...ionext.com>,
smueller@...onox.de, tadeusz.struk@...el.com,
Masanari Iida <standby24x7@...il.com>, shli@...nel.org,
Mark Brown <broonie@...nel.org>,
Linus Walleij <linus.walleij@...aro.org>,
Arnd Bergmann <arnd@...db.de>,
LKML <linux-kernel@...r.kernel.org>,
linux-crypto@...r.kernel.org, linux-raid@...r.kernel.org
Subject: Re: [PATCH v2 0/4] Introduce bulk mode for crypto engine framework
On Mon, Apr 18, 2016 at 04:28:46PM +0800, Baolin Wang wrote:
>
> What I meaning is if the xts engine can support bulk block, then the
> engine driver can select bulk mode to do encryption, but if their xts
> engine can not support bulk mode, which depends on hardware design,
> the engine driver can not select bulk mode. So the dm-crypt can not
> know what will be selected by the engine driver, it can not send one
> bulk block each time.
Why can't the xts code just break it up if it can't handle it?
You want to postpone splitting as much as possible. Even if the
underlying xts code couldn't handle it, it would still make sense
for the crypto API to see the request in one piece.
Cheers,
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists