From patchwork Mon Apr 2 07:36:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132647 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp2289888ljb; Mon, 2 Apr 2018 00:38:31 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+HgnWafpK0pkUVZOk4hsEjs1VRiI2Hje2E5tpSKQ/Ks2J9DjpUAGwUMHzQt6EnZDYEadve X-Received: by 10.223.225.136 with SMTP id k8mr5745326wri.148.1522654711708; Mon, 02 Apr 2018 00:38:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522654711; cv=none; d=google.com; s=arc-20160816; b=MfKDKdpmYXWmffmN7LZ9BoDgfHlDYTijyzpPZSFa/6oXuWw3jp9LrTE0hXkxLQxPSW o5udX49ZT+Oi2w7uGqk43UiBpkpqXoOPtchIbpInGkeN9Wu+jHzvORSq1pE1SJFUNQDX n4Guhh99Z3UDSn7xgqiRAIf6Pccf0vy5AzYx3D/ayc+CGrIhAyZyTX3eFgvV7BmwdY87 H0bg61+R3d7DrY+CsWf6IAc6MrMWm1lFI4+1DhA0vuO/hX85GcGuKnR4d/Fpjvm/unjI xJpATYu09EcaYPAaZ+VE/IRHY0Zk/7Lgi3Mgc/3pEdsHFCIlvA2cdLQqCeK6sc0l7veW T6zg== 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=11aojqlV7ytTsN0gqDYOej0VDrTZvYqDw/x6LTjT7sc=; b=szxCNnytMxB2YActEGpsIARV52Du6Jw9kI3gB1Lm4xGjEpSgPkyd0xqcVTOyU8zpUw yRjHA5Z00+I0yAHDo3+v9Ugv49BV0j0k1/j2Fl1khFSHBiy6nBLWKvQi07hxavr+C+NE iZJonodEY1GPbfyCV7vO2wH4C7V87je1GLs9AA6f5S5c+kEo6QmgMJ0CMbYLFQTleUNk 7zbNchUmUA5dVlojzQtaCZDfTw+2o7yFZrP+k6D67dWCElOYQaDwED654Bkg22cvS90q LpKwLD8EfgQqTO4TYJItELUO8gv0+QK1LwkLZGsUglTj4FowV33PpLMWtE1cqfUWP/LV IpVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=VG+L7Pw5; 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 a20si16834wmd.181.2018.04.02.00.38.31; Mon, 02 Apr 2018 00:38:31 -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=VG+L7Pw5; 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 25922AAA0; Mon, 2 Apr 2018 09:38:30 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0085.outbound.protection.outlook.com [104.47.0.85]) by dpdk.org (Postfix) with ESMTP id 09EB2AA9E for ; Mon, 2 Apr 2018 09:38: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=11aojqlV7ytTsN0gqDYOej0VDrTZvYqDw/x6LTjT7sc=; b=VG+L7Pw5QSIZc+5LKkOlQTHG5mPL2AkUQyLJerEixYPunSyCijM/igNWY6IDdx99RdISKDrhOwpV81jNc+l6q2rSxtdrVfeSmH2cwP+qQUHX9yg6REnY9ELUgsrklTyOeb/BbShaO89nKpqB29YRBJPGa+CXc9VAQFAqLU6mq4A= 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 AM2PR04MB0753.eurprd04.prod.outlook.com (2a01:111:e400:8411::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.609.10; Mon, 2 Apr 2018 07:38:24 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, akhil.goyal@nxp.com Date: Mon, 2 Apr 2018 13:06:27 +0530 Message-Id: <1522654594-2757-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522152039-32493-1-git-send-email-hemant.agrawal@nxp.com> References: <1522152039-32493-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR0101CA0048.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:22::34) To AM2PR04MB0753.eurprd04.prod.outlook.com (2a01:111:e400:8411::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: d5e320c6-d8ac-4606-c2c2-08d5986cb806 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0753; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 3:/ScX26O8CQrxJUwrLkEgiRiMxKrVRPhM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C3QUE0d9E1AWGDJjxXOlYWwoi9N1oB1KFXxS47zJKQG/y/QAC3fae4YkgzpzM7aUy6QCCT7aQMPSTdpOTPO6JQG4Ur+TpZ4aesELNq2N5eMpVaufnPHNaCHvy8pSYmTDLIXrC7TQi4PdSBCsAAvNOya29nVhEA3nCLzJuyMCp+fggtNmgcfhGUr0yM0Y+Lo54TODJjbnY0ORcYKrhwIgKQVRPBHEzHV+7CQG/QC2ZEGRrqfnsJV8UKR0eweAlM5OF7iGOQbjwzPIUOKOMhebkNSWaLxJQjBiiT8OypKYXU4/FbjUaONLsnGeFm3C; 4:dkQ6op/3t3Y3eIMhWNJQpwf2Nb+jYW2hSZH2k3/bjvUPaAMe9U0WXQ+G6YE4wLj6uIz170EAAZi+j83R5ypZgSK0rfcQ04us2RB0p7eNJ8YdMaBaxfy8E9meH6OMjjkluSbu9plY1vypgQQDMZ1mU7ayZNvfdgQcjWDqu0AerF+t6mYNpNSZ+B56Fp22ibVuroBSiNGTcFo1c9R8hi6plkXX0gmDX+AcU/G02F/S37is0beLL1LhJp0/iEpZpfVDl7vowAElwT6BaPa3T5SK4OjOoHB16H2sb6hWOOeScboUBfSbkKRi/kPZhrH3i+a00MJ+TpZlvYlcsl3kfK5s4bhxIG1WDjoevikgYe5nIJ8= 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)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:AM2PR04MB0753; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0753; X-Forefront-PRVS: 0630013541 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(39380400002)(366004)(396003)(376002)(39860400002)(199004)(189003)(2616005)(106356001)(76176011)(68736007)(16526019)(50466002)(486005)(5009440100003)(55236004)(6116002)(48376002)(3846002)(11346002)(47776003)(16586007)(53936002)(66066001)(305945005)(316002)(386003)(6512007)(956004)(446003)(105586002)(7736002)(6506007)(186003)(486005)(2351001)(6916009)(26005)(476003)(4326008)(2361001)(36756003)(86362001)(478600001)(2906002)(5660300001)(8676002)(50226002)(8936002)(81156014)(81166006)(51416003)(6486002)(25786009)(97736004)(52116002)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0753; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0753; 23:vTyLDju5T62UoLknKv79NQ0WJhrHvO8vzMkbl5fI2?= AZ67Igweoy6vWKXsFNPGqWqZDg3IRikl4IPyzx+5fUeAZAXeOlUzjJ4Kqes74V4X5tvf3K92vp8oujPvyetx1xUU6XI1UNyK7SRSb3bXVyLDN8+rbufioCNzS5cHDqbu0Vg2HNDeFabxktyaV6CCyYFqvxBBTbfeZIHOHLWH2uHWhotJRBcLviVkcFcHWp9oZyW9JSrpPsjO2+J4Ov31bAGKBputy9sngStXD414i+MT7y6U1gjnK4cxSZYh2ZeFSMJUFTsh1HnHTPRzTTMOE7vlp7obsLUMf+Qbhq86mclQXbCEZrC1rjAvpCPPuQbqKXeIABaMTyDXsSjbeAKOyWC1Cogt25k3Bvosuxit26Y9dzxQ/w40ZeQn9fg5FQR/hqA5JR0KcTDX6iIovfP4EDpmG61+PwZhhT5PPIrtKiwJ+x0ZRCAUj0uku9Kj7etT5N0zr6uKgEI1e09Bt9VewsUNNJyElsiRklLBYXVaMB0V3U7nbwFrhUwe0Zc3RY5l0LqXjgOuyx2KiYD6O0/4A0P3P2V8ZfYNtAAtcZ37bjx7e6rOAJbCt1qBZ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3cqyFRin1+MSLbFg9fock0XFZ168A6Obumw83XzyGjm38/pyJ7VH+2a/HY1d/J0IyEg8i0PtTSeNlpRy4cQMB4Gu5HHXGKV3/Hd+dmUTD/aR6OpcaHceknuMSdARa/xua036qHOqY9CZBcg1cPxTE7Ht0+sZJ5/eCCXccLdxoyxLmOqJB3WHZkx5rojVtijNXcj1L8YDo8CGgMFCXlHARqtymojV8hN+6WfLR04tlogTvANtNdmOt6Dy1A8SCGRYExQuTMQxpC4pqevh2rmEHWV2x5Nm/nL1abJsigBiCfFAWnhxTzby5raD2m1Ax2L8jwwOo4MxLjAvnH+A==; 5:XXWoiBTtroL2Ani0yBPqktE/O3fdCMbyUZaPDL5KtaqTiULkyspIkzsts76/HAJoZkBJJBcSJ5IHl6BBQCrUnsUH/t9u+Z4MO2wlXgXvrab2j/DULsMFdeBWLw6XGSfULJCpe6zRZx9K+Bn/leIBoTOikYCv/l00eya9/JjXv9Y=; 24:MQe/auDUooaXlucFoxJGFyQa+S8umgLBNHI5Tr/b4SoGd+jto33g+Tx1BxIDL0WjuFmzr1ueO+8UGjISgSCAGywNeILG1TlrwfQPkD7ZJng= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 7:zvDt1yU6hGe38iGNfPBEXMWNFt2+Wm/Yefpb+I7cvuYpdamtI56Xl7xi3M5yNtCbKNre+vWXHt/iytVOSMm597MG0cDSwt81+suITaNRbg/cTUolBUsWGEsQMFkOhm41InfN3Qy6oDPKG77u3phJDmObRgqhQ+VE5hLXgLM3AQAjU+hY3IIzB3ty7IbSncmDNFq5C/B0qJ0772bc9lUtkie8vatlbhLVfg1wVVAGyJHcuKUZwvyCJBUKiUgKWojo X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 07:38:24.3265 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d5e320c6-d8ac-4606-c2c2-08d5986cb806 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0753 Subject: [dpdk-dev] [PATCH v2 1/8] test/crypto: add macro for dpaa sec 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: b674d6d0381a ("test/crypto: add dpaa crypto test cases") Cc: stable@dpdk.org Signed-off-by: Ashish Jain Acked-by: Pablo de Lara --- test/test/test_cryptodev.h | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 diff --git a/test/test/test_cryptodev.h b/test/test/test_cryptodev.h index 8cdc087..b74f3a1 100644 --- a/test/test/test_cryptodev.h +++ b/test/test/test_cryptodev.h @@ -59,6 +59,7 @@ #define CRYPTODEV_NAME_ZUC_PMD crypto_zuc #define CRYPTODEV_NAME_ARMV8_PMD crypto_armv8 #define CRYPTODEV_NAME_DPAA2_SEC_PMD crypto_dpaa2_sec +#define CRYPTODEV_NAME_DPAA_SEC_PMD crypto_dpaa_sec #define CRYPTODEV_NAME_SCHEDULER_PMD crypto_scheduler #define CRYPTODEV_NAME_MRVL_PMD crypto_mrvl From patchwork Mon Apr 2 07:36:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132648 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp2289978ljb; Mon, 2 Apr 2018 00:38:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+KTr3YZHJk0LQ3ksFtwS3XSQnWedBVb8I8B6f/VrVgAQlwWh5hhHF+Ctp+gNjvGlmg1JCe X-Received: by 10.28.170.78 with SMTP id t75mr41830wme.55.1522654720989; Mon, 02 Apr 2018 00:38:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522654720; cv=none; d=google.com; s=arc-20160816; b=DLkGovKCCFKLmLAySYl2bXFUm8kXnOklKLVnZxAl1ES1YFcd/XVm9oMOj6qZSP5Ee9 Q0xf0WHDK3mMpQoF6/ApQhwMG9/a9DWGyO17PJeGoKL+E1ZIxHR203jqUisnyY54p9pd zEXcxaX63cocgUgeCkZ1/j5Wm8jrYZNLpSw8F/MmahEM6c44Cqp3PiYVw3e+JvEa6B9m sBoBeWEUIu17tL1ntIA4QzzdHciq4BQGY1RQM/T6x7TSHJtsFeCW5ee51TeF6eOsKnpn BumYJsyXzGZppja2h9/9RvVx6+KT8pYG4eQ+QTnpW9d/C+AhWxI9+l4iEmiJJCTR278t uVuw== 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=XRXkfCEm4BV+vLJmCg3Wy5vYk2995wo1c76yZrDNZGLU0DzfoH7d1wHsAeRlwofUb+ hLNM424VLD455i76yLG3u3onKUn7P7OSMZwTDXOlxlf2K+lmd5SQQciibNLXf3lscqly BNzwNvTd3pVoXKtQRtbFWFLIJK7gHnuQ3Q8ilgyS878iagwh3NsQ0u2YbyqDuvP2p1R6 sl5vXvzD5XJVHHb+qWQ65tHHZxGCe/C8xjwjPAW3ntqIKJPPOgT/ARHlt/C4ZrvjjY2y d+hmMVQX3htaZ80E5TOUzhlF8L1t+UXn3dfrSP3yYcbQwmVQZDXgz5NFEHZ9ZVM6YbG7 gCgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=axv47eya; 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 w199si15944wmw.196.2018.04.02.00.38.40; Mon, 02 Apr 2018 00:38:40 -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=axv47eya; 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 E42AFAAAE; Mon, 2 Apr 2018 09:38:31 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0085.outbound.protection.outlook.com [104.47.0.85]) by dpdk.org (Postfix) with ESMTP id 48E87AAA0 for ; Mon, 2 Apr 2018 09:38:29 +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=axv47eya5nkuRDV8L7Yu0VVEx87GjCHXw+ewYROsUfW2Q4889PDOe+zmIz5MgXwBGLCd/0FzI9YjEx0u3zsSwn2r2Gm3v6TIvOdrS05nIBBHHfdTiipZUn6RWcxxGylgyQzLIw4EDmJm/tzqDV06ck3MwOTAMq7/sgfoAK7qRr0= 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 AM2PR04MB0753.eurprd04.prod.outlook.com (2a01:111:e400:8411::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.609.10; Mon, 2 Apr 2018 07:38:25 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, akhil.goyal@nxp.com Date: Mon, 2 Apr 2018 13:06:28 +0530 Message-Id: <1522654594-2757-2-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: <1522152039-32493-1-git-send-email-hemant.agrawal@nxp.com> <1522654594-2757-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR0101CA0048.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:22::34) To AM2PR04MB0753.eurprd04.prod.outlook.com (2a01:111:e400:8411::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: cd36293e-db2c-418e-8085-08d5986cb8f8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0753; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 3:0DQ4rUYjVc4i9UwYY2LoUwhHWdEmol6aiOyNnBVNr+DpHwZYXnM8SaH0U94r01RpQy/OhQ6UYakj8Bqfo10yKl4njpFJVTb0CRGcJ730rdnku8Fho0oJxrIDV4wxEb/sGbmKf3dd2s3QOH3gKilCfoGaWwrGksSxWBOgvgURyLDD4cLS257ncBVAFulksSUL8qF5nhBOvFDBcBfce5ZyzoIrN0UKNrP5Iqr6/QlD9vX//qFJ/phcIdln1jdTzWib; 25:vNaakozAYYGOFJjZf206qh0G7qpqFTBhVIeQ2NJt6Me3IYp8vtnvHPVdwBjLR1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hohSbT5IubMtskbBv; 4:Fv00AWR9BkDrnp7/sXd2pQT3Us4mOqW3m8aFUUois0MXvTcXVBY20gSQWI8u9nQ/Y4ulejnmoPa44LB98nn6/W4i/uNMHhUN6N+kjMhd9g6NZU55rya9NBKARHINM176TdVhuOQROAFjptX2c9xNjqUpcIlzTn7xF5nJb7UbVunzdjKTl2auGQwpDLx5QV/Vom6/nHKfpMguE8pWjsPKVIJiDc+1QUDr7wiv7SkLfs66hkXa8vNnrIHeDhXLJM7o+lZiNNet8noEXsD8bnC1xG5axm5oZViyUOTYNzIrKS3FpzoX/7BBLeD3DAvxb+zgyZPMJN/bLydOD1W9sD8VuN9GUIuhzoRBsLW5/0rObNY= 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)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:AM2PR04MB0753; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0753; X-Forefront-PRVS: 0630013541 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(39380400002)(366004)(396003)(376002)(39860400002)(199004)(189003)(2616005)(106356001)(76176011)(68736007)(16526019)(50466002)(486005)(5009440100003)(55236004)(6116002)(48376002)(3846002)(11346002)(47776003)(16586007)(53936002)(66066001)(305945005)(316002)(386003)(6512007)(956004)(446003)(105586002)(7736002)(6506007)(186003)(486005)(2351001)(6916009)(26005)(476003)(4326008)(2361001)(36756003)(86362001)(478600001)(2906002)(5660300001)(8676002)(50226002)(8936002)(81156014)(81166006)(51416003)(6486002)(25786009)(97736004)(52116002)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0753; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0753; 23:eT5exWNci4Sqs/RnR+9Xc9YvpUinPcnAFbZCqh2PT?= j1nWY8lICFRoodOtv9IEDHFuxeT61i9SkXdSFqCkeKf0PwQPQeM/vGmaoaIHbTN5q/2lwEW7OWVKsrQw/NMZoZh0BIkgJ37tcH4AGq7kniModY6D0fUxAXHBxa8fMKXVEXP/msjrvGJ8rfOwjgZ0iT0eybPM0ilO+6rJUNdFhxpi9GXtA9ArCB9kdocbnQvfvdXWv3wuXFOzT2Y85tkzjdobR0DdXRJoW9tQtcJJ95WPb/eZF65V2ZljwXJFDcq1z19crF54R62NUmjyBuJ//RrdtZ1yPnZjBEkDb9VU7vl6nEkLu3sF5/AkWV57Jv208wqhbiAtPW9fOnenJv+Kxuzr+NOGjsB0pB0nsdZiAZJA2sqHFaXUDXapw1jF0b8ombW+WVKal1S9hOCW8wLYSYT2bDOeRhGb0Q4J8aYk7VPI5XcjTWCsC1V4ocSBYm3XYpsr+/vLrbFRC6rMomz50CxRzoUtiE3vXOMLZ5D2ZUVBtjkXqO1q3NUiHP8ObJ/m4i4+urOw8C1c3khHuSatFZ2UYwJAH82j2yq2CkVP2pGF31we20wlnNof5LHkEd+xyghUyJsBNL0tkzbdtJP1e8UyImZuaTsR5r3jCRY+4SbDcspThAE3FttFbrM6CpSX/VToJcaxGK4XxD6GjW9wA4atv30DRg+kHxjgD3bVmCs6ntSrY/O/a/GFi3M6XRjfm6Wl1TwB4fXBC+3mB3PqO147LrDbcQL56X9soUnzfJ5i2RqD9U3bN4FkE7b9c/n9Z0ui8mF8O5zpNO+SuD4FYhYZT95xZ6y41FMETTPXClCjgzehg1ZUZvSmhPmPRqf42oc6r/ndm98DqdOc5zLMxN8sH7vUZU5fXqp3OWCIplBTPiei7lm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F21RHh4VsBUpy67baZjTpg==; 5:/OIg6SJkRJCx9mP0rQrA5SEv066wi64YK0LOrv5geMCEzunZifRe8Q+3aJpeT+DjcmiagZ5bVbnExJZiHDPQWCu9ZnzJAGdozRa1UpImpl5TMP23jIb+QzVXzrzpljvRK7Go0UxqDjYecOSCQ4XjsZHEA7GPnHlem+4zKEfd0G0=; 24:WOhdrp2ot67VleLV8D3ps5ZNl7WuHmNFppwSBj/A3h6dktjYo8/Bv8K/nyv+BYA7boRzYpwFwwZ84zBFyFCx7YTjZp2lP4cvDJ1sarvYiJY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 7:zCMR5wfyU7rk5CKM/R3L2PUSl+FVu8x/siJoslAIq4uk/puaFfNaT5clr3tzND8T+LpAyWYf2ICHnUVUuyHJIMX1gfP6kMZ9N/xjB4lnL9sgSf2BLkyS8b0nXMwWCHuiaH7wG1G+zCxSHHSKARoJVsic7nMbW18z3aP/wb746zSUeaa3l42Ok90ZIEw+Qf63X60hL8ePgziDnedBpCGW4x0NaOYs7G3c7l3ZVJyhB9mVz7SoMUpEi8bjSksbtpmj X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 07:38:25.9097 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cd36293e-db2c-418e-8085-08d5986cb8f8 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0753 Subject: [dpdk-dev] [PATCH v2 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 07:36:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132649 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp2290057ljb; Mon, 2 Apr 2018 00:38:48 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+AXQBiJ1Uv1x077NwRjo4K1I0JnEfyV+N3MP0n4WQ3mrd/kBhMoPedGo8VKfndvQTtk956 X-Received: by 10.28.194.8 with SMTP id s8mr53852wmf.134.1522654728461; Mon, 02 Apr 2018 00:38:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522654728; cv=none; d=google.com; s=arc-20160816; b=ruPZ2OGs/u82PQVFNDoSnpqgVX7yXj7nlfGCpnhb4wbBcbD/09DAOk0GQ6gdHozDUw jBfwqrNFtU0oGN5zXX/HtiOGnQ1DL6J5/Bt841/SX1xygd8rdn1ZRyevpTzEkIz9V9im Ph3ML/k3oQVSedYcF6mGShJt8YYDkK4JExtogz6BpFMUz6NkGBC5tK2OP2f0CgKHR4Df WM+Iqpfpo4LwtzLFAwqU6hIAJDcRnDXELVlyrwLEXXyKFSHDKE6scYOovk6CxKsoLQK5 dbIxqzVmNPdbNwvjbjQDvoUZbttdWe5K6SHsQTSQkZhFQn+nxNQOv0hChO7PTZOzU80f VrWw== 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=mUl5nm+iw420ovwUpH9isdvpasSf6HMbWTrnNHtZ/tQ=; b=yAfOSLJ1cA+TMOoMxQ93Suyj8oPJSQxSvMIa539PElxyrTwz9xckjn3EqphuCQnRFC ynBCdBTDJqoM8LFF5EWBXRWyKmvvZ5Ua8/r250ec0I7mwMLx/s0/A7Y5P+PGhwM6f6pX 4AvlwKWeWDk+fhn3EJ0pCF6ChGFQQVF1uSIMEO/CLbWPNQKOINzrYE91jXtd8FRGHgE5 3QQ2eviVNnDD/GDJLZL33AnsEaFzVZysUryyCU+2upjIjU3JOe+pk2W1thhm4FMalxvl qdKpxS5tn+4iYoyvxJ/2Dgqe0rjl+ibCWlQNeV6Ddy/4Qnsczu71WYCw6HT0J75kkpFj MAag== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=Kewga/Kc; 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 c12si10834351wrg.275.2018.04.02.00.38.48; Mon, 02 Apr 2018 00:38:48 -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=Kewga/Kc; 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 A157CAABA; Mon, 2 Apr 2018 09:38:33 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0064.outbound.protection.outlook.com [104.47.0.64]) by dpdk.org (Postfix) with ESMTP id AC4D5AAA7 for ; Mon, 2 Apr 2018 09:38: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=mUl5nm+iw420ovwUpH9isdvpasSf6HMbWTrnNHtZ/tQ=; b=Kewga/KcRCrAKJ3E/Tpyor585wY/S7pFmR3cewZxcD7SOI9IPJ99vb2bOyOoEPnkp+kLgllUTinaN3+CeLqJIgRqjVgFRna3jZ5mzz3geKAE18KMd2K3ck9hJIxqsw2gxvtqePvGu3DlfJX4DWWYJS3RaS7JPUYm6xSs7PNUo+0= 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 AM2PR04MB0753.eurprd04.prod.outlook.com (2a01:111:e400:8411::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.609.10; Mon, 2 Apr 2018 07:38:27 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, akhil.goyal@nxp.com Date: Mon, 2 Apr 2018 13:06:29 +0530 Message-Id: <1522654594-2757-3-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: <1522152039-32493-1-git-send-email-hemant.agrawal@nxp.com> <1522654594-2757-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR0101CA0048.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:22::34) To AM2PR04MB0753.eurprd04.prod.outlook.com (2a01:111:e400:8411::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 47989217-cf08-48ee-c539-08d5986cb9eb X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0753; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 3:32NUsf4ZGWijiARF0H6m3dE2kreposzesV1nK3mI8EpfEH8F9bsKx3MQmCvHBt3TIjmgvFAWy6ExFvafIHtQhQ07YHCVxCzqK1wsJ+9Xru5BF+Ckzhf0dZbGQAwq5FWeFisKo/IyvScuKoDFE3v6GcCFh4/LTM2WGLZjJCSeO35RdWx27ytrx5+LfKU5CKMXaArlccM2k0gtBmjOk2zLwzAqJmDc8/ElPqbb0uW1Fr666M1xNVON6KmAXVnm2xSd; 25:D33o6yiBSkevY9PLqbHbHNs5kGNFRef5s+NnT9PyY66hV6bxT9QgcYI1BLvsQnpDLrGQox/6R+qJI0QbmpheiyWQHNzE8VxtPfSnPVAm/qQkPOnbGy7gt4QziTZIyBarzqI+/bZMq7AkEY6S+FYu9bGPob3ox//70SdS4XGRDuYGVMlKgsuEpo6pRexNMyY/YAUeNl9nYJ9oG+ybqpK/sqfcAmlP9heOKyphqceD80SYHrbO4D/T7NF9nvPgXseRHQNHgwiHyHfofJOdM+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ll/MNLBSl/M7yczmMGxTacqRV7ymT65NbDXHqhywecD6voWx3dJ0A23iD9IUUNfa0A7kuGFIMfQsjs58yzDqWWt31x7p/uCxtII9TFs9RJJLH4v2qDDRTh2D75YPk/+HqJWxeLJwiPWlwD0Z67NGv91oTP7hBKMHsB5yuqOZAigk4bo6EUIPK8= 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)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:AM2PR04MB0753; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0753; X-Forefront-PRVS: 0630013541 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(39380400002)(366004)(396003)(376002)(39860400002)(199004)(189003)(2616005)(106356001)(76176011)(68736007)(16526019)(50466002)(59450400001)(486005)(5009440100003)(55236004)(6116002)(48376002)(3846002)(11346002)(47776003)(16586007)(53936002)(66066001)(305945005)(316002)(386003)(6512007)(956004)(446003)(105586002)(7736002)(6506007)(186003)(486005)(2351001)(6916009)(26005)(476003)(4326008)(2361001)(36756003)(86362001)(478600001)(2906002)(5660300001)(8676002)(50226002)(8936002)(81156014)(575784001)(81166006)(51416003)(6486002)(25786009)(97736004)(52116002)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0753; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0753; 23:ZTntqHMdrEDuhutQ4ijpqtk7kYxY3DHxGWtvmd/oT?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MozvIYufMj5Q0R4SkmRb8fOtBhK1fQLX0fE=; 24:0AiN2/ghIebA1xOFKZe9yTO/4k5VLUqHH0DBehmQDE24K9UXIncVVbmae3TlHUI2k5UOZxKA3HPnaMTulQD6xoZUJfMTW8iBV0DUXlEwLto= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 7:glJpqVPc25HVSQA9V0OQHRDVx8UZRQOksz7jNJyui0Ze3IPGwC7y+QLs9c6/PF3qzJ0mWDjdiwihvINEpBergONrYIdad7p1RZmSoS8fAOA3eQ2JVDfqhfrvqAH70YdcF/nCpxd/jUwQvh4eRrnPa95FLTbS9iyUy+qQb8fjir91avZmKYfhwVvkbdXDWRaEsBZ27ll8iVR/xbBNVZs9o8A8e/ryj0Fle4lj+dYew77GpMDURIezFz8eMcsnOO6s X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 07:38:27.4990 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 47989217-cf08-48ee-c539-08d5986cb9eb X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0753 Subject: [dpdk-dev] [PATCH v2 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 --- v2: update make to allow experimental APIs 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 07:36:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132650 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp2290200ljb; Mon, 2 Apr 2018 00:39:03 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/NqK55F92UvbqTq41ik8vN3JlYS09/4EsmYBPqFOP3uLoJqm6hPgIupraVp4lFMSa5McXq X-Received: by 10.28.98.69 with SMTP id w66mr69420wmb.64.1522654743031; Mon, 02 Apr 2018 00:39:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522654743; cv=none; d=google.com; s=arc-20160816; b=Uyd6LyBjgCqaQvUPmahepfpO2AG3xScEB3e63F7wQdzyj2K7bEe2wxzLlpKj96VNQ6 3u3Jos+h94u+5/R0eUnRbnGpqsmSBDvhdz6stncHDMYdu++mFAW7C5n0OPhMF/7F9zvn mmrPPtiLu+tY47rzT49yVeCwzrcnl/v7Gt4HeNXXvgkajqPl8nUFTZDLEw2cHMyAra75 igE5IQMEXRh9Gwt7IeNaHTG3uLbU+UERNSe+Tta7z/By3spE2NKOtRqi70/bR/OE8oMC 08kNqCGsr0xaKBo9ztufaLduadC6XJn/zvZ7D3GSHdXDW5C1mj4ShlKA2U3I0uD0i99M llmA== 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=HG8AqKWZv0ogpp8iLAzcKFLqgAqH6pwHwlZXUhKgy+Orl7DRaN/LNkOhjRgMSjJdm+ m38+pnigEEV15OpzSTl9JT/9PAh/7UXK7yXkbKldSnqOQNhjO58n+cLDqGQNr4k0xfKn qZ57XhNU1veZNgVo+/ZJP1DsM8i5AKszqi3vxnujgOxLzti3HldiMyed/YVfSmj87YhY 8NZxtx/qkARA7L8ntXUJjz14zURJpyw2DpB7n1Y/fFA0tezTcH/FCHnmkLjlFXf7XI2B gEASDDl7kGzfN8S95i7hdf5nhYECVor2uH6KQR4YCB+u25Rb31cx2YBVvdYpPgfZ/Rid 06UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=ZE59Lqdr; 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 a141si17705wma.173.2018.04.02.00.39.02; Mon, 02 Apr 2018 00:39:03 -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=ZE59Lqdr; 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 297CCAAC7; Mon, 2 Apr 2018 09:38:35 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0048.outbound.protection.outlook.com [104.47.0.48]) by dpdk.org (Postfix) with ESMTP id 06BA7AAB5 for ; Mon, 2 Apr 2018 09:38:32 +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=ZE59LqdroM0c4kwwPsHEW3axC6acd6PnsaYVJzHmBgx3RXM24sAjiDt49cnQDlvXGonLQnhDLwcIBfm5QKoI95uNeGn24OFjnhUha6Kch+0TRjEyye2I9IaLTyYoYKiKXCQsugzUECKsPJEidsp3hNNLbHgYf+pd9ADWn1UVwoE= 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 AM2PR04MB0753.eurprd04.prod.outlook.com (2a01:111:e400:8411::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.609.10; Mon, 2 Apr 2018 07:38:28 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, akhil.goyal@nxp.com Date: Mon, 2 Apr 2018 13:06:30 +0530 Message-Id: <1522654594-2757-4-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: <1522152039-32493-1-git-send-email-hemant.agrawal@nxp.com> <1522654594-2757-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR0101CA0048.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:22::34) To AM2PR04MB0753.eurprd04.prod.outlook.com (2a01:111:e400:8411::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: ccc1e6c9-b457-4266-04d1-08d5986cbacd X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0753; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 3:is+sUArC0V9hLw/I0S6Vpkaa6W76VG6R2MLUXXDlbYO+6jxYJjUyO3IMCt5lo3bSzWCgjVY1aIqpf3k9cMiShx75w/tW348dVWMZE35zA5uG2VOgQKYjzy9Fi2jLIUjyy4SC8KGiawf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988uhM6vL4Z9Dj5b8ASOMmboqgAQ3mELKPweXBIPUmzExpUS/w560b0HTmtxeXxitAiHNOo9uC9AiyEGvrXZNRi8hE3h2f23ckse0NAGecM5nTGa8qVowgc3L0+8x0hd6PuJtSGRrcKbrUNKmXchfHS2haLniSyOLJ94Q4UvMe8lrmmWtAqidpFnEYFBUiijebILzxd4h4WAyR4mKm; 4:4804hQvHEYhiifL3f/9yxqmTgkGvnuJxlOmriAqZPJCPmk6DMkumABPUSIR3dwozB7CRxlVOTkUO2/dsWbYGJzA+N5RbyVc05dyF5pO4X7Vc4mfAEVCfPI+cqWrBpyFlOJmP1ZFFobupmDB1Ap846C32V/6MFsDtReutQcWid/3TQ+V4YcwkgNgNRUvhO8Irxk/OX5h3yO13NfGZOV7Spocr01NqGCXiyUozMl2N565/hnKAMIf41OHgmDXsSPb483lLxM0kv1Q297/TBal2ARidFxKH0UH01aq7/BmmDeeKnV3sZYXkq7j9wNug750H 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)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:AM2PR04MB0753; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0753; X-Forefront-PRVS: 0630013541 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(39380400002)(366004)(396003)(376002)(39860400002)(199004)(189003)(2616005)(106356001)(76176011)(68736007)(16526019)(50466002)(486005)(5009440100003)(6666003)(55236004)(6116002)(48376002)(3846002)(11346002)(47776003)(16586007)(53936002)(66066001)(305945005)(316002)(386003)(6512007)(956004)(446003)(105586002)(7736002)(6506007)(186003)(486005)(2351001)(6916009)(26005)(476003)(4326008)(2361001)(36756003)(86362001)(478600001)(2906002)(5660300001)(8676002)(50226002)(8936002)(81156014)(81166006)(51416003)(6486002)(25786009)(97736004)(52116002)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0753; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0753; 23:fjsrDTAdQdDhNal/QKpSCvGSvDYqkvK2banI/lbGo?= hroIR2z/jmIkfPYTUoBISf9HqPWtlzJsbwSRp4mSxNDTO/MomimitjU6dEXr0A+7xNzkJTrUgwsOvPDhiRoE8CQ7GYwxeTiO3GACXRLD0IFWeXfywD//RUla4B6Wb3yLakztIbTq81rAIhef4rujICByOckRCHMgk0fO+0IdN+fCrtqbsxkFR7YuTi1RluH25CSDn+j5Kdt8XFHBu9XUZtK4epFCap3ZW8pyqYauBtOKrkglfTzOIsocQ1loMbrUCjO+CSmrp7r/ipyKSWIjfUflNIfZPAyprkpNyIHhywq/+KjYjvYNzZhRtUXDiaeza7TvtN+QmXB2TNvVLviXCAphkNWpXjwtlGcb7maYcN0a1YXYciINNFhtPGheg0hnrVO+NmTLhkZQyHBNUhcr4901gFRJnzT2AxqynO8o9w1tQwziypCYQi1qzwZguMwb69p02WSgdcwp6JPmzTmKZYSVGLONHm65rJ5ttD3LsAXiKS2zjgZkgFbv/TUX47fGlfozdDwNsUGLxifLYhxeI7bQUQyQ5nDBg86E5RjDk2LC/zX+AKD7M45e61iu7izonopXpiMiUMVlrd5iLmUO8lO6i+iPEx6qc3OveK7MzwJQuDCFVqXSxs65Km0OKb/pdmdNDGAzd1Pth6HQnQYelQUcQaz3QrNpzE0Zfh/qWMUGsZJooiYsZ/MMmcmdQzyQQZRVuzm6uoVXjmB0VESE/vJIr6Ibr+ZaDHUMDeLj2Ny+oFwlNGXhRRcMO4+PC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9Zr0rPKPiBY0DhyAkqxawmwvedR2sIajEalGxQ4wIwpws38FkjhjkGiExuvRwTjggvD+HnhDAALCHCXQVWc2CMF48mEHvq1cxRA0Hr336il58stgex2N6FDK7apsZC2OSx+Dl+IBH+bSBZlHhO9KSXtcFTFSzl85HKqCMUmMjQ==; 5:9kh3sWC15kcLhfo/MseI9qV5IL8U13q0VzKDroPwSUKQcfH28OZN0wrf3iD3ZboR4YyT8A4l+LQPptk/eTApP4AONsCpFmJw0K9QITQl77n5g00BYqbE+PWZlUBGJa+BqGvv703xZxXrRsli0otLiZTlLwifClJLOpp7m30vC40=; 24:wm4JzNJ5TZzUZoPf+vZk7CCcTixQR1XklXBZk8VbO4i7DXK2OwWPGyjP7aJxhQb3cC1anJxleWQcew9624NFwK4itaCVBnPFfwBx9VYQN3U= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 7:IIHJy+XEBQIwZ5EB+AevS5uamH/3JfgUfeXy/3JY/ibBfGDCfA0Yg74GIqA2nkWMvvdobC/sIIrCKmTRsYaRM7j+7jTODciYpnZEqPp+Ew07lIj7xLVvb1oZCmw2mA6/w2cLB1qw0fKJhxXo2ZjY5exPm/fTyqi3/FYVVKRWnccTC3On+KRff39+hmXffiLh6CF8FVxFSk9v8u2c++2FT1Dz365lwefbYDFcN5/sPHWnU6p3XtN8b/dFFs+JTupU X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 07:38:28.9762 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ccc1e6c9-b457-4266-04d1-08d5986cbacd X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0753 Subject: [dpdk-dev] [PATCH v2 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 07:36:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132651 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp2290305ljb; Mon, 2 Apr 2018 00:39:13 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+87ScLz9kZAnys4OrUzSTWE5e4IOHYZXVVdHzOY8ci+YWb5ML4MgMhpNk/GkaPdhngXgEW X-Received: by 10.28.211.3 with SMTP id k3mr49211wmg.39.1522654753048; Mon, 02 Apr 2018 00:39:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522654753; cv=none; d=google.com; s=arc-20160816; b=MizAQp7YVcP7HqMcFTWXxU0Jlx90eYsA54FLv4cYOhx3t2RvwCPoTgI/2bzWzsxcH7 vlVpnBQyC4N3GMWpKZpY3kR6LgyEyilAbfm584eyYBY9F/RtevCvUehbIMMizSkqN2Mw XSuFq4XCtnLI+L7IvIfMSpW2mTE3RzGHVlg3PPddIEfmUopaRUoEQM9M8Bre3LfF3L+/ 0dDAbwQErpaR60eVDR0V33U1TUPB2vqor4quJIoCMLz/XR7/VE396cbhxPPLURWLiY/E G3XX6py9IHWYX0YimRYJg9E2evXQcUfWESRt5yM78wt06C6+StEOGcxtZlPTLQ+7Iuhz deQQ== 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=Nr7flUYGG4K6kdh3dAXrDik8AeKNPooxgF4jzzU+G+OFiZHhMT0VU0G5VySTLp5ngP 4mFGAZhKxPwjiOZih0xziKhX9+hvUMyMJMQUenFka/ZusCCY6WMO1ALJYQY+s2q2whxI CxEICp6lqLciYIMBCo0E756+Hf2So/++0CpcgdWrhpG5M8KNBGbP5+On96GYpgMZ+KOu Nadi8tiRh/Clwkdwb/IPKitHXnmdUjS+v8jI7TGy7KL8le04CwSJqsUDhuBXOeL4gNhm Ka5rMy9Y59xp9+tUK06IDIj+YwICk+9IrpFn/XCeoEgzhRPaZcd5vDkAFbe1beO33ngx rLug== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=q2PNfWo7; 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 c129si10997wmh.277.2018.04.02.00.39.12; Mon, 02 Apr 2018 00:39:13 -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=q2PNfWo7; 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 7FF94AACD; Mon, 2 Apr 2018 09:38:36 +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 407A2AABD for ; Mon, 2 Apr 2018 09:38:34 +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=q2PNfWo7AgZFCMkvOe7tQzd00QG4/p1ca9qbb9dmJY/v/NRj7l9xjNnSRuOt295yBPawmd5auZfB2n7d2JOtvdHGuZiixy2JGL6jH7HRGVltSCg3qjZbbhWhXkP/6avf8P01/4OCrzeWMYbTagqfD2e669j+F94h/tE8WkCfhJM= 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 AM2PR04MB0753.eurprd04.prod.outlook.com (2a01:111:e400:8411::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.609.10; Mon, 2 Apr 2018 07:38:30 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, akhil.goyal@nxp.com Date: Mon, 2 Apr 2018 13:06:31 +0530 Message-Id: <1522654594-2757-5-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: <1522152039-32493-1-git-send-email-hemant.agrawal@nxp.com> <1522654594-2757-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR0101CA0048.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:22::34) To AM2PR04MB0753.eurprd04.prod.outlook.com (2a01:111:e400:8411::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 17215ac8-353a-4869-c656-08d5986cbbbc X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0753; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 3:BlcBqu4OcSm7ct0t22TlZ8p1fX2hqfb9To9MEnAAakHOA4voGWh4H2PZYdOAUO9apZhb8YrvYE24vMzT0vOEu5LehwJQ6VgrO9rj3YtD8pyxEZh8Qze/AVe2XCeTTrfaQ9X1aEw4ifQ5G7VhLir4hwX5/W4TRFOBJKsLppS1idYlAMbD+sIfVHMTl1aPLXUVWB637wgbOKKkgp6ynPawngTcQ647NeFWbgtOsWdaLrexe1tNiR+0Bop28ANPEKCP; 25:+vON9eyjB5mbJChx4rsIa7oLoCVcwDlBtM3lU0GoCgCh6aQcWCs/M4mGxMNWLfFYHojrhtuk7PJnOzMotbcTHM+O7IJG8+lrCaEZA7Al2bDrUD/fUPYyNbfqKRk5yNeqXDhr4Cc4ceVunHO5V5gjXUhlaoqNjeyGx5mccxPln7xj8nRxXoiDHZzWFA0ydb6DqV1ls/0IbowZXZ2FrGWJHO9q4xKcn5yOEIgyP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w2NbNuuXdTf1ZuWE4qwtoUu7Vr/TE8pbFhnF7eVOPT5PbZpvcHVR4Vmaw+iVXbPpZTtPbpvHOdaRxs87XJXrdMpSg9fbvFthff3ZejziUig27xLvRAN+ryuy55oMl/prB2kkB/J8HnxCvfpj5qH7Dcl06SKqSOdDi0PnRrL1MHvWcsJCNeO+6wpaVnEOz0pMAWRXhKEiW1tkM1EHRIr/KhLZ2f/cCxXezBZ+DdlevjnhINCUNkXBdc= 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)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:AM2PR04MB0753; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0753; X-Forefront-PRVS: 0630013541 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(346002)(39380400002)(366004)(396003)(376002)(39860400002)(199004)(189003)(2616005)(106356001)(76176011)(68736007)(16526019)(50466002)(59450400001)(486005)(5009440100003)(55236004)(6116002)(48376002)(3846002)(11346002)(47776003)(16586007)(53936002)(66066001)(305945005)(316002)(386003)(6512007)(956004)(446003)(105586002)(7736002)(6506007)(186003)(486005)(2351001)(6916009)(26005)(476003)(5890100001)(4326008)(2361001)(36756003)(86362001)(478600001)(2906002)(5660300001)(8676002)(50226002)(8936002)(81156014)(81166006)(51416003)(6486002)(25786009)(97736004)(52116002)(110426004)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0753; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate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cLfB+XdTh+zTr2ZKCsef3v6/Vvc2cWBPgevUWbDvHdDdv2+LTa3GpQgK5foVOP4yKQ2rMccs4ngrPEn57xQKf2Q==; 5:Q4hDock02OXFR6nmdrYfEY9YGuwZ2cI2UdPbGZPPxKInRvHTi7bJiaOUUoxZUOri7lzuzvv+RM14Jxoo+3tG0Xm0AvltQGLsDRLVR6HZlUela6fLLmRbU7plL+hy2qDqcCPu2yi2Gsh198zJTF0H4ai7iPW3ABXIr2hDCFjZvyo=; 24:sWkaNIAc0tujSlnWBY7E1Pt1fBbbj/SYruvSc4+C/uf5O+/QD4MUmZL+EqOnndfnhoHc7pxPTaRqCQa4fmRckeo8qz0as0Q6Wwpbg+dHCCg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 7:mDL2qZ3Eje4xRR5wEohtmhselbYnyJIFUwiK/PM7QJwt82fhi9AFF1FnERpiGVVbgSw70YZQVHT6yKZPAKYnJK3PW479XNeXsT7QhPTPZ4+tA4e7sr4B2OqRrBwvGooBN/svmFmLZDENbdNPSd8iPtfqeLgKtkWvknm8rmnM9UMXNYhR8EN7IEiTlBrQ21fgMEvpShs4pqQKygLUmB8AhhS89EwY/wZ5Fn0tomelyIw0Q1Xdp0ijHaCETP3M4/lq X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 07:38:30.5595 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 17215ac8-353a-4869-c656-08d5986cbbbc X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0753 Subject: [dpdk-dev] [PATCH v2 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 07:36:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132652 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp2290411ljb; Mon, 2 Apr 2018 00:39:21 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/zcoGMuKtyfabtGxCxMYu9vDXPXk3hfy3BLOLFwb0l24OA38fx7bk5h9rYkGtONNeORToI X-Received: by 10.223.166.79 with SMTP id k73mr6025348wrc.200.1522654761126; Mon, 02 Apr 2018 00:39:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522654761; cv=none; d=google.com; s=arc-20160816; b=XGAmFGor9Ywm1jFypdiSXOJfsWqAiCZLwkYJ+ozL+uHbbbMKT8hN3x9vpqk8EDpJ7M l1PDvY+Ne/1TE23jMMtfUPvw9A+N6mGzixS/1/4VusscsnWSntT3DqZNPdBAAcrVpicn DjfrAsaqgytFGQ6qLSusUWkVbXMYClySbnNaD2TGzhm3VFvgZ/7StWiCz/fPGm8uq+hq lHhoRVtpyiJsQ31SbLORPRQvQM5sRlI0H8SDBXPf6PJzprwdBn00Bl3afOyzb8ir1Tfl x/04sndWHL1/OoyXI+LMiTWtV0kutcNcfBwclowz1RmVpgM7imD4+Nk5KXjyhcjSiUJc BLgw== 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=YFCIPrjY3e/g+ykkkkh4Eh1fq4CG1FUhNYfp1D4X+4dU80I5yh6CpCuReA6aGTcs15 I13WHFa9h7fJVf/5Sy4WBCuGe4/U3nggurkeSzJBbveG73w8DiCT8DGEKmOL1hkOhyii 6KghCYWl572NBxTNCJXgEwsDPbb0LdP0ZGXqzWQmfGGPUbf2y9FXGCEY8vhq0qqxgL5/ 43UQzrdTytMniCNebzj9q2bJWHGitZTBWT3Otl2K5+9ArfCgGiqOaqCRHlXyWeU1xI9e 56tjjYrsI70RHoJ615T93lKOH56Y8WwJdixJ34+/xKnBjSSJs/xzVJrpTyhN+ic8l+x2 x9mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=uNf8k0WD; 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 v26si22861wmc.83.2018.04.02.00.39.20; Mon, 02 Apr 2018 00:39:21 -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=uNf8k0WD; 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 C3B2CAAD2; Mon, 2 Apr 2018 09:38:37 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0041.outbound.protection.outlook.com [104.47.0.41]) by dpdk.org (Postfix) with ESMTP id 31BAAAA9E for ; Mon, 2 Apr 2018 09:38:35 +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=uNf8k0WDmclOfdhQ2PoqyWlbCGyNO9w2pBgKWrFVAZPYj9ze4pn7XTzR3Sol7efJ09EHgo2v82t0Y100X5oiWY3fzYtUI80w9Oqxc1GuMcOr1VAXccmyZRVKWphRJUqzGyahtxikQZycPYd3PJ4Z+Vz55ts9bZYyZ5UPZ9/G+3M= 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 AM2PR04MB0753.eurprd04.prod.outlook.com (2a01:111:e400:8411::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.609.10; Mon, 2 Apr 2018 07:38:32 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, akhil.goyal@nxp.com Date: Mon, 2 Apr 2018 13:06:32 +0530 Message-Id: <1522654594-2757-6-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: <1522152039-32493-1-git-send-email-hemant.agrawal@nxp.com> <1522654594-2757-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR0101CA0048.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:22::34) To AM2PR04MB0753.eurprd04.prod.outlook.com (2a01:111:e400:8411::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 38f0afa5-5862-4e89-c5bd-08d5986cbcbf X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0753; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 3:mutaLKlF/Y5itJhD5723Hj8Nlw4zwvWldVJywr0xELPrmFlOpAm3rK8IbLL4zlugP6gXq21tpW/l0Etq1eP3ADQ0RvIGKL3AUS4JBt5foCszfWN26IsXQfBYEw/siid6oqVrv1QE9wDcFahLL06AKW9AlcABAmBakolqhAYt26tqFU0biifJuD08qDnPifyv5/bGPb212UhbiXts8UDKHqHFcFgSmUjd3JOIYibnqxFJgeAWUsB+tGn1XMPlWZ1n; 25:Iu5/kiYixVOS2fihdH6gHIpvfFl0lWPYlwG9SZKJthtk4nTbjnt7MJflrkqbyueW5JBGjy32C/jH7AMsfmtysc094nlzjmY1ac2Qo/GI59AzvugjWvgMS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/XiMyQD1g0jZ0ec4OAwSY9L3XOGXR3N929AQdIBdgVe+CymnIzyPKSGYz4bRqhmFcWCzml/jZTwu7RuEBK4jCTsOxLAI4RkNO/q4PdBL0PUt0gnfib51NRnbRdwkQJpa5Tote/h+9DfuZD+tYoox8zHQL6BdRqauoY9WEYNVk5gTdEtYBmzjlMVsmaNCZzjvdWZuZO426A5VXhg+1vwTllTQIIdgntCFBamyy1gSLcdFP4P+uIfw3i3PVIUFM+xtRCRnMNofsztP/G6GtdKhvzWEYTLJ9xgXdk23dhMgX0OA3y8/R99iQ9oNbvZIg5I5uyUXIkZzfMhgECucNbPChEs= 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)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:AM2PR04MB0753; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0753; X-Forefront-PRVS: 0630013541 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(39380400002)(366004)(396003)(376002)(39860400002)(199004)(189003)(2616005)(106356001)(76176011)(68736007)(16526019)(50466002)(59450400001)(486005)(5009440100003)(55236004)(6116002)(48376002)(3846002)(11346002)(47776003)(16586007)(53936002)(66066001)(305945005)(316002)(386003)(6512007)(956004)(446003)(105586002)(7736002)(6506007)(186003)(486005)(2351001)(6916009)(26005)(476003)(4326008)(2361001)(36756003)(86362001)(478600001)(2906002)(5660300001)(8676002)(50226002)(8936002)(81156014)(81166006)(51416003)(6486002)(25786009)(97736004)(52116002)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0753; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0753; 23:PWKt/jnlsPq8air3f05/6if3nbB5asOpEMJg3XE0S?= CpqgZL8lbgssuvSK+sUl5QCCTnrvWOco0DlN/NBxJ1RRKZWKCSqveiErgzY/yM2J66io3EDr8BxQRHV2eCW99ZI/bLYjnlYVNIrAPNFbVEsOLe5arem91vzdyNtnadPOeCBDSl/+k4/H9Qji0vPbFZOmDWZ1/GzUnJh6mPFPGN3J0FMQq0SZIi+P8CLgtZLO0UaKLvMu+TgpotcnOHIYMWAgEiBEAGZn+7RP/pwjJ7x4BfLXh8wdAdAYUxL4x8Siv/3VOiPHVeZnWZRVLX28nVQENklGYj/UVaCNTo8f63zvR/keZhLBLxyGU9ZyGwKQ/c1BPuLpRLe3x06ckfP1NINduWejx6LChLGjGg5yPRSYSOQZWzjCrMlCyus5ooIdQesWyRAdx6l1pOT3EahyvTeXJWGVT4wU77i+o8UHgQt2LDf0xpp4dRvCHQRDY31xY+k+P1adr0eZOYx3ia+Jqw+Z7GiQ+5Ef9YhO68fOSKIgIDF3S9O9/2THr+6W07cMNmsD54nz60JqRsiEZc3Nt0KL2hvizaIXGp5h3RrElN0tPG9cEXHlLy7aoytHXSSXX0fm/4bfwXPtQilD5YRnMk3NUKhuI4gopeO/O/lWeLlOORyX6U0ok4UXOG75NF3YyVgdujBWYQiol/YoZ33EjiLVMxJXUIBIOALio9c9oZ7Vw8mG4iO6HSwtXgVjlh/bttbQAhvAmibAhv9mqPs8VW7WX4yM+F8IVnJCEkuJ5akZPsT+Hqo2w0o6dsRRSdlbWNHD0t8WB+0lh6JVCTdxzjBDDWDjuzip/AqZx0ZO37psr61s10UCUrK8rfCSaFBVE+pRC2BRzthEiQeUsGt7XwTT5+A9dzNeqksdzuj8NiCMgouMFlmL5qE++pnDQIm17ZjrEZS4rDQOUTWoQheszyku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wiCTWz+p2gKJr6JzCkrBLw==; 5:8tVt+i6KHCdMg7vFYrSBu4apXTrgdByYWQtifOoV/wiWPmXC13rUETMupyRdCos58CNOgKlKbrLMhCWLxsFlnD/JRtr+6MJAyEBsFOYJqubTv3QhEnFwfF0JbH8/oxo9JyvvKh4ttPLpcQ80wqry+oI3OqA0W9tXiUhc3jPxxR8=; 24:ujGT2zuV9PdDMj6mZ2p3aMWrPsW9W7m7rFju1DryCmKL6/8pvkZCg6itMvpQcngi9z5XJgeJLNXMRxkZ6pI0EpuHu/TbHJPZcEbqwq60ESU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 7:GC/5GNYyUI2fV8G2evpa3SdUWkLXVOMrqILqril4y7UdHmB0T/lLVgn7/5rk3JJlAkwcZ0e9tJ+jxM4DQvkyy89NHdVA/PQ0gNpVRcceVe4btEBhoFHEnCITzJxmPX3bbTSCwGKsKE05+/o34mkpV2ff760zSl8g9LmkqAFJs1nBSJ2ReEnOour1d2TZD3m/eqKVxEgKAEuOt4lcK8gZ8lME5hIZ9aX7jZUusSND58p6UNFboHukNaAC0g9QFk4W X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 07:38:32.1247 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 38f0afa5-5862-4e89-c5bd-08d5986cbcbf X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0753 Subject: [dpdk-dev] [PATCH v2 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 07:36:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132653 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp2290552ljb; Mon, 2 Apr 2018 00:39:36 -0700 (PDT) X-Google-Smtp-Source: AIpwx49eOwPlCd3mqqLoxTV4iPo75INyKwQ++Q4T2jGi/5YFvHxksw26rI1jSoAGuXu+zeO50ifi X-Received: by 10.223.153.167 with SMTP id y36mr5822283wrb.136.1522654776354; Mon, 02 Apr 2018 00:39:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522654776; cv=none; d=google.com; s=arc-20160816; b=XeeBu/RNTFD6jcoj6rQOQ0sXGgm5GZfO0S7tMNiDjsjCR4nOk3c5B5wfEbinCeRT09 y6comjlHak+mVeMpEbrFII+MSjRK/Dj7onecfT06XKGxSLVBAnT2WusFjDOz+jK1RAYM f4Tf6KYXUtPJfdgTej+ayVVSjq0Ghsx3n4QXyyXvNQrYGi9caKA2y9qMt902tibiOS3h yyPC/AE3SK0nshvfOkYSaoX+DyqIh2GYSxs204xMnxFcIgeTxoAjyaC+K3uaaB2L+SXc bGq0iUWo0fGyQLzR1dVBVt/M5oCW0dkBcU8YA8th4cfDnI5H6Lwk0gH8dFGRI/X31PwY hj5w== 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=AZuH60iM7A0uf2oc4iZPlgDFeAOTxtBQH+DaAscR1hzezCfcN7LzScIpwJtAYzrtmw b7tsR8liJ/bj/4KZCQZG7cAbKDjWSy+ia8bWz1ujvbBQPtUBxEJj6beEmWpbxdDZtK6/ YrPClhVTcwKkaT8x75epu7XKG9mSTMnKBw+yJLM/GTFPR5/+2Zr+8LyFEXnLwkTt4vL7 gMpFqnUS++BfRFSN+vRge3csURqjc32dvTsPS0VnCV9HMFVBPYkxttuVFkcRk31JWuLu McUaj/n8ve5OTrlIiUqQ2fUvCgIZaWd83TWpcmlF7zMXqwyCwx787z4JF9ffQHG6+iYo F/TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=c/GNJaPp; 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 a91si11189215wrc.50.2018.04.02.00.39.36; Mon, 02 Apr 2018 00:39:36 -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=c/GNJaPp; 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 A4FCBAADE; Mon, 2 Apr 2018 09:38:39 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0048.outbound.protection.outlook.com [104.47.0.48]) by dpdk.org (Postfix) with ESMTP id CD9A7AAD1 for ; Mon, 2 Apr 2018 09:38:36 +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=c/GNJaPpypD0h8bpHqhvT0H5Vgutw8rva1HnqEUPmiKxYLBiKd7ckABcXBNZWwatoQtlt8MGAoOi9qF74QHyiHirObxFxNhviTCBD9ZUkLrnwdpXJPDGR3Nn1hEe2oNdEoOEko7oiIhaSAmcgiIlDo/S3Fb9zj47MQbOcgBLur4= 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 AM2PR04MB0753.eurprd04.prod.outlook.com (2a01:111:e400:8411::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.609.10; Mon, 2 Apr 2018 07:38:33 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, akhil.goyal@nxp.com Date: Mon, 2 Apr 2018 13:06:33 +0530 Message-Id: <1522654594-2757-7-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: <1522152039-32493-1-git-send-email-hemant.agrawal@nxp.com> <1522654594-2757-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR0101CA0048.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:22::34) To AM2PR04MB0753.eurprd04.prod.outlook.com (2a01:111:e400:8411::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: ec3d7e31-0585-409a-c00e-08d5986cbdb0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0753; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 3:rRl5NJMtvD5nVrb22arW7uYfjOHyP2qOW/WHOfv3yulXnmX8ZAppN7QOrCn+EUDWdm/tBr0LVv3YgR5v/aRg8qEz6GtJx8oiGXhdwS4ZPGebl7pU9uh7dePeRZiWxHvdFJZohAsY3zY07gQ4NW6MA9sYrcfNiCVcwoul32eCBp795fXxjZzNN7IkPRDrj0EbwoLAZxgEJ0zlHegisTy7aRIq/xbvtaVeSKrJR7arBrfczOrV5h7MBUWwITRme+OH; 25:GI0/QO9y7xKJY1obNwFBIEJcVSqiwLZJJWKUjS9cUIx6jBnv+LqxMMz1jZNGO8lKRBbo5tzKKimv1I6hGvMtDYnFCAUTHHqZd/acF6AYJebqWvVer9AsGAMVrUtUt7byYBnbeeTxSphjY9ylyomckE94VeGwcj9QeSBMNoIAWODfnaqMznDuqHzoXBvRNmtVw5c5IPQJFCupp+4zsmq44yzxfVGonomhEMifeP3gSqy0znev2PeS5s9YxHtYnEWq4SO/MBjR2kM19Ani82doeGUn729ggTMZaCjb3+kqoso/xm8WoWAGJd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NrOfnml0XhxqdnsBSuhyj3rQItfjnAKXo4v0A0PHkh6+fN6PujXQ2xv+tCnwQTKyRYwiqBdqbtfiex77CxpOYP6x0FXNEKn3TYfm8rougVtV95q7prYumXsf4Ogj/Qh0qMzHeGJV+jHrPGN0TtuA= 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)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:AM2PR04MB0753; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0753; X-Forefront-PRVS: 0630013541 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(39380400002)(366004)(396003)(376002)(39860400002)(199004)(189003)(2616005)(106356001)(76176011)(68736007)(16526019)(50466002)(59450400001)(486005)(5009440100003)(55236004)(6116002)(48376002)(3846002)(11346002)(47776003)(16586007)(53936002)(66066001)(305945005)(316002)(386003)(6512007)(956004)(446003)(105586002)(7736002)(6506007)(186003)(486005)(2351001)(6916009)(26005)(476003)(4326008)(2361001)(36756003)(86362001)(478600001)(2906002)(5660300001)(8676002)(50226002)(8936002)(81156014)(81166006)(51416003)(6486002)(25786009)(97736004)(52116002)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0753; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0753; 23:siILsvY2iLu6LVDaCAiqb2vhukvx0H/4afXjANzw1?= 4tnrMMi7VpGEgp2SmnxLsQV5YTnikqwMJLO/u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A2I+DK3kCXrO4vHOZSj2DMFEXdO3iUq6nUCA3i2EqXZ5CUrdhmpTDcz+jbnEURqKTjVRRLljUx82hr1b4crRNeY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 7:hx3jpkqalp835hrNcC24gu7N++PWFSUErWYnSNKVaim8vYC6R/yhZOFlIoJpQ+FCZeU+zu9V7rdXVEFpVpvvk8b3N24/D5lhQhZhjbEFT7hrtGGyhjHuyDEn+beVRsC+Lju51Kzw/ty3yTCg/n8VgY5Q4XSbHsNMmZQo9kYUkXSqKuTLzDUGn4AJN5+qJ+EEQuE+heWPWL0jFMNVzHI6Jr58Z2+XWMuCv+8PP7mcllgj1UITxQdwdXh7ULCKcPiK X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 07:38:33.8261 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ec3d7e31-0585-409a-c00e-08d5986cbdb0 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0753 Subject: [dpdk-dev] [PATCH v2 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 07:36:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132654 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp2290713ljb; Mon, 2 Apr 2018 00:39:47 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+mpioGU/Bi3JCe+Pob81rR6J6MvAPMvrdE7xnt2v1iza/jQm2yk9+BIS17d+YlOu/NM5FG X-Received: by 10.223.187.138 with SMTP id q10mr5357578wrg.62.1522654787463; Mon, 02 Apr 2018 00:39:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522654787; cv=none; d=google.com; s=arc-20160816; b=X0mvdH5GgjtvtfJg8d6RJvCBKz5meNvoZK6VnfWT+cCQ9rr52fn9lNW4Uhto9vLigc A0BeEYTb1lhzP21gdU5CT6ZtYmNJoHGsFi6C82S+yXalMJLpWZMbH4dMdUnYGUNXFSaI pe7BewTVRPFD7LCVWxE2QV2aQF/ZYitU5/E5NFzT12CGwlTgFgMKY0JtJsw3hwffwV5G J2Rk7dMWoTxO1Vter4Ks2c8YXh3LmWitVmsn2N1po3ESjhpiskCzSB2jRZnzH2zRkf7W yo2ozcpVUGCaDCIVsCNSKp1N2W+sDHQIud9bSKhMP0k6VYYbZXnRSHCUd8HPjui6ljc/ vMLQ== 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=iuigkxmINobwIs2cgT1DvwWM3dT8En1NL1+lBUI0bLY=; b=wM9qIWNhtJC1b3AxBeb5dV1jx5edesztkf5MV58PRCyQVed+3DHBQ6FgGI78q0yzOU TzelItD5XCMvEAUOdgdG41cCujSJdPRAvGLGPDfrZkrB4jJbEWRkm/TTZjKWIx02sQtn pHMm7yxLu4gAj8UpcyAGNcav5b7yiKw4tZFt4S8tY2rlLNyf2zGsf5TdePakv1UZDvcu YFfDBZvX0QQ223QkTzQCmyeguBtC2DgOhbwD8Ydh0F3rIpkCO0LROXGvCoRhOIPZ7N9g mipfTpVcQqJhUtH77kHgsMBokhau4/7vrMhSse6AV0E2r+PoSGkFfe9+l/CpfhuAp8TY Kaug== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=QKnsu9eP; 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 b102si11116390wrd.490.2018.04.02.00.39.47; Mon, 02 Apr 2018 00:39:47 -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=QKnsu9eP; 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 E80EAAAEB; Mon, 2 Apr 2018 09:38:40 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0062.outbound.protection.outlook.com [104.47.0.62]) by dpdk.org (Postfix) with ESMTP id 98BA4AAD5 for ; Mon, 2 Apr 2018 09:38:38 +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=iuigkxmINobwIs2cgT1DvwWM3dT8En1NL1+lBUI0bLY=; b=QKnsu9ePgxM19OcB5pD9KgmIiCIpIzCr25+FdCd/Wrv8DpqIw3GOLKaCo7wXfzMlcmFN46KL49n3CNVn20ceLXqofdq52OSd3hz3AsmMRjM95F+S9aFPYmQmZAEs061PYqSMq88CBhnijvWD7wRJFbH6zI04puMeIfYugzro4tA= 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 AM2PR04MB0753.eurprd04.prod.outlook.com (2a01:111:e400:8411::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.609.10; Mon, 2 Apr 2018 07:38:35 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, akhil.goyal@nxp.com Date: Mon, 2 Apr 2018 13:06:34 +0530 Message-Id: <1522654594-2757-8-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: <1522152039-32493-1-git-send-email-hemant.agrawal@nxp.com> <1522654594-2757-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR0101CA0048.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:22::34) To AM2PR04MB0753.eurprd04.prod.outlook.com (2a01:111:e400:8411::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 42d562a1-82bf-4eb9-f1ca-08d5986cbe8e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0753; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 3:WH1uyK/EbvZts/oJNALn/8tGK2GbK5Z3r/kz0GFrOg0djJ7Kdsi7gR4kkRh7tbONPxBPTAEDLMNSmRpnM9wz4chVcv/bJZSkz5Ri87BfEHBQnwBa/TVTjljyX0ySHPV4TBDJeynRKfi8LRzm3KRiDYic9zDd/z2roOrz2DFbbPUlH82YCcMfOyyq1wt3auCMya5wvVoQU2O59CAXLnmr/zJN+WiNkrFgfK9L6whZB8qxUY4XtLpiXDU4eDwvo7OJ; 25:PiaoOHHPGxonJuBn+wr3diARegKHwLofn+nQxTRkHReOZSaxOVe3r0XS012YcB9l+so4xO9IgqWmN6bXeoSHoBBCsPUo5pkH/jByLXMhPXRYoh/hXJ/Ao+Buc3Zi0oEtNPZW5H1MmiUqZphIhx9j6qb932ebBrxSmY8jfcS4DxqSHYsQfYI7k5ibAdENvgztyySDJCCxlVEz0UzUGKRtmzxcRpkX8RybdvSR33/+LVEEpVl7ue6dzl6muOhPFmA/fB/YaaGrOlU8mmIuWWUevEewN3IFxlyi+45hnivQbu1Ri1ReQNxf+4MJ0gqYifpTyOtcTYRWqpZwXXc30uSvvw==; 31:sqrK321FiZU1v4SLzqz1Q58cqfrLZLKYtTpJrLS9cGwFpp06jT8SNEn9jGIttM4cm2D+9iwDS+ZZsoR13EsijNGge/U4C0e/l1Z6z68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EiN1drGms= 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)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:AM2PR04MB0753; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0753; X-Forefront-PRVS: 0630013541 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(39380400002)(366004)(396003)(376002)(39860400002)(199004)(189003)(2616005)(106356001)(76176011)(68736007)(16526019)(50466002)(59450400001)(486005)(5009440100003)(55236004)(6116002)(48376002)(3846002)(11346002)(47776003)(16586007)(53936002)(66066001)(305945005)(316002)(386003)(6512007)(956004)(446003)(105586002)(7736002)(6506007)(186003)(486005)(2351001)(6916009)(26005)(476003)(4326008)(2361001)(36756003)(86362001)(478600001)(2906002)(5660300001)(8676002)(50226002)(8936002)(81156014)(81166006)(51416003)(6486002)(25786009)(97736004)(52116002)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0753; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0753; 23:n4Ic9WLr7ZrJFdYT3uQWypaP7KUawAtGChIcluqW1?= +RV9GFXR0yMM5K+/adRliBLkLYKgWi5MfdCL924XKd6ef9ZY2WyiiAFseXXokSlYj2Cnh4qbLv8WbrQCITYOPdftLME0zBNDEN9caCn9DHjUX4ZOW5oyyUNT2+dpDcVRn235oEUrr91fdtjwTyFUc84CN+BQA8aDOlkKqAct3K8wfgBsMJ4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pYeJ1RY0s6eD0= X-Microsoft-Antispam-Message-Info: 5/OqNY+uI3EutbX29wzEo7X/ceuWhqMbP//ItcKJe0Fi/RwJcqig0O44KPUP3uyBH2VJNRvzrHzGdmaZJdIkPYUeoC5wO/zGXSVMhDy2pKipNvY9p7MQfCtMQXi6v1WenwtnSKFJNY0a8D6RD+AUEWCaEcxVE3KjfUbsPM4wWHjeh4edKZPiFDs57lVbDv/t X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 6:UIaTRLenJBxNK4YGNRCqqc8kiL3J5AObludKJGycTI3nzialBb1EOE9z30qWGgXpaxAQIsnFG9iuu2qlHEtqARFqc1O7wyea6O6ZqT/v+DEQPu9BXLpMg5pv/Jb7ilX+HnqFYg6uEtetxaCeuEbBkV1HN6jTn7GqMDRVejqkOJsndSZZAZhQa06eLvsyfdxqTKmwsHgHw+o6LEuhz6reHLPbMClvDNz5u6zoamH7Zrilflk1+sL38BQ4uybVJCDUhy3ht8ph1zX0bpmMr/cU3IKgmqKS7FODowbcRzHhOPCfljEHEIIX3dO43+hsUq+fT41+Po+VfHfy08B/iwrQccbH/eSGI6m87Ask1I7JEkP2rTV+9bYtYqK4nUwtEaHqjDCebcdH7EReZtrSyvDKoenrWrULcbH0g5FKAc6yHIyuKUB8ihCDBM/s8+NgcJjMZfwcf9OeYECExffflewoOg==; 5:+I9wyb8HMtnRfaqzndj+d8uILV65yhOXNXWfDdbKvwrzwPP6vD7zFhhnf+df4pPMTzq8TSFeKHHGw86bv0NlbGoRwruVkWj+ptcLLvRyvm+eKNRiXZ6Y0fmbXNutKiJqcc9BAtOshKj6Ozkkk8pUtQmvoP89B14Y8QZxkEeOZpw=; 24:0xq4MjoA65QD+uDlEiUQ/hG14HDsycFCxQHRyjCTLHqMXwzHMMwXYcziC9SBg8pxaP67g4Jf8novmerTshwfAiTXJmrvP/HAm0HlC4FwMzg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 7:UVy6n3ykmlzUphJ5ZgnZryfRTmJG+JjOYEs4eJAK45ePDPoDSdabmnimtCM69mR1CZl+h8/Inxl04T1X7R02wRiTyhaCljRFDVpLsY2LPtFWQ/ZGpyQv1QsCOQpYuyCAXkX4NIhVBYNTUW7T4gSfy4bIuhSi0d9I73b0npWh5+MOE786utS8V2fColJxbnGezyfPigq4L0zJI0EcnbIeaNMHnZXFMWX7vruzLsYulTLmG/5GREHMT9VuQlCUN/mC X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 07:38:35.3053 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 42d562a1-82bf-4eb9-f1ca-08d5986cbe8e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0753 Subject: [dpdk-dev] [PATCH v2 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..50a301d 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, 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, 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, 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, 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, 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, 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, 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, op); DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv); fle = fle + 1; sge = fle + 2;