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: 9146039 X-Patchwork-Delegate: herbert@gondor.apana.org.au 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 4DA5960757 for ; Wed, 1 Jun 2016 04:59:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 463C5200E7 for ; Wed, 1 Jun 2016 04:59:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3A6EA2522B; Wed, 1 Jun 2016 04:59:38 +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 B5A06200E7 for ; Wed, 1 Jun 2016 04:59:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757314AbcFAE7K (ORCPT ); Wed, 1 Jun 2016 00:59:10 -0400 Received: from mail-pf0-f180.google.com ([209.85.192.180]:32844 "EHLO mail-pf0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757270AbcFAE7I (ORCPT ); Wed, 1 Jun 2016 00:59:08 -0400 Received: by mail-pf0-f180.google.com with SMTP id b124so7209456pfb.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=c2cb6LVBBmDLjuQfwu5mII5Nucoqf1ozNK0ARdQm/u+HBX5OJEpxic8ZXARd/5QWWC Z2keki6O0ehCW5qpT1/kj7hcXppEmIBD8nET+zt6ILHJwJ0I1gKaOp7465LWjoWL2Lqw xFr0PybySUZ5QGxTtyFu4Gh7IOMl+v7G3BUUVHcprZXvdtCI5YH05RnU0/+MWyoCB28c oxBLyiv/JieybT/8KIGk2i4Fokd/XyX49ry51YigspwH/bpCcdoxGfIH0WxK+QOMBia2 RQetGAfZxnwBntpYEorBaUN++htE+qTBS7eW1G/t11LcPNVRBclN9fStsdz+OWYWRn8b /FWA== X-Gm-Message-State: ALyK8tJDWWCGv3dczzCRYSc4kIiOH3Ch3buNYZF8iw9NYMhGbFbia9gtbwfHYZGtcPtMgnfa 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-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@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,