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; From patchwork Mon Apr 2 15:33:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132661 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp2710398ljb; Mon, 2 Apr 2018 08:35:44 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/bxjBgIkHRbasoDYNHnCGY4aF/WAu1czZvU2aDrSM36nGAU3Mhu+VFdZU3bLtD3bEwi0zP X-Received: by 10.28.126.69 with SMTP id z66mr1216251wmc.56.1522683344668; Mon, 02 Apr 2018 08:35:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522683344; cv=none; d=google.com; s=arc-20160816; b=pFSvCFOgM1iR1+PdKMFPJql/DZoQwm4Q/e9Mq5Hx/lkuToUXBLyxu/IQU5mTbXtcDC k1OVTKnPpbfetw3tf2MCIQNnogFvtr2VIuiz8TxhYXSUBTdgsx6mZDmvRJiAOeNCgibU vZ2mfMl6p9mEHXLLle9wfls4vcc/M5OBZRjjJpKgyJqEPzNHWOUZvdy1Nw+KqOG4Lxmz x1hv7WGZonOnwn8BwYOvlS1KAOdAs/pQr10U3Ff8pmIkt8tmKe1OAt/YNpT/p52CJejG CMJbccklw27lRJPQkmTco+yIqRyjfx+sPBjkYmEiYYkn4HDJO681I6Bm1DDbldwiJGFI er2g== 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=mYGAajbpG9ajHjtwBbdHR8y119LcolMmSZzhhSSzAyE=; b=sTWHvu5lw1UpElVCrKp1sqGFbcRD++zitC5rl4S1yKbIedcQ+KceQD+d6QR18MtPS2 hbIJNjyywUsKonHnZT62C29OctaoJVG/ZvaVL/ffDLIMqxM35Mp0B0jPJ4g2H/KUUXUB akEoyrrfEq/nsr2QoyyRYf5TIej1q8oMZ9V4bmLZxcQsNVJgBLUUrnlkmsWR/M9yTm+V ZDo4QXXF6fPwN1plbxnhirnSQc0LcBjnqDcYkZQBnHigBGPLRZi1XreayJANoDM4blwu 42w1+qXqnGHpDiJTrMn+HifNwOnJ8Ce97ihPyYMI1dcUu4bfT5/vPwi1Q5c0jyFfd63Z QvcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=HzOxcwWC; 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 r12si511140wmc.134.2018.04.02.08.35.44; Mon, 02 Apr 2018 08:35:44 -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=HzOxcwWC; 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 4829D1B1AB; Mon, 2 Apr 2018 17:35:25 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0088.outbound.protection.outlook.com [104.47.0.88]) by dpdk.org (Postfix) with ESMTP id 736F31B04C for ; Mon, 2 Apr 2018 17:35:21 +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=mYGAajbpG9ajHjtwBbdHR8y119LcolMmSZzhhSSzAyE=; b=HzOxcwWCc62Z0XNZSdCzutGU07kl8mI5tTRlHBgNMNuXUAdB0RX6FnI3hqGkvjmtQL3+6QQF0vEcnkcm7eeuwiogh0y72OwWTp1wBOvo53HaIkayMITkDWfs3R1q+inXE3jQbEtLeN7WoQaN7jQtggm0/7kbDTeR78Wo0/pjWYs= 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:18 +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:15 +0530 Message-Id: <1522683201-23963-3-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522683201-23963-1-git-send-email-hemant.agrawal@nxp.com> References: <1522654594-2757-1-git-send-email-hemant.agrawal@nxp.com> <1522683201-23963-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: 1e15f5e9-61c4-4a12-1be4-08d598af577c 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:bglk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gX2LXtz3cnSWuR82wzzzVWz9NkIA3h4dUu7yYFQR3w/b5YZRsegE7Cjc4pwc4+BGUeTQOhOEDNsMck6dwaY6CRM9fRVOFRVE4/YA5ZHKlgJ3EzgUBHdh/2901HqrJj70Cdi5SWDeSoJBOO52suVWdw4edtYgCIq8SE4hgSBlHGJr7S0y2ldINvqTQnYOVL/9u/5nc3/Sw4YZhpFi9Jyw1iBXsKk/hWmtxM+CnO3+Bt0hN3EEt4lD/kAIfy9yVWafCBB7k3RPtpATSzEINVmdooPOSoPrMf9q1cpTqckbCi6AwiadHqbN6U7N8eU8e+IJf1Tjsd1/MjjEvh4b6fu9rnq; 4:cWXe0qyvjgBOkG26Qv5NqUaRJBw7QLZ4BOz8oR8fww9+pQ0RiyLNs7+8PRu8MpjNzgUp6CFvKPHEf4dIZsiJpl0Qn76MhkRQImaDtVmTVmhUMOveJcs9XnpG0DvI5wSmacwX8ZkKsEOVWp/ZOJEhJvCoyihyNe0W2VQwY0yflFEW/9qNJeCdKgc05YHCeZxxgYX3GMZIxuD/E29i74cSMlj+y0Okx7krERmV32Gpv9HlKXVdr5N8P1T0ilPWugaj8lI7HoD7G1hd9UXJTKH9dNQqHYNFf/O7O3AaF4/8TGysGucMOXdsRinr1PCbkZISgG1PCsZNmLb92gvoFZEBjT6mHmnxMKoLc7qhGU5yySk= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); 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)(73566003)(6506007)(386003)(97736004)(2361001)(52116002)(51416003)(305945005)(105586002)(486005)(7736002)(81166006)(5009440100003)(26005)(8936002)(3846002)(53936002)(36756003)(107886003)(476003)(6666003)(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:yksH3IsQQPNaCjqaF8jpKR7Xrv25E5Y9cdg7hYYRJ?= 6ezlXspjDm+bMVUyscST4oTXrGdfsH5QSrj6SvcUuuj4k9j3b33UT5WDCmMye1ETUYQ3MoBUV+xQs/TLRZ78NTaX7UGRns4MXjfj+iDlmK619nADgoqmzYu94iOLc9TBbaO1KNBtxd7tnQD60wgTaM9vRiMHGPnqxnyDI2VKrqZH9ryqYjvoc0SvUcPGym3/6+c2mhTMVEPV0f1QbgJYmJwLtZokUbv5R0Echa1uHX8BJV2NUFr1UsnsNOkr1T+gDuKQodKtoI7HQvvJ7s4K1DnygsovXKzSAIyCF9FsjaiufOZ777CjgjmCFRs+PPve/68DtXf+OrEajDNC5RA0V682nhJruwxddCaMblA+VjWnKpLLp/x/r8T3lCp7KXhmQr1HQQQdhzhpkn0DGvMC38i7hCTVo0Z0xuNaNpShP/jSW5A1pnfm2HNQJxxuepppgjbAdJ/WHhZxg5iumvhSyHt+VRZLAEc0UiH1+gaWXMfp0eEmE6TnQzUHTYDR1ZBriLSm9kvAktViFMrj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POnxj3Z4otfUQluyxefA//OIqQFDXDI+cHwR8YBNB9/JCW5tYzoHDGg7v1tEbts0o07ghThp5DYe5T2QB9gUt4qD80JPhI8RQDYkx/0ygllMfcxUrKg8ieHMDFN5SH/zVtepjKs++s5KREWQhpQzNu5xTFNtwqxBXgCuNkzHFreFnrrHhuXMFiaj89BNuTDCjZwLQfbhbOvZnVUI1FGhQL8sPABqziiYqGj25OkHQVijUNf5ht4VFNoTMjNs9z+gzf2x733JDXPzlFosntHSE7gqR0zSVg5nav0PiaBpU1VXcRFN7PhV++RlCT3lNs/R46WIkEls9/DHNWkrpqh5vbJHbemPLgp4m27ztcMDZ6gl7jkMN2af1IaDO2X3hkSVf0dwa3OMg8MpIByJS21HKE9YME+FQ+ukLJV/qUAs/1AoRPMArQ==; 5:NcJXLiZhZxx+yLnv/NxZnsFahVhb76reTQQwGhVpxvJdPZbIV7ob7/KG+T1LT4VZInrRIBeTh0DMsUfxmuJfnWhPiEC1Z4rQXZP+ldbn274rs6XveRkrXcYYOniuljsJRuAyoUOrAws9KhP9zQlBmerM0jaaKqpgFClnm5w8jEk=; 24:vQ2ld3ZY1uCUpPko8WaBWP6GLnw7vkAy0cIy+KriXnAQAqU/gNaHR362a1yzpLI6fnG06j9pvr//vsFQOI+ozO1hRfwYijvgHa9eiJztm/s= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0767; 7:6OCjsOhwTYRTYc/SJSOXCqNQn1fk+mRGAUJfDxPTIOKZLbPFegCGWH8EOvKKnID/OKeDGA9BArS+5c5fZ3W6sZcUC4bQ1qIgo0WwNKkLlLgahs4vRUUysBvJzLO1/DIeDsVdhS5r2p53ZxkgTYeMMoDt7nEbikhDQTwtAnS/cEyxvYi3v9xvunTmjffcifinYxRY3ye1qEBNx6/sMq/pPCwAJYegxr7IIB0b+5NpHRwO8N1rFk5PaKa++m0c5bBb X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 15:35:18.5992 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1e15f5e9-61c4-4a12-1be4-08d598af577c 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 v3 2/8] app/crypto-perf: fix excess crypto device error 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" If number of available devices are more than logical core, no need to through an error. Just use the less number of devices. Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal Acked-by: Pablo de Lara --- app/test-crypto-perf/main.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) -- 2.7.4 diff --git a/app/test-crypto-perf/main.c b/app/test-crypto-perf/main.c index 019d835..dd666f4 100644 --- a/app/test-crypto-perf/main.c +++ b/app/test-crypto-perf/main.c @@ -80,12 +80,9 @@ cperf_initialize_cryptodev(struct cperf_options *opts, uint8_t *enabled_cdevs, nb_lcores = rte_lcore_count() - 1; - if (enabled_cdev_count > nb_lcores) { - printf("Number of capable crypto devices (%d) " - "has to be less or equal to number of slave " - "cores (%d)\n", enabled_cdev_count, nb_lcores); - return -EINVAL; - } + /* Use less number of devices, if more area available than cores.*/ + if (enabled_cdev_count > nb_lcores) + enabled_cdev_count = nb_lcores; /* Create a mempool shared by all the devices */ uint32_t max_sess_size = 0, sess_size; From patchwork Mon Apr 2 15:33:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132662 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp2710572ljb; Mon, 2 Apr 2018 08:35:55 -0700 (PDT) X-Google-Smtp-Source: AIpwx49j8kudWZ8NNjB8p7JKrA1WmuMAd2L1r0cnWsk77m6kYCtofZgKQVnjlD2z8I05qqYKawcN X-Received: by 10.28.153.12 with SMTP id b12mr1361749wme.104.1522683355307; Mon, 02 Apr 2018 08:35:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522683355; cv=none; d=google.com; s=arc-20160816; b=Q5HsLL88GvMebEmBgUs0C6tipGvhB2C5tYhpqeXILtriNfuQQraEerttm5RDCzUIMc Uf7ULFMe5+dn/XG6XqvJoc7Re+3Ypc6uha+EbUwApzezjzQUB+rtWJRjiTdpvHQlA1UJ 9fv4DrnkiMmGbX6Nf4Vmvzk7x4b065hzICwP7w0W0WSxeBS2HXCHQbpmc1bh6bkNBLjf 532TZWBnFhcsY3hgOl/oQOPQ5bHNN35mToy5JghGj543HIzdalLkpZC+ZEx9Okl0KOH3 XzPAyFGOZp08nspCLh39+AGL56kirjE51i/oC4/xC2UTUt+jHr9Ts9T3sBSG4C+UoFFG QQOg== 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=QkPLQQm9C8E2+VWcKX1gXKCjisF7juWe9nEzkgDdB+k=; b=h5SfJEe5neXywZjbmIg6dVMxSgabI4NjJQbFANnHBNioRzOtgiRhiYdTx6I7S+7EJa AukLdJzhsRyhAqX5LSJDa8W1uWiDc33aiFiuPAJsqfzgygyiaQt0Bg1bfWqvT/uAMP3y BgU288qEjfljhRoHu144YRiTdAH5p2Dwqx90818m6iSJaSk0yuzCx2BJGpqJewU1S83c hftISCrqIt41AZ4XQ00QWx4Iei+SejIe1M/M9g94c5tFt7ErqrXUyUgEdPymN4Ai2Rej glhiOhqAylf0e3Ndetn/oi5lKEoOK/dx4VKyWQfy0COAmzQw7DbiMtW+mPrGYMELVwL/ jGng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=AaW0y7kW; 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 e124si534811wme.170.2018.04.02.08.35.54; Mon, 02 Apr 2018 08:35:55 -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=AaW0y7kW; 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 C6BBE1B1BE; Mon, 2 Apr 2018 17:35:26 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0040.outbound.protection.outlook.com [104.47.1.40]) by dpdk.org (Postfix) with ESMTP id 31DE81B167 for ; Mon, 2 Apr 2018 17:35:23 +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=QkPLQQm9C8E2+VWcKX1gXKCjisF7juWe9nEzkgDdB+k=; b=AaW0y7kWUFf+Ktj1FxzZBbBmJf35/QmzwMrugud4A20cH2H5CUxebaMgjKTR3mbElyWe054jNO1idUZ6oNPaoQiZOGxGseI4qEPVxiOTojTar02KXBmtRe04IqJQfIp2QQjKEV5f1qTV7IDjHxmsWS3eEBRJGAXPEwndlM9ZRqc= 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:20 +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:16 +0530 Message-Id: <1522683201-23963-4-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522683201-23963-1-git-send-email-hemant.agrawal@nxp.com> References: <1522654594-2757-1-git-send-email-hemant.agrawal@nxp.com> <1522683201-23963-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: 0d26a14d-f3dd-40e1-d733-08d598af5878 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:ekraC3wXruYnZC4x2N5hGWrZ1GD2TEWIsGAhzd4x3R6fzrrCcMsVbdTdNLe4Qx81bVAdF0ylUxzc+YZrNwtXJpq+y/xaXLWvRRtLmXcdsiwigOV4o8zCw2Zw58jZm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GaOz9JmtysV7dXPXE4L9i7MJjBjU/f1seNdblw9nFruUQxO2hnwJBQRW83TVSOji9irCi8pngKcZ6500ajqZ5NTlqEUaJd3A/1n420lr+AdgV5VqHu8z/tcnm/ReaVpH9IEgmkNx4tuwKNCjKp2qzCQ6+8Jj4Rq4URieLDFF1MIttPGwYfpfAFn4dCkMWvRWUc3nkvDgaFBcxsFk; 4:azNQm2xfqG4O3VjPC5YJs27FCmJw3EaDqvCaXPxCH2g6hZKx48Glcwp46+y9GiVzCXKH16/C0auAxMF0vsmvOxW9HO57G9/BlRKmQGwOqbvKlGNEHH0BGCNy2isXYU4kFqmDxdGNTjF3cFUr5OusiU2HE82PGe/5wdELGg9iorJEMlk2X+utqASMSsKiaeTzkMI9oFHYeUVSsmg/17qg/19iRmBP2HjlKk27TDzfr+wLw/JIXaWi0HyRWI1aqlWg/XSKGUwBJ6NIkR+Ag9usw5DoLyMzwKsFD3MA31JKM4axcLmH9YHOb75rLvtDTlnADXlTySPQHUJwTlnF79rESk3gGXY3tSvmfbADYNa915Q= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); 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)(575784001)(86362001)(6486002)(50466002)(76176011)(186003)(48376002)(2906002)(6512007)(55236004)(47776003)(2351001)(5660300001)(73566003)(6506007)(386003)(97736004)(2361001)(52116002)(51416003)(305945005)(105586002)(486005)(7736002)(81166006)(5009440100003)(26005)(8936002)(3846002)(53936002)(36756003)(107886003)(476003)(6666003)(59450400001)(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:mqPNBwJXvjVfU4XW+e7ckeeuwYM9KIL2Zu60ELtVq?= WN6Hnmk8OBaZiTcitEP8DDSqGy0azOVOIZ5tMzE0o26nKdzvjgMbVLK21+VGbalHGYpc9Fwu2/QWJ9kZTIBOEpXYDPxNARK7MfQFYDUw7E2AkqAppBuaIdle6BcMiLHqGbwcyRR24z27d9p9ExQgLY8coEZPqK7+6hcc64u2vO73tZ/smx7xWHJlxVSK0ixq+6SWSlC/4rk7Lzr3S77HFuGQ4G8yUSbLaswDR8R520Ihn4G+GsZM1XK3XDGW2sNrLjD3l8aeRkI/1hVIAw8HUgOfYZxDU0dh1+IDF7O+MX0/i+8JUZVcK+udqbIAi2PH++dQEsQP9+p7jIzEiP1l5rst8hTHwEXAWHCwEmy5usQIAK5jhOl5cVNRmJkvtH7/8YRULvgfddmEWh3mRZq0LrXY+zY8snKRYFeB1InoSmnGm7o2MqXB/XK3JnPcbfWQ+Vwlwe0CmecHbYgxX7140XaTi5gpS18jXqZFjtobm4CYuoT5kJb8TKKZPurSGWzkA6kkNhlnQSfzYFSYpadvKP4EiZQJOR+DORn/oVGfmn+jtfOXxYXa+/pVqAB4i2cWXO1lfil+o+0q0IpHi+3hz5irj0EBt78WHSVd7HcxiYPDh7i6/mSPUEVAmrfzC3GtJ+8kyCyeyzmsudIjjikJI8Hn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z4CsCGa+jVbHwJr3RtsdZyrK0CoxiYYVourBNYURKjiINPvgHokeGkKGdy6ITlEHzr35VbqI+M/VRBAO4MuiPALL8qh7JOsr8v0KyCy7VVgGo1mZh3H4OEy5FN7MVyowgtQTETmPZglYJRyjHZiFwtNwtpvnFM+ngM9qjhezBAA2q/YvE81z5hu+51UbNxFSAkME3yySkoqvmsGsXdkN4itKLkHSHWuxXsXbEJ/C+Y+1yLifOHyd3+DlvK4ryouzgkiTBXKTMFU10DFmAw2aSztl43jsPhGdfiqCJfeeIIA/wA6aakeRVRxAL++UyN9sFT2bNYcSnRXwwxIPugRzdpW5x7ooC3icp/ofVQ==; 5:LzXO0yG14yn/tBtX1iOVsxItjWyUW7mpr8lDPjxnhnaDp/rpX85a6fUQpShZSpdtShvLkG8EXFEjnbPmxQluXQ+fv2KmYIuhDP50gECUKuSWYXvYtsmsUAvTm6wuT1qpp1jkgnWdi0gxv6cGsq2+tCV+mrvn3eWuLKsEiaTCxC0=; 24:Q0K+XNX4tzA9Ez03vwIfn3LLLGDNggV+9INBhTV2ZlWIneOkSSrvqXgAmHVbdbEo5d6gdkKfrQuYIeWklh47N8ixr0qpfObAEIP0UcXktPg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0767; 7:kEcxZ3ijoGmfJPM1IwrUgV0/RN/oln7YhnilydeuIuOcjtsE33kPTKmsqgH2ZYmxpyA/wtzECmtjPFbKIJ+4PLLwWwiAQVXQ5m2tzG0vBOXOa1yDMuVC3kF96trrFiApuocBU5Gh9knUsTyf12ORzsvb+Ic7CVxxccJMCZ6u0D9rz4QDyfJRaXUeuZHP2DVAZGvvi8Uyp2eC8mnXZWowmTkxBwGfkLXbv1NHFo7OP70yxeIG3ZNDcde0gcda2u/9 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 15:35:20.2556 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0d26a14d-f3dd-40e1-d733-08d598af5878 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 v3 3/8] app/crypto-perf: enable it for non default mempool 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" The current code usages the default mempool ops while creating the mempool for crypto usages. Adding the support for best_mempool_ops to enable it for devices using non default mempools. Signed-off-by: Ashish Jain Signed-off-by: Hemant Agrawal Acked-by: Pablo de Lara --- app/test-crypto-perf/Makefile | 1 + app/test-crypto-perf/cperf_test_common.c | 6 +++++- app/test-crypto-perf/meson.build | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/app/test-crypto-perf/Makefile b/app/test-crypto-perf/Makefile index 3935aec..28a0cd0 100644 --- a/app/test-crypto-perf/Makefile +++ b/app/test-crypto-perf/Makefile @@ -7,6 +7,7 @@ include $(RTE_SDK)/mk/rte.vars.mk APP = dpdk-test-crypto-perf CFLAGS += $(WERROR_FLAGS) +CFLAGS += -DALLOW_EXPERIMENTAL_API # all source are stored in SRCS-y SRCS-y := main.c diff --git a/app/test-crypto-perf/cperf_test_common.c b/app/test-crypto-perf/cperf_test_common.c index 21cb1c2..fa1dc49 100644 --- a/app/test-crypto-perf/cperf_test_common.c +++ b/app/test-crypto-perf/cperf_test_common.c @@ -3,6 +3,7 @@ */ #include +#include #include "cperf_test_common.h" @@ -124,6 +125,7 @@ cperf_alloc_common_memory(const struct cperf_options *options, uint32_t *dst_buf_offset, struct rte_mempool **pool) { + const char *mp_ops_name; char pool_name[32] = ""; int ret; @@ -193,8 +195,10 @@ cperf_alloc_common_memory(const struct cperf_options *options, return -1; } + mp_ops_name = rte_mbuf_best_mempool_ops(); + ret = rte_mempool_set_ops_byname(*pool, - RTE_MBUF_DEFAULT_MEMPOOL_OPS, NULL); + mp_ops_name, NULL); if (ret != 0) { RTE_LOG(ERR, USER1, "Error setting mempool handler for device %u\n", diff --git a/app/test-crypto-perf/meson.build b/app/test-crypto-perf/meson.build index 6eb22a5..eacd7a0 100644 --- a/app/test-crypto-perf/meson.build +++ b/app/test-crypto-perf/meson.build @@ -1,6 +1,7 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Intel Corporation +allow_experimental_apis = true sources = files('cperf_ops.c', 'cperf_options_parsing.c', 'cperf_test_common.c', From patchwork Mon Apr 2 15:33:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132663 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp2710799ljb; Mon, 2 Apr 2018 08:36:08 -0700 (PDT) X-Google-Smtp-Source: AIpwx49BvCH+BbTnJ0W3SHhA6Lf8tvqjt4AnMSLcvX74mh/4ccYMlTMrmtDiQ4qe0CeC58TLoSE6 X-Received: by 10.223.138.214 with SMTP id z22mr6857453wrz.39.1522683368758; Mon, 02 Apr 2018 08:36:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522683368; cv=none; d=google.com; s=arc-20160816; b=rHcVBk+VZ4QrEenWXggSTErFLpNah2txcpBlbQCnG6Zg3VEVHqGxNGqHD9hXLdg0yn tO9CteYkv+JJe/5zALk2xuhpqraWLCwssB5oBMsBEsloHlPq+crwZnILF3ANTCASWrr+ xeqiBBFYoTCvLdf4XFWdwu1mqmSJKD/gQnuh6byRyasm/vCVZgC/3/75oAdg1bT2XCfT uuHpcyRxVtl6iCOPBjqG9BJw2wKeKT7RSVkQtAqrAX0UvfE41aG9fJ4vhJ667DFbon5E +ywecPdAC74KlXTN+jivOvZ/QAvhtzmSESZHdXg+h2d5kMENXftInzkM5f0K+/qihYlA i9gw== 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=aOoPlx5l1VqJuh6+ThOsE7za3tDYp/5YGbPruxHzpBU=; b=A1x1XOUr6vGU/aOLRBnsPXRQym/KSsKVseJDuv2kjL0qbRyVqOT8jHOstglol/vvGP yXg1T72XueiDpo3lrd5hMy+SAkQPun9qVv0Syctsv1Skhvsx7V8LgiC3dSowt6D166hk u7a1NvsKLhhXIXuNuK1Qbi5m2QRu5Exe0I07HveOLnkgMTRKhln9Jeit6Lw9oyJxk0V/ c6CuU6fmEuA0vx/tl7ZUkXHrBfa/0j5iiHb4/a275ZUc8urjEAjTy0M3pNIpZB391Rde mOiirsiYtDvJKegC9+Ssb5n50XPrFf0ZNLjU6nEiVGaCcCu6IfaKldkWLEDAV1k4W22F zGDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=Gdy4WWb5; 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 u16si393751wrf.405.2018.04.02.08.36.08; Mon, 02 Apr 2018 08:36:08 -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=Gdy4WWb5; 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 D46EF2B82; Mon, 2 Apr 2018 17:35:29 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0075.outbound.protection.outlook.com [104.47.1.75]) by dpdk.org (Postfix) with ESMTP id D713F1B171 for ; Mon, 2 Apr 2018 17:35:24 +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=aOoPlx5l1VqJuh6+ThOsE7za3tDYp/5YGbPruxHzpBU=; b=Gdy4WWb5odoJ5LCM23tWga5akdGagRpVbvjGvX4e1Y1TrwGDdBV2bwMvlfr0C4ORqFlDQdrHwQsSg96JWUnFOp1gp58fKinQZkEkKF4arZ2W0F6aeNzHArHst4hGD48UV9u1BhJqX+hbS7WvP3OXodBWGIl3riPb9+LoRMkM+Lk= 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:21 +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:17 +0530 Message-Id: <1522683201-23963-5-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522683201-23963-1-git-send-email-hemant.agrawal@nxp.com> References: <1522654594-2757-1-git-send-email-hemant.agrawal@nxp.com> <1522683201-23963-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: ee330a09-d29b-4347-6b73-08d598af596e 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:bT7RQynshWFbg2NHPNjcJ99RgeNBmoaUaWtdcLfWPWQ/crj8ao46DNoMjsFDIQU+VnHY3u8GV2niQdAr2+VcnFTlxHTMOmeYUGHRi2KmzVtiObCxXOrO5qTfPdWYwuyxHPwxfp9lqNEE5dOGfa9QaOpKNduojqJ2uZrSLEHRCg7+PezAY5LD33UPlWgvKQZwv+Tx4GJnJjtJxGWxH8nXkmps6GcnqK2F7qCK/0KqTuX3m9DFGWcFLbpl6RgLQC1s; 25:duk64uCA9hz+5vAyvN5seH5R8VMLqKksCdxAZBr8C47IMHm7IVGDzOvzb0T+5bbWDSLA4sKBvyNPpF5TNjy5UcF/gv68ncK3T6MTtE3gute7Ii8PEvid58PcLdmFPOVG9By+g8q/yicqlW1q2kImWy6cMXgBlhU5/wVE4CZsjNadDrEoZclYqnZeHvDTWqRou/KXHC6g2aP3Bh10/yfStKJecAfBwtfVCzamEgRHOxUe0vG/WeICM1gMJ7wPazXyfXtkcR0rQcCKtCdg+34wRTPI8kINuiJWY7NmhcTZe05tpJMkBvAOupmS63moa/hOFY9qKHXS1Wq5q4XYa71Ssw==; 31:1gWZV/x7u/NkNaG3XHwIYgWPGo5Nl5w75Gq3R0Z2E0+hx5ZwAYBb4Xv0+MslfFfttgtF0SJQsPoKY/QI/ZEYgpl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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)(73566003)(6506007)(386003)(97736004)(2361001)(52116002)(51416003)(305945005)(105586002)(486005)(7736002)(81166006)(5009440100003)(26005)(8936002)(3846002)(53936002)(36756003)(107886003)(476003)(6666003)(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:FYOTmhLH3OLSJG+8CstrHdzT9DIQZlYCfDkkSWsaq?= dt3OtvTLkFSSRlnoozEe7/RSEh2ziBfd75rLy+zz3NsuL/4rBL7tAqTRNIY7jANDylJ7GIKzk2aoRXTP4GBtsWeV8ixOOTOymM3TyqRenxHLhDWvYxr593a1NLtBsvj92CwiZiq8v4xoo6qDMwm1SCZ7iIlkq/RLqMho3v0pAk838Q0G9hNfTF6/T3sofOpbqbMNbqo+U6D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iagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0767; 7:W4EIh9pwHyBdcEatyhjE89BgRnouErVcDlSIQFAMchVVk/4s4uM2k/BokFTTEWGNjexnVJTyNK8EPUR6uuolz1LXHIO+p+XHbOchrJmgIbep9FGxtFRITSkCdBqyMNyvtLC+T9ZQ1arUGnlXzTdviiep0LbcZffBtG7d1CUYD2ckeF5NMgMjTgoEfUABUb7eALGmENmuNnQOgDMnaYL/lrS/ZZhYQCH2qCMCF3Hepu/sztg0XA0uRfKUosDBOkCL X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 15:35:21.8650 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ee330a09-d29b-4347-6b73-08d598af596e 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 v3 4/8] crypto/dpaa_sec: add macro for device name 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: Ashish Jain Fixes: c3e85bdcc6e6 ("crypto/dpaa_sec: add crypto driver for NXP DPAA platform") Cc: stable@dpdk.org Signed-off-by: Ashish Jain --- drivers/crypto/dpaa_sec/dpaa_sec.h | 3 +++ 1 file changed, 3 insertions(+) -- 2.7.4 diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.h b/drivers/crypto/dpaa_sec/dpaa_sec.h index f45b36c..b8f7bd2 100644 --- a/drivers/crypto/dpaa_sec/dpaa_sec.h +++ b/drivers/crypto/dpaa_sec/dpaa_sec.h @@ -7,6 +7,9 @@ #ifndef _DPAA_SEC_H_ #define _DPAA_SEC_H_ +#define CRYPTODEV_NAME_DPAA_SEC_PMD crypto_dpaa_sec +/**< NXP DPAA - SEC PMD device name */ + #define NUM_POOL_CHANNELS 4 #define DPAA_SEC_BURST 7 #define DPAA_SEC_ALG_UNSUPPORT (-1) From patchwork Mon Apr 2 15:33:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132664 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp2710970ljb; Mon, 2 Apr 2018 08:36:21 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/KfaoM38GNAV73xtB9Qhi8+E4TfAW0urg2IcL8Z2mj3IkFyQuAjG9jI/pt9h1vzgytdnzJ X-Received: by 10.223.179.13 with SMTP id j13mr7281639wrd.165.1522683380980; Mon, 02 Apr 2018 08:36:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522683380; cv=none; d=google.com; s=arc-20160816; b=yymxRIeAZLKR/pLWDx3BJX4h0HGECoQWf0wOw+yW04oU34qlCaRwA6rgG7kfdrGagU aRMpY5MDS6OecxZbRCSubBqGzpF8E957E3uusAkAoB2YC5h0BeKeHStN38FriLKDuS// jiRB0XmopyA31wBXRCfrGWERPjrNZMdYr0VEvXIyf8hUqlzRP9z/XUTngQ2RVMdnSQN0 Ksw7+Q66/EH3dJi0Ipo6FDDiL1i47X+nTVEq53womYFejnU5ziLWgBUA/LkwRYqr7nEZ MVCxFzpFfWu5aDRJpoy+coNbbYS3EWloAQB/0ygC5DIP48PXxXUKFFZhVWn2xyud57/s 7JKQ== 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=WP4NXAF9Ayii9D9pSAi0ZoUd2By3WRhKBiDPMzsmD5Q=; b=O76bWhNXSNQ6NZMzuFDwcVus/TL36qj3MRDdYlp1F7viRa4uhkUgiUjMq+CIxbvkPv 2yVlzw3a12IqS9Jk/u21RQRaRGUDjlt7zDVtLQDmCDoCXCDmK6nVuQlXXi1fECsysu6H kghMw0CXIIFnQvHtU9a7qbxMqhTz3AwRh8sCebFwnzxntNip20raApFX8et62SP1G6K3 yl/4MVPTJxjUNGNO1U0jrXix3DA+562hmpW4x5+WI9QloNXA2CJw/LnX3z7iimuEGBM1 CmhLvb4BvPFX6GOiieBdpoA61pnp1sv+KybIHHYItjhDlkiweS7DNIFFMRYUFJxZQEdP KNtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=RqaSdU1x; 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 u128si537423wmb.2.2018.04.02.08.36.20; Mon, 02 Apr 2018 08:36:20 -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=RqaSdU1x; 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 13EE71B196; Mon, 2 Apr 2018 17:35:33 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0060.outbound.protection.outlook.com [104.47.1.60]) by dpdk.org (Postfix) with ESMTP id 268D81B211 for ; Mon, 2 Apr 2018 17:35:26 +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=WP4NXAF9Ayii9D9pSAi0ZoUd2By3WRhKBiDPMzsmD5Q=; b=RqaSdU1xrzglpb4G4EiY6qbPWg88FKaBIqCD39R6IIfRlIyMMal1p9sXWBoPjiZ61fIxN0ihpQYKEM6JC9uvhZU9oQR66OmSX43On5C8xPgHLl6ImZF8j3wY5Y8yWWhFRNRNiIa9cB/lvtnWnlS0r8YYzLgpo6aD5y4yICtt8Zs= 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:23 +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:18 +0530 Message-Id: <1522683201-23963-6-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522683201-23963-1-git-send-email-hemant.agrawal@nxp.com> References: <1522654594-2757-1-git-send-email-hemant.agrawal@nxp.com> <1522683201-23963-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: 7d18f540-c5a7-47d7-12a0-08d598af5a77 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:OUtDDmfjTsvV4C0PYGZNQUn9HLKtNPAc26wxBaAtKQ6Z76hC0LQA7OsVpK1g9vuBlVkRFs3O5WFS9i95lMi2iSD5bjA/pPfoY5B7m+Rx105JzLzWTf6wCEtNhNeWUkhN6RP8OHcOVLHtUQQMWdrqOIf6iPPsiDpw4cKXTF6sReEnCNPhV9SOi6JWSzaQZgdKp7gT9bawcoZaYK5Mnqj80eUcocyoQ3rocRsJtn2vA6xTlph9rsG2F079v52YkpIt; 25:/5i9DQ32MYbtE3q0w+ZdXJkbJx4bM8GHXnu5Nh+t6fRDwnUGEtQWQE6BehOC7eJsOsRwjnnpqWXzSGRpqWPHqpkp30oAxqVZG6JNAusdrOjmGZiWDYow+gfGkWMRXbAaAX3TWvy5UViQgpLaTWWReQYHevsPBx5hPky7t6SBdGvUpCmJbh6rGFZUrwlzor3MJL5mW3yLAagzqWnJaIQt4Lmum2rVEIEQuzi3asO3QtPjN7OXCZS88rJTe9IRs0ZPxka4QNnXx5oVLYs6rjtrvL+MJ/WUq0hRyylrt8NtiSrqPXmux5SMiuQaJZ5/oiBuvPrbJHuUk2D6dhyMu5VRTg==; 31:Bk0z9WQOnRv7NCUDFbxZeypU7/ZyME/b4azwwwjnefmGTzPurx/5fG2mSFpAcCR6kI77iOxU5QZIGHcAz3AS/QpOGt7sT2O69Ax6aHuIOtXXIGsr5hoBgYcAE4LDHXqyXjl2STSlWri+8LSwkLHzNRKzug/u9zhetg+DjsLbUJqCZpkwd/rzNl/4tIPMFt5Jt+N21SjthI4ZjRMFvLzJ4NGthVVyf7SDXv+WkP+sbX0= X-MS-TrafficTypeDiagnostic: DB4PR04MB0767: X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0767; 20:pz+pZlnYihvC+4Lz2Zs8HIGAlHbGVzazExfyYY3n4PgUArKxrixW4Zsli4ag+dMGX2dSpcigwj4vJBYKIi5byt+6qRjNgMgk76eFGAQJKnX3QeqPZAZmcelcaRdKkairsQA658oGuTbBLe6f9zoa3/j4DqZNa3fwYYDo3iiMzURvkRGTLHsmaIxlTnUXB2LJgw6efVnqOQZrvY+N/XW1ymwuD3SKbsOh6xTGo1khuIN+W5NDOWDSxtWnPMMT1Dkiu4Dy7ZC+vhrYJsuh3BI6bYbAa15KYpz9oty5mhUDBLD01o0i1uf2gMwlXo7lBesDSuDDj25TbguvdBGWolXPBKpYy4ouK9Aao/JtICjju5mOUMyvVle/ZM6jNpSzkTGYq9qqaLVcpSS8btjO075LQGct/aeDmxvJ+q7a7sAnzSkx82NcQuUYK843eSxDS/hv4BjGZ5wmMu+zgsz5/H8t0ZQc+qEystRkG2ldQjGautuSteHJD4uw0pb8Z2kPg8KC; 4:xBdn0tSs555W1Mh8u2AOlGx1PE5Yiq8BML+zgcOv42fF/f7vgMmiWRq1gw3F5NVnXOi0apgLNXnSLp7lyBSYCIai4oMNTgZCXHOXTB2kBYHI6kioXnEZSWfwwz7xHSajbXyMLJURvdFBVjmFUuK/vaFPf/Pc8F43oZhzPsHkt5zi4Xz0m96B6EX9G29AJe9aoNZSl+PsS3nB9uq6DFm3hNJHoxw/EzWvxwgjvLq2ZiN/mUBiK00ZKtepnRlmITVpTIatgBEBxglamy1cs/AUMDgz/nsFI4s+7juN+0KRf519OQ7pbN90//mUzIBxRg/3V24KQYzoWTaPLgFD8D4a4gTT3UxXfq2oE9MM495CdfE= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); 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)(5890100001)(2906002)(6512007)(55236004)(47776003)(2351001)(5660300001)(73566003)(6506007)(386003)(97736004)(2361001)(52116002)(51416003)(305945005)(105586002)(486005)(7736002)(81166006)(5009440100003)(26005)(8936002)(3846002)(53936002)(36756003)(107886003)(476003)(6666003)(59450400001)(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:4Q3lKQNMu5rTls3jxA/pkxx++qakJUm/ULw7HWXIA?= WO2uRHNy9Ad+apQxf/rWVjSD9YsUVXVlP8LVo+qxWOs6UdyprlHEZdC8ZwloZIskQMhKbY0u8eAWdHZQAZJqsy/miZ3AYgTd6dQOqOFbEGbvXA6OUjgRPf9/Jrv+Oi9xO/uFF3FmExCa4jwPXQk6JlHZRw1+M7UoR9+GGZP8omTFku7yYAgFi5h6/AttaY+NhWzo4HoxcGf8d6qIhQeUxb7KZMQvzJB0fOOd+HZ5K0HNKz622FkJALeU9WP4e3W5jpRoq+88ppgCHQtR9dqLb2NYKDMx9jVQb0TUScbQ52ToNs8mdT73banc2kfHYF5cVBl5V+E1teBLkM5/h+tQepjkxwAJ+AsXXZ3K0fUEcnQ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4xmLw2BWhWvIOCBx45NPlgwnbxhe+cHqNUFjacGJCF2NV0VJftxquZD3pVwGvruEJn7qrWU2VUgnxZk2TLoUUCDFow4dA5t3N5hwK+mZn6W8KGh9AFormLWaTI4F3cY7Amx0pw4XhwdlJar73Mo/zSsUx+NhiLuUs7qltCC9m9mseZLqZdBTnKRk6g X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 15:35:23.4900 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7d18f540-c5a7-47d7-12a0-08d598af5a77 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 v3 5/8] crypto/dpaa_sec: fix to check the portal presence 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: Ashish Jain Adding a check to do portal configuration if not already configured before packet enqueue. This check is only done during dpaa_sec_attach_sess_q for initial packets, so this change wont affect the data path and hence performance. Fixes: e79416d10fa3 ("crypto/dpaa_sec: support multiple sessions per queue pair") Cc: stable@dpdk.org Signed-off-by: Ashish Jain --- drivers/crypto/dpaa_sec/dpaa_sec.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c b/drivers/crypto/dpaa_sec/dpaa_sec.c index c5191ce..eebb905 100644 --- a/drivers/crypto/dpaa_sec/dpaa_sec.c +++ b/drivers/crypto/dpaa_sec/dpaa_sec.c @@ -1759,7 +1759,13 @@ dpaa_sec_attach_sess_q(struct dpaa_sec_qp *qp, dpaa_sec_session *sess) PMD_DRV_LOG(ERR, "Unable to prepare sec cdb"); return -1; } - + if (unlikely(!RTE_PER_LCORE(dpaa_io))) { + ret = rte_dpaa_portal_init((void *)0); + if (ret) { + PMD_DRV_LOG(ERR, "Failure in affining portal"); + return ret; + } + } ret = dpaa_sec_init_rx(sess->inq, dpaa_mem_vtop(&sess->cdb), qman_fq_fqid(&qp->outq)); if (ret) From patchwork Mon Apr 2 15:33:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132665 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp2711133ljb; Mon, 2 Apr 2018 08:36:32 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+c2qjtdPSCra0ns/MbwwT0eVRw9OK6MsvqtX4dU0OFtdQprvrTZ7W22IJS+2yZCRKfWvRj X-Received: by 10.28.138.143 with SMTP id m137mr1385817wmd.85.1522683392780; Mon, 02 Apr 2018 08:36:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522683392; cv=none; d=google.com; s=arc-20160816; b=zQ+bQo4UugCL9zMpmwOTnUjBwMaEw4MiE+0XJ/a38UlVY+dvGaytpPhF2ZxKzp6yES Vu98lDSzfT5b341EWXzVL49vB4bevRPEcnfEJktZbGFMI+pBKbfUyyWlBAZxcJraPtNj ZN2UwXX39ra9K7YgVF4RzuZxxslw6Gw8YIxCIDjvHMEwAFK03b/Uy+Kp5IdxBeHfq4L6 QHuinqDlgO6J5bf/foWpCBBAaKnfstR+/PEBBskn0ZH9YwYxhTYepnAQLWsFi2gzVU0x Z2eknjBPww001VWm5UdG+jqssbE4udv3nvaKmffliP+s91/mKajThtKl4lNrRpOGQC/7 IEyg== 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=3IAvS25tgh2OkX9g3FHoDTxKQpYUJzEwuviRpM4oYfs=; b=N32ey8qQd2DJfEVQRFjeZcnPYL1Ma1XcAJjjdguMKvj22Zn/py27pjstHa5UaIooo7 zeW55DfEzwn9xCUXT65K4ATsCiglaBIqQcuJuRC5jPMYGNbIm+v+wiPhSx0k+hBAn1Oe uDGbw/PUGhP2Au4jfQ1uc4tBzJ28PHrR+EFRzbm5p3PDZsduVoShG5tEY9SWEC+z6uyH PqE+csNrMmTcN3L7MbUusxPsj9UHAg6/hXhXgGMcXljQgV/X+QogUv0Kxc+Zfn2SjOet VawifdHOHUpe+DzoQJBguMbWaH4ZSV3cJgviQL/pGxHxEVRXEIitLmlMMcgKVlc8QpAu dYaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=O2B6AGIC; 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 i65si581281wme.197.2018.04.02.08.36.32; Mon, 02 Apr 2018 08:36:32 -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=O2B6AGIC; 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 9C6761B2B1; Mon, 2 Apr 2018 17:35:34 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0049.outbound.protection.outlook.com [104.47.1.49]) by dpdk.org (Postfix) with ESMTP id 785B01B28D for ; Mon, 2 Apr 2018 17:35:28 +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=3IAvS25tgh2OkX9g3FHoDTxKQpYUJzEwuviRpM4oYfs=; b=O2B6AGIC34aRZ4/9l3XmXKpizGHh96HvXvoSoIAiUNcY3YfPF3nE718859+pD4vwD6HT/B7EnMqudqrBSWrK/T/iQAxpseQv6jSA6++GXQpStDrlIz8E1bvljeDMosv9HdjEYUvHTpi/G0UGcT4MkOY/D6/M0C1UpPGy7SgteBg= 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:25 +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:19 +0530 Message-Id: <1522683201-23963-7-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522683201-23963-1-git-send-email-hemant.agrawal@nxp.com> References: <1522654594-2757-1-git-send-email-hemant.agrawal@nxp.com> <1522683201-23963-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: 1f066de3-f0fc-499b-6b93-08d598af5b71 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:aNuX3Yhuc+vGIYiM98PD3Vtz2Lnfkr4fRAlBBqB679k1ho9KhYde3/poaJtaMg74di1iIJuwxQNBG1Tp8Hqr9DIrswm3F+Pk9ya5WtfdDxoFUfZA/VYdCRFoolkutlI++kmaZxVrKsyGvnxT6Zx4PWLZaSxbAOlZlK7/u0HQ7JJcgzmkbml67NFLnEbt4KBDT+JxZHmmAVXZUlDtHZZMtpAtAZNTfqzk2RNIukUGa7O6qzb+oGyIwA8M3RUTCT4Y; 25:W+a+OF5MvVbKFU9/CdQztnotKCcln7aj+lYyV6pIoCkhsfCOcicGdUebF2n1mAYIjQC7AzOXAM7ftjHG3oen9VT8b4Crh0VTgF8lc6KHcU54kB6rIs8sKuKsSFTVlhoSyRBmBRrWI9b5RRn7uxWWt7gsXhhh3aRb9wF8JPURIOUNoE/nn92djPp3txoCLyyFaZIj1Bb+OUMO/mGpnmssamNmGChi+L7KKap6eeIUHbAaR8kbSFgkGgqM9NxM9RNNlp0KdytnK5nMlPRglU7XjI9ulw7nO/kECZenqjZ9aBYjEtv3dkAvleCWVmlDxbJ8V4//XGv3OeTAU3mDHMZo+w==; 31:U7c1788mW/KlnWpzCF7hEBittHWGzyI6O4c+XKK8t2Yjn2n4oi3DuAG/fI+8KWqaKXIYsyBygkMAWuwik5MjzGC2XvY2SpCF3F93Hdjtk51Xy6QE81TUpainZpk81D63A2fT5ihXjefdhIsmJJtqeRRkvZqSzqun/OgbmjHN/JVsiZkraNJg8KLdBp6OlZGmS7bwAOpv4rsxK1A8Q9v2NELXEsGWssgYJO92/G0NecQ= X-MS-TrafficTypeDiagnostic: DB4PR04MB0767: X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0767; 20:5rgrpvraXo70jk49vm0VfEW8/iKlNEUOPWAzVS0Qtxg5/u2qef2xS+DwMlvZFT6YfcEZLJzAtOhXPWK3hoV9STtsSNEuBQ+HbKvMuXEVako+vN8IevpLCH7kplq2f6+86eZdwbr61HxBjzdfdfd1wp82YBPTLbE8V1GATSngtKo9l2mZUe0ChZXutSSD7+uZ8lUY9LDvmWoNeot0MFKMb7E+uosT/5Yky5Hc7UZ8Kj2pjTrWF0EsFDQthuCjP34h5gqX3icVbZGFJRtIck7KU/tYolO6RWDScSuEWNMfxJQCkemPwMtPx96EgZxwifz7YS3WsQye7+5PhIX+QI+eSWH+wlLaAX6ZUJda+/BBKyA37cpiZrA0QDFwAC/O1p7SfltV8YdSBS1/ONBmID9fbGSgUNhDsr7vn3uYpBRfGZ3T3wULdVgb8CCO7sahjl8zYvuDHQ8G3toouXtkb0VeIPw/BMbUEgpj/cgF1R9Hl6BxTX5cvpYpkRCDHvCC2wG7; 4:4Fb2Y52TrGVEbYKlI9m6Hi4rAG1cEALbQKPpOUhEbCsEnPv80/1/zxjoD4efC/B5X74kZO9Pzqa+lPkxMcAARYYj0JR7l3O47/rLSbPIGCeTC1xti7vev7ekCk/2UTKaC4UR/Y5uqtCDBOm/rhQog1CSzrZlA955MlFX909hHFVuhrDN4wo7QS5QQrA9urYe/Wg7EHQp+lJwPbIRXaH6GSbZGTHb/0UF2H7UxXIYQUH+YUizmoOgm7z5sPf4dmu976UKOrr6nxuVPCkTgzmXOYYroxVd1Ao6ghh8YnZ14G6QGGEfrDPEwqdVw/WwyAgbJvM1rgpixcRrZnTjEaaUjaDoXmx8+yVS62TFMMU1+YY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192374486261705)(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)(73566003)(6506007)(386003)(97736004)(2361001)(52116002)(51416003)(305945005)(105586002)(486005)(7736002)(81166006)(5009440100003)(26005)(8936002)(3846002)(53936002)(36756003)(107886003)(476003)(6666003)(59450400001)(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:X20YATnqqXEF2vKchYGIRtnJeLEc1RBn2G40nA9g1?= LlzxqQ6voCQ79K22zlWyWEnRw8Jeq9SPT05t1ZtT4y0yBd0EjoXIBuG4QDWmaAf31j1m8cDSYhfAZsN5OtVhyNFyJ9d36tX8Uz6uzuOTOZSAZNgSkbc79r3BuIGGfC0j4V1Nn8j6ZWCSblUIoD/KexsMaKCryHf7HG8uHpdikM+A9+dMQU5i+mrR4s4SnRccJ28RU74rfRKNq3MI4BhGCCa9y2khCWmmI9QQnTRlkE9Vnv9ltkdy+mc11W8P998OueFcUXQgf6kmOLTafIVoM0uZ4xgpcBbjvJiUj6ztBb6q5dk2ipW6hy+PxReKru1AxkJ8JU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vcvLLw3eghpPkgGjzSrFT8rdoYivwW7arj5iajY9zvzVo5m6X3EFBUwtD+FjoF96nBLrooj8HEeNcAD4WceFf9Ae15UwxO72L8Mu/vPsF77XTUDPsneAM2AjEaRDSIFF4KCmJmJQqCtVnVNBAC3LolGVh0w7j X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0767; 6:vShujWV8qcus94X3UhOImsf0Gfhjem7+QQsiUIh5RORop3+7olKw8NyQv5yju/D4wFfxZvtmJsuJbQHOu10LsRa7mlKD4yklypf/89FzwyWTdym/pmtNkzwyay3YUbgEFQzonfYxk7Pz0EUvDHKb6hNzEcoRPysF7OymhocJw7QBryWhL7mMkNS3WPTc1bJ1MBVNF5iB/WWQ3WlC5S63lIdbiNonRvtQ2l6hCBQnW8i5yDn+xa/QxhLng3CeUHHWzpGK98XE7v267dkDMkbNKKKKd/awyoX4Vqma3AbxWZ16es2L6ESVhD9fcgrWWQ+uJ96kFKqENtYs6LAGo+f367SgMqEBvlrbh68dOGPykofb7Ovl9objBFJheZGlGTAxvvqTfXAkTfzJmdso2/SYCinV8nfrJOXVkV5ML7JwxjJZMJuDp1IzGeaS/H014p20dnvc8bfb4zEaz2Pz2bUzlA==; 5:J6gtcTnuvx+sjVVadZRDmeBf5nhX0UI+hNs0RapM9Ag2hToQ0U9HE9cKYX4GBqmK4HRc0e2Y++Oyx9BEY5yjebxNgGAraYJ7CiRGZbfQQB9Em97yjcjWV7OPhNcJkHtP2+Vx3vgZFPYhFQb9Kde4wKbi1Xy9448PNOhhBuk3dng=; 24:Np17rTv53FSkovVUK86XvCge3Bdrm8+xlra1onqacY0fN/h18gHZNsMy1Z03ohN9vzrJxhwoDRaagGLLH7QFZOzHR17Gh/zTnHiFG4YLbY4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0767; 7:O6T6erF8RSPvOj3isEbCNyYr/ZsvFEiRM2WAJjIf5ZNLgl27iO4x25WCFCKPVmqPENjbu+t4sogontKPy9B+8M8m26e1YnsnwxsOHSgO3ovwDL3/dVGYW0qPBGn+PrplNz1OuKP4AhojGLmtNmZSKMd9xiSYkWdaeKnwetzYra9QApBXYJ6on3DdnGdN4CgbcODbh+o94Ve9YzGVxa48tz/om06aPVUVfL4KRgWvDmm5h0DNik/eZbtUUS9NSaeZ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 15:35:25.2557 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1f066de3-f0fc-499b-6b93-08d598af5b71 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 v3 6/8] crypto/dpaa_sec: fix incorrect NULL check 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: Shreyansh Jain Fixes: c3e85bdcc6e6 ("crypto/dpaa_sec: add crypto driver for NXP DPAA platform") Cc: akhil.goyal@nxp.com Cc: stable@dpdk.org Signed-off-by: Shreyansh Jain --- drivers/crypto/dpaa_sec/dpaa_sec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c b/drivers/crypto/dpaa_sec/dpaa_sec.c index eebb905..2df5e5c 100644 --- a/drivers/crypto/dpaa_sec/dpaa_sec.c +++ b/drivers/crypto/dpaa_sec/dpaa_sec.c @@ -2252,11 +2252,12 @@ struct rte_security_ops dpaa_sec_security_ops = { static int dpaa_sec_uninit(struct rte_cryptodev *dev) { - struct dpaa_sec_dev_private *internals = dev->data->dev_private; + struct dpaa_sec_dev_private *internals; if (dev == NULL) return -ENODEV; + internals = dev->data->dev_private; rte_free(dev->security_ctx); rte_mempool_free(internals->ctx_pool); From patchwork Mon Apr 2 15:33:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132666 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp2711321ljb; Mon, 2 Apr 2018 08:36:45 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+0vbCrPtzVu9+FToUXSnkp9+lz/6nvpcbNR7PElEOymUQt3NhY1qLg9+d8XZgw/3/wDNue X-Received: by 10.28.215.147 with SMTP id o141mr1257635wmg.28.1522683405280; Mon, 02 Apr 2018 08:36:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522683405; cv=none; d=google.com; s=arc-20160816; b=jZ0N3pmb2PcOgm4WQ4aOQCzsUm5xuAmesfQo3KbDjeTkX3TP4kwfNPJQo1RBRSGIK1 oJs/wkfuOi1nctw+JcJYpC2wbiPGXhc+k6Dq+LuH8nszI2x5rRhyc89qLqtQwzEZl9Pm 24F0y9na+SPh2Ullby6CQyBKPvOytKsQqlRDLM8ZFOPhTtHGbywhXGR3M99be4MZnPhX rkijL/9N+5aTdsqOPXH54wNkID9WLO3v04hSuyNybIZi5cC4VaxmkyIJ1gUen7NaA4ah TyffdAskY+N0ltT21aoP+KRnvcMs7AH/CCwygOBZz/WNaKYlZZ304pkmVHI2e6ssi0K6 hEbg== 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=C3ILFVcUvzaOyCdSE5s3BFLs3uHlTtpg9CMwzlHqOT0=; b=S1u+Av+jqzeiJja21K6c4J9HNmai7F1d7oaoePJLhNNF/jWOqqo/btzaiQIXZ8TJ8g b7FgtXvGd8/rhWRVAQ9/VqfN4g4qc4h4zhZxvinpSmQXmtvVR7kOg2bWwh4Pa+uJ1mwb FBpL0pLqaWn3UzqP+RyBqmhUTKcCWmkJr5HDVOs1SFg1dd0e+RVhMEaqo5Y9noBY9bd+ cy/zDeKLnVxrbXcZVNu5+OePJZLdVje7TEswX8pD1lv6+jsbiPRroMHgEEMNeSyLoFQP KkzANNnTZbpXDSMOz+pogEPeQm52Ha7AKZ2Sr980JqNnD0Tk2fa8ExZE7alsTRohAHhn Y4Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=TfrS0blf; 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 z76si438349wrb.25.2018.04.02.08.36.44; Mon, 02 Apr 2018 08:36:45 -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=TfrS0blf; 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 83E6C1B3D2; Mon, 2 Apr 2018 17:35:36 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0044.outbound.protection.outlook.com [104.47.0.44]) by dpdk.org (Postfix) with ESMTP id 6AA641B03F for ; Mon, 2 Apr 2018 17:35:30 +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=C3ILFVcUvzaOyCdSE5s3BFLs3uHlTtpg9CMwzlHqOT0=; b=TfrS0blfBfMeAIhROb6+Pw2Y77tdR3KFr+MPNkkcPCUtdxNyk/a9Tj+FVzVTULuZuktyWVLZq5kz0ec/c2jnePGih8XgvA2fX5H9Xz/vsSetx9/LxOW6LaMdIfvnmE+go2DTWylrKddymB9p0gYsNH5CIB7wnE+4fslAvqjkIR4= 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:26 +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:20 +0530 Message-Id: <1522683201-23963-8-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522683201-23963-1-git-send-email-hemant.agrawal@nxp.com> References: <1522654594-2757-1-git-send-email-hemant.agrawal@nxp.com> <1522683201-23963-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: 812ddbb5-d742-4f4b-26e8-08d598af5c6e 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:z2MPTnroF80AaoyLvLnoxsl/+kq1uI9Uke2S2AVfWpvceQK8BTLZIaAe0DFT1SV7mP1Gh1oHQxEhFD9D9BAe1hQpDiSr1BvRL50QrzuVoSpzQqBYwFlz/O9lRcQDpVXzpQCMHKWY5GHuOZVpZ6w+tYs/Lu8l/tAv509pJZ2tNEVfT7u8opq5mcW0NHQ3LL6O4aOePNTMm22k8AZ2pPQyb27bSJg2D4h0j8i7TUUFxhpce9jjhRcUd0onTAIQMw5Y; 25:YkV006AeYvM2QVh74OfR9X/Rx1P9LkgP3sXwj24MV2cGTOuEYUtZb0Uzg9NZw4/YwhYTFsUumFROlNEiJj6bb4oc6TRiDfmbwTtqytAHXpKkriNlBetOGpuBxGMOPg8rRSbJeGq9laT/ctPZWO2c0b81vNOvxc4JyBjna4yTzvbfqhT8JxtEoHEcZD3P5bAET6CT2CdchllCb3mJzXsUc9VX/2BKY2Uck8np+gQkGCjJRq0xwcKjHL07t068poInnUBdchYa6GnZyTnv/60ipdv23UKycoLpnEMh3g7sSjEpdYg9FLon+p5bjdCjvuP8RQkEAyhSLF8nCKwzefliRw==; 31:UFXgziIi0txoDRCDg904MuKQvCVBAHOFKxVEeb/DjCRWC4LFvCnC/ujOX+Zsy0frgjSVbHnh4YISJ63762veQngwfyzL4ZvkDvPwY0PhiUChI2qaM2aIqtBPVoR/1oyUy2G78LisZD8s3vvyZbdNuvHVYN2ZtlFgIV6NEKWEzd+kbwlYJahNiN7zlHjqXpyR1B3jBCevOW3YyROb5rJzCG7VuKTs+ZDI+SoQEx962Ws= X-MS-TrafficTypeDiagnostic: DB4PR04MB0767: X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0767; 20:almvyL/R1sSOt5EpTxdaD9TQpf82iqoIBjJSsvInZfQufauglAK+uxVguI/SVxi3HQSKGkZdt6oZQouMdvV2tjzZJkv7Dmnn9J+AI/S4aoU2H85QByEYkY8fr3lmxds7XTfAUD4Ip0WQhujyk6xSi8YWk9duyZOd4OTx2ClNbc1I/y+DCJIv4/QMEpuqR4Kj/mMmC5YjHOXk1OtRP/9ny+UxLZQvoumURur/hN8+kvBsNfum6oHLzySMz80TcJFwsc4Y7PagAG8gW/seZp86KpS3u5KA6VhvFsEu4isFoaESBcT2dM2oOGk4OVrGFo4SZedktWKHKfGiBBJ/p3LRdhsw7nNXp0EJo2iIx/eE7wLS3qH4vAG90kwgnNbaJj3UayKnid/LtmmYb+fFGwecUUhLWql7bB0/EDeqGDj1ve6Bvmbp2GhEX2V6gBjVYpLFuar8PGYzLAjtwIhN2kke+7LLcsKCLUwQuAP14/kYLnUpSyaSakxuZPBVdk4A1YAP; 4:NtmFwCyGxaNBf+ZAekqFepttzezc5tzKvUtnwqLtVyzu/z9q4EhrFv+4c2sCpSglgZKP6PCwjQyxZTv5YyOVZnpTYLfRMXpHBEPCUeDsBQvA10W0RrdbZ7aPaUmEPtxO9fJz8CYTrOxgi6YPLgrof/HVrnqla26wXeDC8V0jqogOvK7+zLF1KbJHHt3ox4Ef6fEqF+zq8B1mZ7Mn/tgi82rlfbd5VYrGsB3xrtmkxBhKwcRUA1JerchC8bMBlzahB9yqH4Pxrd8g4K4SzFJ8skj1pjkeUQRzVqe1h4BQMnlenn5MgiwL3o2yxT4fy+W7BVTiY/IBrc8FXq3eL8Kc9c3SQKaR6Nc81KMC778nYnI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192374486261705)(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)(73566003)(6506007)(386003)(97736004)(2361001)(52116002)(51416003)(305945005)(105586002)(486005)(7736002)(81166006)(5009440100003)(26005)(8936002)(3846002)(53936002)(36756003)(107886003)(476003)(6666003)(59450400001)(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:6AO8Dz7pYvzv7CX/+ZMrPIFppT5pMDfH8Z1XpEqgF?= naGog+tiNc0tX9NV3j0qw3+iKNHfc96gsK0SpNbWyxKE/fgUsy09v0dOPNQqIIAxbFR5S2F2ggpkBFv/ztbnuuMyxWTuOva58NKRGyv0PFAgpVyQ9OZbtSAXybP21e+91lNe8gJToP3wjk45zVd/LTpEp3NUGJmAly5Pw4F/rEwSjMxc4oQBaV56TEqQ/LBbwf8GSF0eqz/izo36e0ICdMAO4fBMa6oEPI3NDkuToeUK/xW7T5a6Aa6A3C7swEqMPyNtsIsN2ubTv5WnEcxehFiQORqiUmLc1k3+DP51778o3frH5x+TYjpeQyRNEN/hRqdSII3eTkq80vU6ozqf+0qhV4tVmd+kmkxnA9m7NXduvEHQ7YzVgXjvSqLtrL7F7e52G6bJpyrxrZ0/8uORJvrUprC1Fa8urjP9DtM3ehLKd3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7BcAfOx47uuThdvLO24Xbxg21TDF6nQ7+ewfBkEEdx+esQQg8F X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0767; 6:+/bTza5aJBM5BJwvdTEFIRr+xK49W9nPiBV7M59aLGiomYPuJuEjxHZ0bdLHpZMM+hhBLs3inG3lafPxcUQckIOlpXx9hNKWD9b46LB6NHQX8H3pQ4HmhEOFVC78oo6uSUyErap1J10fYa7CTM1evQn1L5dkH2KpK2jL9rldX/8YsdpSE+nSzgE5NPeSLxZU6Z96JkuQdRYgH0UQ34Ci+yGe57lOlqXA9GOKEwJ4GJatS6thsKtmc0Olk28/bTlnT/Y9qK2krY94Yz8ApaEccjS5lW0PJ0BjtvZ1CRPuVF6QtN/Of1BLYijShtdARxN1MDFWrbCJp+K/FIiswznqf5WWj839nWo7nSfiH8weQZ0rmZKlrKxkYZyxPSTLzBMEd3uAnllIyh95CmdMRNjRi1D7IukNZWNVwldobt6Ckc3cMnzVRNxOUToSzuuPOGfHn7qbcI507nszStovvZbxrQ==; 5:1/+vtIVjkPmaWv0gGVYqF7Afl3aTJwNTz13oKKKEds2ZfelkWKWwhcNnP4SbptpjBzmZzCcvRrHhB2hmDhWUHhE3zUBAIew5AYwgr0gOOZyTB85dNNwxPTXp9UnLvhoPowS0xuQMZOGM50RZJEb1Ii56z3VCp9bXplVGGVFEZQk=; 24:g5I3B83lM0nMYw1RQWNEBU6Yo9hjtm9MijKoojPhweVH80IR/AnsYcdJf8MOKQ5dHr14ZiPWxgXfayq5uLiudsdstLICRefjvF7kVDnZP6U= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0767; 7:0GJimG84PG4mk9Y94HKM+jF3w4YKVjrvJedyfuY3pFS8IHt/jJM7BTerW6nvzc7EijDcOtjc4SiBJq2M1kEZdfN6zaH0p+pXdIvAUj60imci83Yj5xcXaKKTK+C3SazlmANEikoRt9qV54qKHR9GXkbkrHSy385srJZHQtN4lxbTuxbWjQ1zzeIM0smrToSJ1ZRnLtUtlhX/oR8ZKLCuS91oNutITzz5LRwwc5l9EmeMcuxr6XaJsfTEPNGJjAdG X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 15:35:26.8964 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 812ddbb5-d742-4f4b-26e8-08d598af5c6e 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 v3 7/8] crypto/dpaa_sec: move mempool allocation to config 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: Akhil Goyal Currently, the context mempools are allocated during device probe. Thus, even if the DPAA SEC devices are not used, any application would still allocate the memory required for working with the contexts. This patch moves the allocation to configuration time so that when the CAAM devices are configured, this allocation would be done. Signed-off-by: Akhil Goyal Signed-off-by: Ashish Jain Tested-by: Shreyansh Jain --- drivers/crypto/dpaa_sec/dpaa_sec.c | 49 ++++++++++++++++++++++++++------------ 1 file changed, 34 insertions(+), 15 deletions(-) -- 2.7.4 diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c b/drivers/crypto/dpaa_sec/dpaa_sec.c index 2df5e5c..c7f7cdf 100644 --- a/drivers/crypto/dpaa_sec/dpaa_sec.c +++ b/drivers/crypto/dpaa_sec/dpaa_sec.c @@ -2169,11 +2169,32 @@ dpaa_sec_security_session_destroy(void *dev __rte_unused, static int -dpaa_sec_dev_configure(struct rte_cryptodev *dev __rte_unused, +dpaa_sec_dev_configure(struct rte_cryptodev *dev, struct rte_cryptodev_config *config __rte_unused) { + + char str[20]; + struct dpaa_sec_dev_private *internals; + PMD_INIT_FUNC_TRACE(); + internals = dev->data->dev_private; + sprintf(str, "ctx_pool_%d", dev->data->dev_id); + if (!internals->ctx_pool) { + internals->ctx_pool = rte_mempool_create((const char *)str, + CTX_POOL_NUM_BUFS, + CTX_POOL_BUF_SIZE, + CTX_POOL_CACHE_SIZE, 0, + NULL, NULL, NULL, NULL, + SOCKET_ID_ANY, 0); + if (!internals->ctx_pool) { + RTE_LOG(ERR, PMD, "%s create failed\n", str); + return -ENOMEM; + } + } else + RTE_LOG(INFO, PMD, "mempool already created for dev_id : %d\n", + dev->data->dev_id); + return 0; } @@ -2191,9 +2212,19 @@ dpaa_sec_dev_stop(struct rte_cryptodev *dev __rte_unused) } static int -dpaa_sec_dev_close(struct rte_cryptodev *dev __rte_unused) +dpaa_sec_dev_close(struct rte_cryptodev *dev) { + struct dpaa_sec_dev_private *internals; + PMD_INIT_FUNC_TRACE(); + + if (dev == NULL) + return -ENOMEM; + + internals = dev->data->dev_private; + rte_mempool_free(internals->ctx_pool); + internals->ctx_pool = NULL; + return 0; } @@ -2260,6 +2291,7 @@ dpaa_sec_uninit(struct rte_cryptodev *dev) internals = dev->data->dev_private; rte_free(dev->security_ctx); + /* In case close has been called, internals->ctx_pool would be NULL */ rte_mempool_free(internals->ctx_pool); rte_free(internals); @@ -2277,7 +2309,6 @@ dpaa_sec_dev_init(struct rte_cryptodev *cryptodev) struct dpaa_sec_qp *qp; uint32_t i, flags; int ret; - char str[20]; PMD_INIT_FUNC_TRACE(); @@ -2337,18 +2368,6 @@ dpaa_sec_dev_init(struct rte_cryptodev *cryptodev) } } - sprintf(str, "ctx_pool_%d", cryptodev->data->dev_id); - internals->ctx_pool = rte_mempool_create((const char *)str, - CTX_POOL_NUM_BUFS, - CTX_POOL_BUF_SIZE, - CTX_POOL_CACHE_SIZE, 0, - NULL, NULL, NULL, NULL, - SOCKET_ID_ANY, 0); - if (!internals->ctx_pool) { - RTE_LOG(ERR, PMD, "%s create failed\n", str); - goto init_error; - } - PMD_INIT_LOG(DEBUG, "driver %s: created\n", cryptodev->data->name); return 0; From patchwork Mon Apr 2 15:33:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132667 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp2711497ljb; Mon, 2 Apr 2018 08:36:55 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+SG8AnWs9OD77bH8jZuVZ8w+EHLFe/eZFH3VaiEP+NIiNIweKhRHkytTdOdE0eCvvxoR4m X-Received: by 10.28.18.199 with SMTP id 190mr1377501wms.50.1522683415221; Mon, 02 Apr 2018 08:36:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522683415; cv=none; d=google.com; s=arc-20160816; b=rv53bpFpH8XGFqw3AxTjMyGqJC4lLLTT9CbORmtLNgweS2kFMQw6LZ2kWRpacc0EUI ZGVvGr28S8T2ntO6W2lddWLW8PSv5lUPx+d1SkiceVdTx0Q3bww1ftUopTyuo2UFqppt JV70cC7H3/tLY4RibIAv5Z2xZ56Li7SKiFasE8TPg4g7rqi4SNxR/vr7UqdICFfpWq6d Df8d70+0rtrgwQs+Qlgu97K5CI1ma0L6j9Uo6jA4CT+a1Q0sjslzvVhvG4TMWGy5wx7m WJETxr6sDbgS+ren6g4KuZALbXDG4S7WmMPojWu9Wh7ZkKuVyDy5vGedaZyPbFE7QaPy bctw== 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=+b02NWWD4PbHbAAJjUjJfCT834JKVKOw0YJ9SuJ+PVw=; b=OFsBPN9s10uJ9YkZJRhUxFcJnmldKySqnD3GC1mY01MLYXeDg+9XlYVf9lpH8sW1gD hm/wlguvF6Ipv97fnaxLMfuVuWGxbkoDWJHWfwrmTgS+vUN+c+kAZVVi2sTBTZs7CKZQ TM7GfHZrC0hZUwAhXLPl34AObJImwwJJDGOHBREk34DszlnhFEivj+MSChF/fJIZg9BI G+M6pnxNjF8aWOTgraiWBplJbftq0fGsmp00TZX+HueRRFUCOACTW+ZK/ikuMSHwYR3y uvZe/6CYooWa+SklfgF3XmHwPH1SlEHN058sj0XBCUJHiQR4KhS7+ZQX+nxAFZYALoaP /12g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=Grb/3HpP; 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 a70si548644wmd.103.2018.04.02.08.36.55; Mon, 02 Apr 2018 08:36:55 -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=Grb/3HpP; 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 A5D521B3D6; Mon, 2 Apr 2018 17:35:37 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0042.outbound.protection.outlook.com [104.47.0.42]) by dpdk.org (Postfix) with ESMTP id 9C8731B196 for ; Mon, 2 Apr 2018 17:35:31 +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=+b02NWWD4PbHbAAJjUjJfCT834JKVKOw0YJ9SuJ+PVw=; b=Grb/3HpPIq6ZeylTFUkN/0ABrPVCK9lDLJc1ps4oaMsePJPZAbpKD2QBVO7TDJzUSbL+63YGVg8KVK4y+NpdhIVxwKBzw/JRtB5vNRlqRYBHqmXpw7TolteHyiFSklsGwGrt1BQd+b8eBRZPr6p5lviu04+Cz06I0d30RLyF95s= 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:28 +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:21 +0530 Message-Id: <1522683201-23963-9-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522683201-23963-1-git-send-email-hemant.agrawal@nxp.com> References: <1522654594-2757-1-git-send-email-hemant.agrawal@nxp.com> <1522683201-23963-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: 3aea66ad-872d-42a6-cf3a-08d598af5d57 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:mqoJ237nVYFzDTLqTn2/jnEADlHnME5TaWmI4mfdL7y3jBy12OTKYtmr4sM5mFUrsFcGd55ImVKjyGTpKig+FgteUxzDMK6JBlQddFz2i2VIB4ME+hcBKSpVrDFXRO0yeaoGRe47nEPacCWB9fwg1fp/YUydxgF0VBu8pgraeOAJcvayfjGK9ZpRnFnD4uq9G7g9mTUhD6oxvxZt2Yp6mMm8rXz7ID+xR/g7mU04fVPfpWnpplSP/XsVjWqnyk55; 25:/g4Lvdj6tQ921dCch51rBwV3zwI/Z2V/gHdZa9aEccpvlrsXrx7B9KPfulufazRBdYAR4A71NmuN/XuJnWPhGY4jNTp9w9MSTMhuDaU7cVoH5eeJbfeX+KCjgCs20+9Y588CiH57A+W5C4+o+FL8u22NdjCVOyuvihUwr3hc0TI8q0UImDHY5q+cG4ZorTP120YFyDq6LiuzcOsLIWeAq1i0G1KGJB5NV52OFcczHg1oFPy6Tta4xoO2pxTavZmyVMOlnJx7fcWZUYBOXoibHPCmmOhJjV9p8gjvMI0OrkrHh41MQ9gr7Kq/Vcx3+5ffzR6RbxmPkq7RDiVuE+9XHg==; 31:r8Kx2YfigJotTQGhy4gBHktTA7sBElWj/Uju3WnwgsW3/OOLxsd0xeKOm1lv/ntCH7vBqjYuUCoUCb2Coyostj5HhVaYZNJFukLGXbOyjlBA0C/rqegz75rQD16fLwRlrCBkrIWroU7PXT2Vk20oxQEAjbWL9p+7uNzaqKXJewjUpRLkKMCNC/T34qdsL48OlbS07NrNz9UM5Nz24+cYcJj5TsvcTqSEJPC1uXIngSA= X-MS-TrafficTypeDiagnostic: DB4PR04MB0767: X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0767; 20:hq51gC6bsI/y0AoLPsQeva7F4dQi3YXKXq/RMc+7a0JDrewSGY4YTBS1Vo+VitL0SNwC53yZlqjOlfhnOqtWy9ChYs9d07h/Qlw7i5WvGY1l9+LA7qnhxDH/Cl0gYx3V7LcU1V7pCYzNgh0d/MutYYZLzIu7w20j3OBILfDMl7g8D964b0u4h6C3px6UkWQF966B9S6pOqkh7iXrXGPAPsdGzeEeMeziZlVoLMWA4sWRuZfIaAY2tOB8i6T1QPloaziCqon3Afr+ek6w5LXsXQLEZhin46z3mKNKZZ/FeCN8CuDoRtJAD3W/Ok1+KdaIKJlRMEp/tnTPt/EdZdalyBt6/a7Zk+jNdA8CD9Wtci6ZXftjSW7zQ4d8oxAFqXJQLpC6UFsjm8dS5keRQy2aHpbF8WP4w3ph+Tor7CqXcD7CJcgn0I9ondKps0OJk+QTLFnwepFSLyiZYcIywx0VPlrort/CFnXrjeCt1Vhmanl78p32373na/ez/0z0XtOU; 4:INkGatUIaims2l0LZ9Gh2540O24OLEFYTybOln3a9dVmCoKi4BL4meH7vFt7jCgXozuy+78kxSLuBTRf8GzvaKqtplM5L+H9XTeU+z28PewYYr3sKjgl+kO4fI3UtcWQwgkyq41xSwniE9CX3ezfafpQf3pJ6HnvmNpw0hoQuuFreAcEeQ/DG3HN8SgCbgB+tBGPeToIQA2Mg5do+TaEfE+caJg59/gEeipJdSs7TivWJ/cXccGMjtyY3Gng7RTHnya2g/7eDpBS1XUV76R+V1b+ZqWTCv5VuXBvFK3dDdS+992PExVN8tetpEtEQoaOMQ0ohMcilJ74GdeWTQHngMLM5FTDVI3Wp7u5LLe8BgU= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); 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)(73566003)(6506007)(386003)(97736004)(2361001)(52116002)(51416003)(305945005)(105586002)(486005)(7736002)(81166006)(5009440100003)(26005)(8936002)(3846002)(53936002)(36756003)(107886003)(476003)(6666003)(59450400001)(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:15RO3Rcau6M6m2soA/eluUUQnX8zVCquqoNLb71KR?= bUtXsmQ/c1M2NZtk8Z4+ConvE70GfZCJnj6PAXYqRgT5JZZVKtSbD4NZuYxpSo0ABhl9Cekehl5YUW+6ZUT7JvI0OSmQLvAOJlLVCK+NvKdv2tREnfk0tS5gGBgLTVEFS0uWbl1kfsFL3LnAtKeDtn3i5VWlHp+ouQs0ILRjfP2QYP20EMR33pYXVQomxf0831lYqL3riX78kTyCguaOTkhwbvz4BMnyFM1HOw2ze8DwPCErhqYtwxoAgzM62hQwekuvLWnCjo2W5yxGP9nv4LL2z0KWD5Uzat4GM4oAoz4yflxnXgNSffGdslIDoX+Sl2ZD+139pz3mghGruUxuXShYV4Tn7WU07atEjItZ28y40PvAnWnIib9Hm7yAzdadpktNGsq2IooPrRKwMJxb82RNS97ibzmZ5m+5MpghxGVfaWAKsa5zhfc++Un50zh5l2HZC65IV2J9F/xlcrdasXaDQ6eMlStJUjxNZfOapEBGgTP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67qn1ijRMwWkvJ3eAEAJDjw2NeDpXHm X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 15:35:28.4277 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3aea66ad-872d-42a6-cf3a-08d598af5d57 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 v3 8/8] crypto/dpaa2_sec: fix OP storage for physical IOVA mode 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" op storage in fle is just for reference for post dq. So, don't convert it to iova mode. Fixes: 37f96eb01bce ("crypto/dpaa2_sec: support scatter gather") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 2 -- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 16 ++++++++-------- 2 files changed, 8 insertions(+), 10 deletions(-) -- 2.7.4 diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h index 4a19d42..ac72049 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h +++ b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h @@ -305,7 +305,6 @@ static phys_addr_t dpaa2_mem_vtop(uint64_t vaddr) */ #define DPAA2_MBUF_VADDR_TO_IOVA(mbuf) ((mbuf)->buf_iova) -#define DPAA2_OP_VADDR_TO_IOVA(op) (op->phys_addr) /** * macro to convert Virtual address to IOVA @@ -326,7 +325,6 @@ static phys_addr_t dpaa2_mem_vtop(uint64_t vaddr) #else /* RTE_LIBRTE_DPAA2_USE_PHYS_IOVA */ #define DPAA2_MBUF_VADDR_TO_IOVA(mbuf) ((mbuf)->buf_addr) -#define DPAA2_OP_VADDR_TO_IOVA(op) (op) #define DPAA2_VADDR_TO_IOVA(_vaddr) (_vaddr) #define DPAA2_IOVA_TO_VADDR(_iova) (_iova) #define DPAA2_MODIFY_IOVA_TO_VADDR(_mem, _type) diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index 9a74845..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, DPAA2_OP_VADDR_TO_IOVA(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, DPAA2_OP_VADDR_TO_IOVA(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, DPAA2_OP_VADDR_TO_IOVA(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, DPAA2_OP_VADDR_TO_IOVA(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, DPAA2_OP_VADDR_TO_IOVA(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, DPAA2_OP_VADDR_TO_IOVA(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, DPAA2_OP_VADDR_TO_IOVA(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, DPAA2_OP_VADDR_TO_IOVA(op)); + DPAA2_SET_FLE_ADDR(fle, (size_t)op); DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv); fle = fle + 1; sge = fle + 2;