From patchwork Thu Jan 25 09:53:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 125799 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp1032278ljf; Thu, 25 Jan 2018 03:03:33 -0800 (PST) X-Google-Smtp-Source: AH8x224/603kuSY9PxRZhTGRdh5votUWmfo2casRJGVqM7IU83LzRhtTFyC5MDxX0Z/ygiEuvUXZ X-Received: by 10.28.157.139 with SMTP id g133mr7699082wme.114.1516878212874; Thu, 25 Jan 2018 03:03:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516878212; cv=none; d=google.com; s=arc-20160816; b=haUhG3PtQhji+HqeqwyuDspS0s2PFAouyxI5dHNgoB1mQDU5jPv10UFHQz3LeFjGjX IFtEXbT1D+/OTXlGNVLcHnrShQoFFIuCDbKAa/YBFKpGyzPgHjghN9mA9aD/JvfJvCav Xv2IEZ2m3V+uKwy6IS57rHm/7PXOZNwjN0cmX6ykHeOCfrxxsanloxArR/LjHqW/V6+V Id0yVW7hLBJyO7OJq6GpdClqYJ/mXlP192MCd8CnZdU7yCebB7zchMGzUONFk5FDIJaR kTc0QiGIyK5aHBu0+PFy4xmkzRtNBq1GsCv2dPshyaLs+E02JqiORsrbUZSYI1nxpFIg kB0g== 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:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:arc-authentication-results; bh=gimpwpKHW0LPfC0mCd0bVMBMkbT1kd9bG0EmG/COLBo=; b=QTZ9IYFN/tcODemnReJpGzOY+SFMVKjerEppum0/695BxhBVDxFLl1CG3t5r1SDdby XTTttVTknZTPL4ib5B/zwvzhEmgoXAqGkB8C4jRC0d0CrOu9z12DPtNnE9PUUiC6ohrD gFcuYZc2Kyg91fXwV5SXhwbRZt58QeWtMPidE1UGesqkE74NwCCSBs4lc2hBd8u1M5/A zv622JSNtq26dK2W8zWHomU/QcPQg2duep9GqstJLlMrs4L+thOMrhQSjYXqwwiftuJi xJKQJAeMVdHXWmMLpNPwDA7sf9oVkd7/o2ux2usTNyVCNSaDUlGi4r1n1bYJLiiUvTOj zyuA== 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 b66si693714wmb.24.2018.01.25.03.03.32; Thu, 25 Jan 2018 03:03:32 -0800 (PST) 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 10FB21B173; Thu, 25 Jan 2018 12:03:25 +0100 (CET) Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0063.outbound.protection.outlook.com [104.47.38.63]) by dpdk.org (Postfix) with ESMTP id 994662BF3; Thu, 25 Jan 2018 12:03:21 +0100 (CET) Received: from DM5PR03CA0036.namprd03.prod.outlook.com (2603:10b6:4:3b::25) by BY1PR03MB1419.namprd03.prod.outlook.com (2a01:111:e400:5255::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Thu, 25 Jan 2018 11:03:20 +0000 Received: from BN1BFFO11FD031.protection.gbl (2a01:111:f400:7c10::1:139) by DM5PR03CA0036.outlook.office365.com (2603:10b6:4:3b::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.444.14 via Frontend Transport; Thu, 25 Jan 2018 11:03:19 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD031.mail.protection.outlook.com (10.58.144.94) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.428.12 via Frontend Transport; Thu, 25 Jan 2018 11:03:19 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id w0P9sfR8022450; Thu, 25 Jan 2018 02:54:49 -0700 From: Hemant Agrawal To: CC: , , Date: Thu, 25 Jan 2018 15:23:29 +0530 Message-ID: <1516874011-8760-4-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516874011-8760-1-git-send-email-hemant.agrawal@nxp.com> References: <1516874011-8760-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131613517994556058; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(396003)(39860400002)(346002)(39380400002)(376002)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(6666003)(69596002)(4326008)(498600001)(104016004)(356003)(2950100002)(450100002)(5660300001)(316002)(16586007)(336011)(86362001)(50226002)(68736007)(8936002)(6916009)(54906003)(106466001)(77096007)(2906002)(2351001)(105606002)(26005)(85426001)(48376002)(97736004)(76176011)(51416003)(53936002)(47776003)(36756003)(50466002)(8676002)(59450400001)(305945005)(81156014)(81166006); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR03MB1419; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD031; 1:IQGFGY6gtMKf2mSm8L7mE4ynhwGLLomrxGqiMmNkQcpvXnKZq2oFxl1xY37+l6SgiQkzWYPnnRqe8wjsTxYlVTnbDCXarhJw423IYXP4v95vlLNyKxRSESDNo5teMF+q MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 614cb298-23be-449e-b7d8-08d563e33e26 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:BY1PR03MB1419; X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1419; 3:ttkPsiVFDj0xN6A08yYsqJt+F2Y/ZVEAw8HYUqAX9LwyVLMbbykIDbyj6hLYIU6KFA9f5JeL9c0IhNidKJVCPsY2DWl0/6biDWWpjjE4Hco2KEXwwj1YnH37ZZhakltkpcy9GeOsrl2X28Nb9nmoAqQSM2Dn7QI9d8AUubaD1UahFsgR51545XPuq1+Zi6AFCxqWwxA++wDd3lRdAT+xwJpqG05wGR2tYAIQeTNoLRwcTiytCs1LJVeI5ERusm9NR5u3HOaaidaHYTKDKSq6UkqWulnsCm5wCW4Nx3NRKa7jzUP+Bxf1EJpfsiz25uXR/Mv2dhcpRu2oN6j0Hbk7RawSA4ojDnsqtg+UZ9XXNyE=; 25:MPwkfCwrSTyOYbbq6XgPNOiWcBCJwV60L+Thk0+bC59D5RLvoPHqIBfX3Xd/wRzD0fQqkXrNPhthb4gSJ1pWBGZxy6WRUSxXYJHmoqoqsK3CIfenj7KueasLd/w3m4tje9t92qqc8QwiZKCJHp2KrKRA5Gd9xVauF9lCul+JwRIKMpvkTgSG0vzZktaQ9Mj6LgdML653JFOREhjFbwKiBk7BcOAc1KTsVDS7oAlmx1C31MyDXaGGfrlptUM8+HagSiGTcjWp3ZhTJJUyejjFkFlaHJZm3iZnkj3t7r8qgWXiMk0JF2bGI0b/MlclsFdMw0F07m+Wlbdij1hA98uBcwt8qhy8N8jLu3myHv4MSgA= X-MS-TrafficTypeDiagnostic: BY1PR03MB1419: X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1419; 31:hgBkyrjNL9580S9Qu3T14gav2hDNVihmgwESFRtU6twtKWl5yGBjHYIEJIsNzFg+mjtt5cU95InNf67FFjxHZT55spdJ7JUOGMKWr0RQflYy2eCFCdA3L5Hym0n4g8kjV5etz615jEaq/XGeivReDTPcdiiiNs37Mam2Qt+/NtDSuQKvBwhixk/eXFKj25CsBzOl8/iXbjMbEkWQFz89m/3eGD6dx/JRtP04eorqDiE=; 4:E0J+cNTH0lC+uCi08j/20Vopn/O+fJDmbajyoPngX2bFqv8af/h4d7CxBlrrV7sGFXCXjP+8DE9RG0N5reBx5R5VZMTIGksC0x4fnifJODSR5X77X4cAjoN/vtnjmGF1lp0QOMbV1h9/alpfd9EgOE9/JGHYmSCOJZz72FPbutGUkVU6PdILjoPa9UkK2ahC/Qnhm6RR6Z/u6wLGBvKxgGDpw8EOZJNOqjqrPr1/01/wgJjoJGdOBHxdvVa+zsoGfvprf36Sw/zpgoUfa6Zgsv7STxRAabYNexf+BSqAdskY6NcbpEsgatyr7iNlGR3f X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231053)(2400081)(944501161)(3002001)(6055026)(6096035)(20161123565025)(20161123556025)(20161123559100)(20161123563025)(201703131430075)(201703131448075)(201703131433075)(201703151042153)(20161123561025)(201708071742011); SRVR:BY1PR03MB1419; BCL:0; PCL:0; RULEID:(400006); SRVR:BY1PR03MB1419; X-Forefront-PRVS: 0563F2E8B7 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR03MB1419; 23:2eOzfVIgqig4X5Ppe0PbNTNntdVBBwxI7peCxERv+?= aSop94eFu+keHj8T9rYjpfpURtlKqsNkTYrxCDNTleHYn2EjR9XvkTEN3hordJto29HxWx4Dx/L+HuGowPDkLF3wfAM8hIiIk+Yz7EVgQ3xZzVtvsWBz3fZp9yfUWKMA+Ozo+ymEoAyHdVY85eJubXx0ENOA8AG8H491dA2z6GRF0DCB1UuMnFgHpr0pZx/oMeF9/BEt4uiHTZ8ZFZjHpAKARoIt02M0/5sgPxxgj0k3F++RpGnUXQ9wdTRMkUpA7kfx4/qTfhpCEzATjFS/RMXTnR7yyrLKQvTbC74C7m6Fhlzdmd2Guu0NwFVZrDuMPn880Y6iDcHsLXvuW//90Uu+8dFG3B888LzmKkh16HB8gZzRPUjwmyooK58w6q4Gs8xER5jr/zqW89zi2OmOI5R/VvD9VHNNfgoaV3m4WWsRbpsPo0mlc+5+f+pN2Iy4xQNu/RYLub36I1lF5pmmidtqOkTf/6XdU/pggvceM3inMBE2KLRtL8K/P+2VoCoPptGS07JMj/fV0qwzLslTf0o5n0TcyTYTmcskCY7GeDnfhbE2YSm7WAcyYwUbP4XfI2IsL4YcW3dsdHxhsqYcqwVPpSrSbgqX9mVr6Fdx8bw4POv5vqrm3p/w+sUR/zr8/pMmv0jyT3KdMOVdgL77Q2vf+hI5zHRihgnsq2mJZgvVYLogwI/qJV8ipmaK3krqLqpvB/D71JHvJQcSaPBDk/t7cL3eo9yMtqWLOEmEPAAGNOM++FwtFj+jhw+zrvOP46weJD+nXgDDEHhGfer8j9xJ0NRC+Gar57zoeXErlLh5pv+sXVgpaxDzQm8hCvAs7pgCHL0H2PTymq+m+yI3pzoWgs7PIpwukCqDQM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Nq+Frtwsz7w9Ghxaw/ouT2bRe1sOfuRJhMR0L9VyCP+JxIUJ24glM95KRhw/31Z5UNIG5+BdZyFb2zVF+5qc8fVp4gEhC9idugFD+Mx1EdAsj8ezJCoIxdAR32F+Sd8yAFIPl SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2018 11:03:19.2060 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 614cb298-23be-449e-b7d8-08d563e33e26 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR03MB1419 Subject: [dpdk-dev] [PATCH 3/5] crypto/dpaa2_sec: fix enum conversion for GCM 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" dpaa2_sec/dpaa2_sec_dpseci.c:1287:25: error: implicit conversion from enumeration type 'enum rte_crypto_aead_algorithm' to different enumeration type 'enum rte_crypto_cipher_algorithm' [-Werror,-Wenum-conversion] session->cipher_alg = RTE_CRYPTO_AEAD_AES_GCM; Fixes: 13273250eec5 ("crypto/dpaa2_sec: support AES-GCM and CTR") Cc: stable@dpdk.org Cc: akhil.goyal@nxp.com Signed-off-by: Hemant Agrawal --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 2 +- drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index a67d979..80ceaa2 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -1284,7 +1284,7 @@ dpaa2_sec_aead_init(struct rte_cryptodev *dev, case RTE_CRYPTO_AEAD_AES_GCM: aeaddata.algtype = OP_ALG_ALGSEL_AES; aeaddata.algmode = OP_ALG_AAI_GCM; - session->cipher_alg = RTE_CRYPTO_AEAD_AES_GCM; + session->aead_alg = RTE_CRYPTO_AEAD_AES_GCM; break; case RTE_CRYPTO_AEAD_AES_CCM: RTE_LOG(ERR, PMD, "Crypto: Unsupported AEAD alg %u\n", diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h b/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h index c76b082..e8ac95b 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h @@ -143,6 +143,7 @@ typedef struct dpaa2_sec_session_entry { uint8_t dir; /*!< Operation Direction */ enum rte_crypto_cipher_algorithm cipher_alg; /*!< Cipher Algorithm*/ enum rte_crypto_auth_algorithm auth_alg; /*!< Authentication Algorithm*/ + enum rte_crypto_aead_algorithm aead_alg; /*!< AEAD Algorithm*/ union { struct { uint8_t *data; /**< pointer to key data */