From patchwork Mon Apr 2 15:33:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132659 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp2710073ljb; Mon, 2 Apr 2018 08:35:23 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/FUmSC+WY3hpR2+vD0eRb+Hg79mZPfcHcd3AG4mm7hMfsNEdVsxdItYC4SYpRm9cyBsPVf X-Received: by 10.223.187.199 with SMTP id z7mr6722323wrg.260.1522683323272; Mon, 02 Apr 2018 08:35:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522683323; cv=none; d=google.com; s=arc-20160816; b=i5TGcTAeSty4R70+CUArauyCkxVykIHB6FgvtGE19wX/PAT8IdzQsbRjAHa+oSqffN AQ0WbHQuGDFyLoihk+zQgXTfGl2DaEpdxm7Gd60f765pYmuiWiLqHQUoumy17mGCJuvH CZ+mrmmKIzo5ZVskAqYg/bMJx+TkltzqGd1xWADOSw3/01032pjgvE16aGChKR0RJg/e MwmyvfGWbdXJwHUqRrUEuWtZCNoiZS/jdKFrdn9/HgiqJZKiW+//iJa/rcLrLe5kynQ7 MF9aS3PUr4D57XsBzcu63e8rEbUYd3iZilYfyV1Vj5qzfDW9jxhApeZ9h4lAYUPV5pWZ KChw== 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:dkim-signature:arc-authentication-results; bh=sp3hGPCbvkb/tG3M1BU4+GI1uItBMQjCWb3mJ07AyzY=; b=PJKjJqCMumDRGTNvYgyWXrTHOlWKtXuftAH3Sd/KzvaEJRd3UeEiqhGWjUJUjpkQCz +6P4ifFf/FH55m5t9GxWHqzK8wVtwqlA5MjMHI50LuppUB1+9SgMVX+9jX/MlU5XNTtP 1zTTKJdbm/Lh90GbTAflZN13WoQJj+NuL2+9ROqzmDvVb81j9HlPuuH4G/y5sBLkdBV7 mJgKVx2KPjNd80RXwsLMV8XMv4+XBfcBemIRixbnD/icpZRAw3hO9GEKuRVZSSYXvyBf 0K0BypVdbryfXh/crAW3IHclFN7BUCAeGrju8Crxj6c/4P2taTHEM/w39CeCLgKsU6Q0 uz8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=PX8xBo0V; 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 t67si406469wrc.381.2018.04.02.08.35.23; Mon, 02 Apr 2018 08:35:23 -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; dkim=fail header.i=@nxp.com header.s=selector1 header.b=PX8xBo0V; 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 6F99C1B040; Mon, 2 Apr 2018 17:35:21 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0051.outbound.protection.outlook.com [104.47.0.51]) by dpdk.org (Postfix) with ESMTP id 5C0171B03F for ; Mon, 2 Apr 2018 17:35:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=sp3hGPCbvkb/tG3M1BU4+GI1uItBMQjCWb3mJ07AyzY=; b=PX8xBo0VgRefwe3fFzeDFb9iVwlIQQSafaFvt/H0pt5G2L8alX7UI5W9s8RQ9P8eUOl+At1aiOeCkJp9JEIaK7p73qDjajTkNx4G5ZeSCUER19C6G+V3RZnMA+evPYvatirnINu6PD54HPmuN8UCkduYWEz9dEAM1bQAyfjYHME= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by DB4PR04MB0767.eurprd04.prod.outlook.com (2a01:111:e400:984d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.631.10; Mon, 2 Apr 2018 15:35:15 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, akhil.goyal@nxp.com, dpdk-up@NXP1.onmicrosoft.com Date: Mon, 2 Apr 2018 21:03:13 +0530 Message-Id: <1522683201-23963-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522654594-2757-1-git-send-email-hemant.agrawal@nxp.com> References: <1522654594-2757-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR01CA0090.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00::30) To DB4PR04MB0767.eurprd04.prod.outlook.com (2a01:111:e400:984d::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: b450a939-2aa1-46fc-1a94-08d598af5598 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DB4PR04MB0767; X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0767; 3:I6TJkRu7W35I42GVF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nrbAOe2HIcENi2pUSEetswTIEOFtslYBzbtjm4UZmRT3zbZA5GYB+TWPaNz+VhWDg/hM0sxHgfAPP2ql1yev1b6NckQH9ex+Z1ARTmTOyYiK1kthxX5diyGC4AGrRBpCgKVsGJNE25lhFDs6TnpmEwX/Bie34W3UiQ6WuyUhuaTEY7wxJR/XJuZNT58b1sTh1jCFhqn1RnmsbwoKUcDDk5uUa1TgCRIYg0v/3NXE+GRd3WTWjD+KJ4R5xKxNLi4xivC+8gAB1NL0iCGZDYkc74yT2alZOlArngehNMkTDD70FC9MEhNfSale+IMjmqKEX+kOFOnK; 4:9HJaYfKSN3WKq8hWWWcK65OfYXLVgihfguEzzPWn4uPjw6Ch/LyjKmpX6NfIRnKW0we1O4mp1zbOBTz/KWg+7s6gTF3RgYk0thxQG5/QAe3yZV/EyioFXrVhJZAe9JH0HVRhrLp+P1gQv05+wvz5YsRpBwNSlV1t8JBfNZ281ruILbopXNz1Jep+0GFUy25pXHGrNSSdvSG7j/YlG7SxvLMwSYLUP8KI9kDMiy6JTevvd+GOjuJBJB0FnGjaKCo2yokV+isY4fQKj5X/NdJeLIQesB3pixN3BEsu1XHQbmDW62AI4PprLhHtMEJgfZHY X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(3231221)(944501327)(52105095)(6055026)(6041310)(20161123564045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:DB4PR04MB0767; BCL:0; PCL:0; RULEID:; SRVR:DB4PR04MB0767; X-Forefront-PRVS: 0630013541 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39380400002)(39860400002)(346002)(366004)(396003)(199004)(189003)(16586007)(16526019)(86362001)(6486002)(50466002)(76176011)(186003)(48376002)(2906002)(6512007)(55236004)(47776003)(2351001)(5660300001)(1857600001)(73566003)(6506007)(386003)(97736004)(2361001)(52116002)(51416003)(305945005)(105586002)(486005)(7736002)(81166006)(5009440100003)(26005)(8936002)(3846002)(53936002)(36756003)(107886003)(476003)(6916009)(25786009)(316002)(4326008)(6116002)(66066001)(478600001)(956004)(8676002)(106356001)(50226002)(68736007)(11346002)(446003)(81156014)(2616005)(486005)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:DB4PR04MB0767; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB4PR04MB0767; 23:Fz2PFSawpNsGg0Y6h0xpJlYdtYD3Ibg39M77UYk/q?= dpYpKgdNtZpNK/r7Aib+wiR+1E7nLZGpo8QYZz+r2ZNX0VyXf7QxaBUUQnbyTe5bLngFmcokL7bKLVeqPRqJ7kAQ3MFsdONBmJu1p7ZfJxLe4cfxuekDKfGkhqLcgWB4HgnnoshMQlNRKEfsDzmVfjDvFOuLeC9Ol0D/fWaPVD2+w9qQbq8VR6JysP8sQH58iZXGnuOJQCQI67y+ycvqB57PF4pyftmd+E7+fL0L8uPMBBmqmN5dJfGqTtIfdhQSQQUpqovo+dnrzm1NYtZuSH6F8ej6o0Uug5ZToI71rNSukyuH2mNKJ1CGVpIUAnWsJmFhkyLbZFIhj+e2jaIo7CYgAmITSx/mDhlLVG/bmhZtp0PnTseqfEveSqhY2/Db5AP106tLbyBZmYjSCZvDFrPAGcRd07Lv20CHzII3VH9V2qbvgzVwK85XfxycA0mQ+yJXYtLAYyFdpaM6NOeEGMSVPBlnFgvzgGIbdszriCurk3mwoWnYC6ajZi3XEWhu+C/rNc6FYpnt7V9tdA6QJHoM8VGLnZ62IFTW1YIiD8s+evrf7oI1EjloaiOmY318IbKikhbTLAerzGc5G+Ff2hAA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3HiOiCIqUeaF20HJdfw3NADWstYbIkn639MvqggW2vEE7UlMiiunGAXBw6QBePebwPU8wpsHqXSSC1fABZk3IbirbHZbZJldptJjOT4mWfyeht0jITyI1qZxHh9OwY6n5TbdvFxx9k6C0fCC6EJh7BaKd5wO7N68gJbuB/OxgKZZLFip6+EImlKw+cnrocuI4k6JQTYpZpZoSvy4yN+bVHVmd6AccIrn73PIjotzKRarrRgXro5Ekjacp0YaBx9NoiUvgqB9bx06aMuaaJY1LmnDRy+atMz8z1lHEo08a/74JgkhDMxnu2Vs8m7MMIVuFtGg/gFcqGSmn6qeARGViUooNQA9nJNUK0D0UDyALQ==; 5:F8LmZeD7H4PG7q1Qq+x7qf7IWZnaDuvBH0NZ0zJ8ec7vJa2BrHOn3rn1sqYAY9ll/GXdAlzsYbwos8ul/lGXpDGTmL3+ecNQFw2TKILDGRzPY0l1dgoSibYUMqB+ChuZUMgmiKDSKRWHwy8yefvIceNp+P6wt9qkds/TGGhJuqk=; 24:RBVLuzjxMg3ZEIEp7bBcuw4475tWjSSiZDUBFDpXxO1rNT9sATfFj4Tu9R+7bMeIp6Mj7x/AgIXHtBCjTOssaME7N53btvHaRMt+5gGdM/g= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0767; 7:cTNmcKpO5vFSM4tcLslQQa7O+8dgITaVBGx7Y118IIGq7nLfqvSCiG4jc7pmlxkWL29qQ9CsBBhJgHZa8AVmegN6GbGNPwq8A5f3YZpxypUF+qcbctvk3kyk9QTPwJG5X+YzqYllTVnGvuScpHA4sDu07nqal4XY+EPufXSs00xRJ8ZEQeWZsDGcpm6BhdBWIt8SkAH3YViledhCND3KVqUk5aDuoOOLzosq1J8IsLinuUcIv1xo3InKKZJ2jVfE X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 15:35:15.4273 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b450a939-2aa1-46fc-1a94-08d598af5598 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR04MB0767 Subject: [dpdk-dev] [PATCH] sec 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" Signed-off-by: Hemant Agrawal --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) -- 2.7.4 diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index 50a301d..b31f64c 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -117,7 +117,7 @@ build_authenc_gcm_sg_fd(dpaa2_sec_session *sess, return -1; } memset(fle, 0, FLE_SG_MEM_SIZE); - DPAA2_SET_FLE_ADDR(fle, op); + DPAA2_SET_FLE_ADDR(fle, (size_t)op); DPAA2_FLE_SAVE_CTXT(fle, (size_t)priv); op_fle = fle + 1; @@ -268,7 +268,7 @@ build_authenc_gcm_fd(dpaa2_sec_session *sess, return -1; } memset(fle, 0, FLE_POOL_BUF_SIZE); - DPAA2_SET_FLE_ADDR(fle, op); + DPAA2_SET_FLE_ADDR(fle, (size_t)op); DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv); fle = fle + 1; sge = fle + 2; @@ -413,7 +413,7 @@ build_authenc_sg_fd(dpaa2_sec_session *sess, return -1; } memset(fle, 0, FLE_SG_MEM_SIZE); - DPAA2_SET_FLE_ADDR(fle, op); + DPAA2_SET_FLE_ADDR(fle, (size_t)op); DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv); op_fle = fle + 1; @@ -562,7 +562,7 @@ build_authenc_fd(dpaa2_sec_session *sess, return -1; } memset(fle, 0, FLE_POOL_BUF_SIZE); - DPAA2_SET_FLE_ADDR(fle, op); + DPAA2_SET_FLE_ADDR(fle, (size_t)op); DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv); fle = fle + 1; sge = fle + 2; @@ -691,7 +691,7 @@ static inline int build_auth_sg_fd( } memset(fle, 0, FLE_SG_MEM_SIZE); /* first FLE entry used to store mbuf and session ctxt */ - DPAA2_SET_FLE_ADDR(fle, op); + DPAA2_SET_FLE_ADDR(fle, (size_t)op); DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv); op_fle = fle + 1; ip_fle = fle + 2; @@ -772,7 +772,7 @@ build_auth_fd(dpaa2_sec_session *sess, struct rte_crypto_op *op, * to get the MBUF Addr from the previous FLE. * We can have a better approach to use the inline Mbuf */ - DPAA2_SET_FLE_ADDR(fle, op); + DPAA2_SET_FLE_ADDR(fle, (size_t)op); DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv); fle = fle + 1; @@ -864,7 +864,7 @@ build_cipher_sg_fd(dpaa2_sec_session *sess, struct rte_crypto_op *op, } memset(fle, 0, FLE_SG_MEM_SIZE); /* first FLE entry used to store mbuf and session ctxt */ - DPAA2_SET_FLE_ADDR(fle, op); + DPAA2_SET_FLE_ADDR(fle, (size_t)op); DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv); op_fle = fle + 1; @@ -986,7 +986,7 @@ build_cipher_fd(dpaa2_sec_session *sess, struct rte_crypto_op *op, * to get the MBUF Addr from the previous FLE. * We can have a better approach to use the inline Mbuf */ - DPAA2_SET_FLE_ADDR(fle, op); + DPAA2_SET_FLE_ADDR(fle, (size_t)op); DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv); fle = fle + 1; sge = fle + 2;