From patchwork Fri Oct 11 16:32:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 176007 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp990044ill; Fri, 11 Oct 2019 09:35:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxp1guiHHxZEkAKqSzlFoe6/YUgtqe9ByUYTvCZCLwufudpcZNc+KMM9Ysm7n04/n1jFSZF X-Received: by 2002:a17:906:46c3:: with SMTP id k3mr14758659ejs.70.1570811735397; Fri, 11 Oct 2019 09:35:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570811735; cv=none; d=google.com; s=arc-20160816; b=yG8y369bR6AObpwiC+51OR70wwfuoyIhj7h420annI8zzstJPLnayfB8HLJom/xIcw KqQ5lbsF4vfwb3+AdvUG5dhbGvbb6vSCzcduIrLiDGSr43qe2sC+ra227z121EwZIdm6 pVhZXDnfcspzpFS8hfmEXOimB2OnIBalt+AjFJF2sBMdpoJpciuFF5B/FbRqSm38zBvq gjtWTPYWfiGuVnppQwaywK4KDwbIKEU8ZVIX/H8b8PfNbAZK/wJGunEvbdkwETfw/6re 7tZmusWYvlRIayJoqTaPwehG3hKddmURsk22JLxidkK3wwOKR5WSqivqMFq9cwNNjJZX 03Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:cc:to:from; bh=0N0JHrCHIHaWBnwXFUKiW38R5fAEER+Or+LvuXwTsWs=; b=b4cK8JmPvsVDt1bDxYkkr68q7lQGtAhBZeIBYkhNHS+GUkNUbRGjby3zdw9fPwLgag FqmtvuIbOBksdMoLY6+XG4AyXqgqwqRc6FkPQltapGLZq07T3kzPHt4WpggGGzq2oHF9 NCkPp0ifpRmHI0LYTg658INR3nhDFOCkeIyHYLB+T4zIZhLhNrsLS9XKBAJtF9XaxQYt tG/tTnjQN2arrHAIi7PJyvFVSBVE3Sr22iPQcxR74Xr6PO5hvsEfeVK1Vqzb8V+EDV/z GYJzVNKOypYu5ptVBJCDm3un0qZGtzztRbIndGMnKTZZuXs74+z6ViYUNMny5CRmYzme AgiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id i5si5758689edj.107.2019.10.11.09.35.35; Fri, 11 Oct 2019 09:35:35 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5BE3A1EB52; Fri, 11 Oct 2019 18:35:20 +0200 (CEST) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by dpdk.org (Postfix) with ESMTP id B65AF1EB44; Fri, 11 Oct 2019 18:35:14 +0200 (CEST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 97AC21A056F; Fri, 11 Oct 2019 18:35:14 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 53F231A020A; Fri, 11 Oct 2019 18:35:12 +0200 (CEST) Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.133.63]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id C508C402EC; Sat, 12 Oct 2019 00:35:08 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org Cc: akhil.goyal@nxp.com, stable@dpdk.org, Vakul Garg Date: Fri, 11 Oct 2019 22:02:26 +0530 Message-Id: <20191011163233.31017-4-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191011163233.31017-1-hemant.agrawal@nxp.com> References: <20191011163233.31017-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH 03/10] crypto/dpaa_sec: fix to check for aead as well X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Vakul Garg The code shall also check aead as non auth-cipher case Fixes: 1f14d500bce1 ("crypto/dpaa_sec: support IPsec protocol offload") Cc: stable@dpdk.org Signed-off-by: Vakul Garg --- drivers/crypto/dpaa_sec/dpaa_sec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c b/drivers/crypto/dpaa_sec/dpaa_sec.c index 38cfdd378..e89cbcefb 100644 --- a/drivers/crypto/dpaa_sec/dpaa_sec.c +++ b/drivers/crypto/dpaa_sec/dpaa_sec.c @@ -266,7 +266,8 @@ static inline int is_auth_cipher(dpaa_sec_session *ses) return ((ses->cipher_alg != RTE_CRYPTO_CIPHER_NULL) && (ses->auth_alg != RTE_CRYPTO_AUTH_NULL) && (ses->proto_alg != RTE_SECURITY_PROTOCOL_PDCP) && - (ses->proto_alg != RTE_SECURITY_PROTOCOL_IPSEC)); + (ses->proto_alg != RTE_SECURITY_PROTOCOL_IPSEC) && + (ses->aead_alg == 0)); } static inline int is_proto_ipsec(dpaa_sec_session *ses)