Message ID | 1c7f3a872ce0382add0d5fc88b797eb3c2ab37f5.1465301616.git.baolin.wang@linaro.org (mailing list archive) |
---|---|
State | Rejected, archived |
Delegated to: | Mike Snitzer |
Headers | show
Return-Path: <dm-devel-bounces@redhat.com> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7BCF960467 for <patchwork-dm-devel@patchwork.kernel.org>; Tue, 7 Jun 2016 12:22:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6B9E226861 for <patchwork-dm-devel@patchwork.kernel.org>; Tue, 7 Jun 2016 12:22:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5D62C281D2; Tue, 7 Jun 2016 12:22:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mx5-phx2.redhat.com (mx5-phx2.redhat.com [209.132.183.37]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E83EC26861 for <patchwork-dm-devel@patchwork.kernel.org>; Tue, 7 Jun 2016 12:22:16 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx5-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u57CIlFK019217; Tue, 7 Jun 2016 08:18:47 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u57CIlY5027387 for <dm-devel@listman.util.phx.redhat.com>; Tue, 7 Jun 2016 08:18:47 -0400 Received: from mx1.redhat.com (ext-mx07.extmail.prod.ext.phx2.redhat.com [10.5.110.31]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u57CIlWc018396 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <dm-devel@redhat.com>; Tue, 7 Jun 2016 08:18:47 -0400 Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4184AC049D7F for <dm-devel@redhat.com>; Tue, 7 Jun 2016 12:18:46 +0000 (UTC) Received: by mail-pa0-f52.google.com with SMTP id ec8so39833685pac.0 for <dm-devel@redhat.com>; Tue, 07 Jun 2016 05:18:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=Vl90fhDP1oN/95ggGPrdiI5tmS9g+QTqmrAhR2MvBxQ=; b=ZP/PFjEH4jFO9AZHeAv6X2iqVRDkKHebVCv3leGwn6SFrSTa13PQ3TmTkJRM02QdKf ahkJ+uGBfnOg9ItpjzYtEOoqilr98iq9Ib0ThjG1u69N80+cVqmd0aK3xPGom5dzu5UZ bs8xJgcekeMUskr63CTHkNWOZXx4qFodxqfEU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=Vl90fhDP1oN/95ggGPrdiI5tmS9g+QTqmrAhR2MvBxQ=; b=TRqygNZZwSDI8XmfEJt7M1J0kuJzbjeG/oxYZ4TYSS4GzK2h8JFCWs+vqDq11jZzRf u8EASLEsG3Nki0eDo3ReXincrba5I6SpGnW5J6yFEQ234DbpmwpOaOSgRhaKHJRp1wr6 +iYq8OeKCViUFb/I0KmjPMqAF7uJHCHU6ST74tsViaS5AP6v8zbjUlohSTy46QGzTCES UeiCmS17BadHRmuU/wIzYk8wwIyq5vF+NTRVuVSiQrNJcDap3YakF7t5JCWJOty9vtf1 0Udqre/ROAm/lmBMsOuVS7hHv+Y2nfeCdPCqV61oXXKk+TY06eHCgadquAV7qPDddyIQ EClw== X-Gm-Message-State: ALyK8tJa4xSVH5s2w3n6PAx372yr+Xl8ji+6c/Ldqcl0r+Gy9yqvBKnPsTokxXrzBvbjdfPS X-Received: by 10.66.172.49 with SMTP id az17mr502381pac.104.1465301925744; Tue, 07 Jun 2016 05:18:45 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([175.111.195.49]) by smtp.gmail.com with ESMTPSA id r64sm34995877pfi.54.2016.06.07.05.18.38 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Jun 2016 05:18:44 -0700 (PDT) From: Baolin Wang <baolin.wang@linaro.org> To: axboe@kernel.dk, agk@redhat.com, snitzer@redhat.com, dm-devel@redhat.com, herbert@gondor.apana.org.au, davem@davemloft.net Date: Tue, 7 Jun 2016 20:17:07 +0800 Message-Id: <1c7f3a872ce0382add0d5fc88b797eb3c2ab37f5.1465301616.git.baolin.wang@linaro.org> In-Reply-To: <cover.1465301616.git.baolin.wang@linaro.org> References: <cover.1465301616.git.baolin.wang@linaro.org> In-Reply-To: <cover.1465301616.git.baolin.wang@linaro.org> References: <cover.1465301616.git.baolin.wang@linaro.org> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Tue, 07 Jun 2016 12:18:46 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Tue, 07 Jun 2016 12:18:46 +0000 (UTC) for IP:'209.85.220.52' DOMAIN:'mail-pa0-f52.google.com' HELO:'mail-pa0-f52.google.com' FROM:'baolin.wang@linaro.org' RCPT:'' X-RedHat-Spam-Score: -0.421 (BAYES_50, DCC_REPUT_00_12, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS) 209.85.220.52 mail-pa0-f52.google.com 209.85.220.52 mail-pa0-f52.google.com <baolin.wang@linaro.org> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Scanned-By: MIMEDefang 2.78 on 10.5.110.31 X-loop: dm-devel@redhat.com Cc: sagig@mellanox.com, linux-raid@vger.kernel.org, martin.petersen@oracle.com, js1304@gmail.com, tadeusz.struk@intel.com, smueller@chronox.de, ming.lei@canonical.com, ebiggers3@gmail.com, linux-block@vger.kernel.org, keith.busch@intel.com, linux-kernel@vger.kernel.org, standby24x7@gmail.com, broonie@kernel.org, arnd@arndb.de, linux-crypto@vger.kernel.org, baolin.wang@linaro.org, tj@kernel.org, dan.j.williams@intel.com, shli@kernel.org, kent.overstreet@gmail.com Subject: [dm-devel] [RFC v4 4/4] crypto: Add the CRYPTO_ALG_BULK flag for ecb(aes) cipher X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development <dm-devel.redhat.com> List-Unsubscribe: <https://www.redhat.com/mailman/options/dm-devel>, <mailto:dm-devel-request@redhat.com?subject=unsubscribe> List-Archive: <https://www.redhat.com/archives/dm-devel> List-Post: <mailto:dm-devel@redhat.com> List-Help: <mailto:dm-devel-request@redhat.com?subject=help> List-Subscribe: <https://www.redhat.com/mailman/listinfo/dm-devel>, <mailto:dm-devel-request@redhat.com?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap-aes.c index ce174d3..ab09429 100644 --- a/drivers/crypto/omap-aes.c +++ b/drivers/crypto/omap-aes.c @@ -804,7 +804,7 @@ static struct crypto_alg algs_ecb_cbc[] = { .cra_priority = 300, .cra_flags = CRYPTO_ALG_TYPE_ABLKCIPHER | CRYPTO_ALG_KERN_DRIVER_ONLY | - CRYPTO_ALG_ASYNC, + CRYPTO_ALG_ASYNC | CRYPTO_ALG_BULK, .cra_blocksize = AES_BLOCK_SIZE, .cra_ctxsize = sizeof(struct omap_aes_ctx), .cra_alignmask = 0,
Since the ecb(aes) cipher does not need to handle the IV things for encryption or decryption, that means it can support for bulk block when handling data. Thus this patch adds the CRYPTO_ALG_BULK flag for ecb(aes) cipher to improve the hardware aes engine's efficiency. Signed-off-by: Baolin Wang <baolin.wang@linaro.org> --- drivers/crypto/omap-aes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)