From patchwork Wed Jun 1 04:58:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "(Exiting) Baolin Wang" X-Patchwork-Id: 9146041 Return-Path: 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 A740C60757 for ; Wed, 1 Jun 2016 04:59:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F5F3200E7 for ; Wed, 1 Jun 2016 04:59:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9371D20499; Wed, 1 Jun 2016 04:59:39 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D73B72040D for ; Wed, 1 Jun 2016 04:59:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757308AbcFAE7K (ORCPT ); Wed, 1 Jun 2016 00:59:10 -0400 Received: from mail-pf0-f179.google.com ([209.85.192.179]:32844 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757304AbcFAE7I (ORCPT ); Wed, 1 Jun 2016 00:59:08 -0400 Received: by mail-pf0-f179.google.com with SMTP id b124so7209455pfb.0 for ; Tue, 31 May 2016 21:59:08 -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=LMj88xr2+RRBAkPryTTJW1CVJyfB9rkgyEfo3pkpcwmOFbhjGw30sY4sOHGLTzto6i j8NzMDdFQAOz46TVZx3NQTKHSawSSirrFOrfcYwl8c23WUuUdCssFSFAFV7NvNl19OH/ LV+BURRKoofe8SctiPYKjPwajmzXA6O1Wcm2Q= 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=J/wHlem/nv48aILgvw9++uYjdc/bH1FlVvaAR2PQag7KdZz2MGjWkHq1xoOAu+t3Mu j08ChCeL58/f1Ny8y1r+fZfhOmQsVuimQvQyp22fOX3+Bj2RMCub5KpEisyDnoIRVeRp jUnlQx8eOvl3CUp0RldYwsyCwXXlryACRSjK/Cnjta0FhS9SRJD6n0YGPlwIvAP0G5El BtnhBKMcwQn/v9VzDsa3wczvf1sXxfRSyv8D0JbHxWfJUMdX72B5rtnK/KqhwSO2GCWm qrRkcEoaIYp9tZsz2Xo/45AdrgdsRuFGgieG0ftwI3HRzVO7115/KT97iZ2aUeXTkGuc kUyA== X-Gm-Message-State: ALyK8tJIQoHUDKgrUCUxRBRMYjWURzpuYlZ78d493dkuYH/9LJ53s5eLoMA1jPxlXSwfras9 X-Received: by 10.98.5.196 with SMTP id 187mr4265809pff.133.1464757147520; Tue, 31 May 2016 21:59:07 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([175.111.195.49]) by smtp.gmail.com with ESMTPSA id d71sm42764420pfd.80.2016.05.31.21.59.00 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 May 2016 21:59:07 -0700 (PDT) From: Baolin Wang To: axboe@kernel.dk, agk@redhat.com, snitzer@redhat.com, dm-devel@redhat.com, herbert@gondor.apana.org.au, davem@davemloft.net Cc: ebiggers3@gmail.com, js1304@gmail.com, tadeusz.struk@intel.com, smueller@chronox.de, standby24x7@gmail.com, shli@kernel.org, dan.j.williams@intel.com, martin.petersen@oracle.com, sagig@mellanox.com, kent.overstreet@gmail.com, keith.busch@intel.com, tj@kernel.org, ming.lei@canonical.com, broonie@kernel.org, arnd@arndb.de, linux-crypto@vger.kernel.org, linux-block@vger.kernel.org, linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org, baolin.wang@linaro.org Subject: [RFC v3 4/4] crypto: Add the CRYPTO_ALG_BULK flag for ecb(aes) cipher Date: Wed, 1 Jun 2016 12:58:07 +0800 Message-Id: <957907cb21cf096815c1defc4c95d88471eba1b2.1464756501.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/crypto/omap-aes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,