From patchwork Tue Mar 27 12:00: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: 132472 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp4986989ljb; Tue, 27 Mar 2018 05:02:47 -0700 (PDT) X-Google-Smtp-Source: AG47ELspzu5RfNgH+DvZjuPH880JWWG+XH+xWsONG7iooaRkBzaJCOKd/AE/7po4f+IQ97S4Drjn X-Received: by 10.223.136.24 with SMTP id d24mr14741372wrd.127.1522152167203; Tue, 27 Mar 2018 05:02:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522152167; cv=none; d=google.com; s=arc-20160816; b=gHgtThlwG6Bh41bo8lXO0lt8ikW7shO3NvpfAjFx3U/aSm2+VDeAm39pN4/75Ek6oX HTl8GKlA/ugtK1Oi+Vwu9w0Hg853Q9MIMDVM47boze1Rxn2D8dmQeg7rYojkbK6uyMep CT5upn9B3l5H2TEMUkfuwzVbo61lkmgcflmf8Pnj2a3x0xQJtdQp3wFwEAD6xbt27ODc m8Kjv34XFZ3xWLdhVGQHO2grmQhV1XIz9NnhbZzVtN6oAwI2sxcKL4+A+1XBdxDXyIGY AIWEeANSMp9UsIJ6YWeg0DxO5AhfVzW0gZcMOb4GW9M3Rq06C5iJ959QIcxE/R3/kxMp AmIw== 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:message-id:date:cc:to:from :dkim-signature:arc-authentication-results; bh=IqnPs8VL+vDaOC3aZ/CT8eS6DiJNw4Rvhoql+dRdgwg=; b=LDle25gt7chZtvuzxJvFAgOfFYLWHJbkvDNd2lOaLGKDWhkX2HobO24dZnN7Efex3E UqqFJiwA7h/TQ5+ytecpgyq1kWxrSw3qt3BHzlqysUHxOw+GCHyW3i82UzANcZ1rP9gp phRtqe+Z47s1LReYdL6iAJVnB5jtYsnYP4r8uar65kcMuBasYW8kvy7CBX/LAWL9jCqX 8GKazm//P2b+xA6xxLHZrwaAuga/TiSpv4V+SmPXQrKePD7uALBX2BsWlQywD8lsfdqV PdIWDEO3VMSmwiJb9kCRkWpS/TFv3/FlMPln365LrfHc3PMHgyxl0p7nx7L/TutFkPkt CGMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=Bt8dUeVp; 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 y59si860451wrb.253.2018.03.27.05.02.46; Tue, 27 Mar 2018 05:02: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=Bt8dUeVp; 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 1FDD22C36; Tue, 27 Mar 2018 14:02:46 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0056.outbound.protection.outlook.com [104.47.0.56]) by dpdk.org (Postfix) with ESMTP id D437D2BB1 for ; Tue, 27 Mar 2018 14:02:43 +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=IqnPs8VL+vDaOC3aZ/CT8eS6DiJNw4Rvhoql+dRdgwg=; b=Bt8dUeVpzIQpiS+/NtIPimEAt1QtJdmgtKL/R+BTmM4XVbRF6caowmH+T1hyEQ2HD+tzaKZv+N+VbTOZDLDyZ59Skkr7+wo+RidMGt4nv1u6rmdQ1UZe2f76+jE5iydBz/O9fkGI5Z4jsL7XO12VbDsIgJ7dusyyE2JWB74lGhg= 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; Tue, 27 Mar 2018 12:02:40 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, akhil.goyal@nxp.com Date: Tue, 27 Mar 2018 17:30:33 +0530 Message-Id: <1522152039-32493-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR0101CA0016.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::26) 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: cfc15997-ce68-4243-1f35-08d593daa468 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:iUHAWMid1KBw0eY71Cj51mF/WbizqKYteEZAiYvlJvNALRL5tnHFxvdjCdSZ9f2atln602cdn7cc5vs3xs58cHA96jLD+QYch1U5n+nT235GCNw0EStOwhSyezRyU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R7QkXl94boN8LK/Hem8KiloBvgcWS66WazonUOG3rK94k4YfW9hCa9qUkaLIk5nTCpyHEzhlGXFh+4j/XIL+AAWQNnuYcHq6xEzEry9MRODBftc0o9F2Xki4j2/ZT2Q92usoJYq8MI8kdgabeBjCLgVBaQI/u/Qc7RIB0Z9bXQrcJrjdUoHbPqt3WgAgWoG80vOPLYOWvSny+HlFNS2z6I3dIXQzgbhI/A363E/3TWklGZhrZiKjOkKuIJbv; 4:Tekjtn1XP20AnG8bq0IDJzsj4/9AwAIrax0c2LOHbiH4XyoWHaTI4Xkav4TjhSsGqsVA32zWVFeUOihsywqgilmI3cQGvRYtAUwpm1K38z7QRowbnf6un0OCYkEwiLd/i/wwczHcEnChzS4ydF3bXaQs+lzVf+HCJY42dIE3hhmQDuEltgfJnTa1VmOI77bcPnafOqwFg0H47zUK8YDNBcigz/XrkaKhwwLx3cpTL+dPJXmLLAmmNCVhN+PeFODh9zwsYhUFc5Gi4cC6fGJe1iu2lWlnIxiooRBFnRR88PVVedn8k9ngcUAhPS9awFr6 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)(3231221)(944501327)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041310)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:AM2PR04MB0753; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0753; X-Forefront-PRVS: 0624A2429E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(346002)(39380400002)(39860400002)(376002)(366004)(189003)(199004)(50466002)(6506007)(186003)(16526019)(386003)(26005)(53936002)(55236004)(6116002)(48376002)(5009440100003)(3846002)(66066001)(68736007)(316002)(16586007)(6512007)(476003)(2351001)(47776003)(486005)(486005)(956004)(105586002)(2616005)(305945005)(6666003)(7736002)(6916009)(106356001)(4326008)(2361001)(97736004)(52116002)(86362001)(8676002)(8936002)(2906002)(81156014)(81166006)(478600001)(5660300001)(51416003)(36756003)(6486002)(50226002)(25786009)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0753; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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:3JIqmcWd5En/HHVIZ68s7jJrpAldgFVZeKYFq+523?= DDHZ+FYRweO6mMvBJfHg/OWeATuq/JIOjO4/3xma884WDFAeYIV18LxWrpfNo81i6KMMtDVU+91LqurXeJV0sfVR6HMb6CA97ZsjXShATWy7t6Ul4r8Ak6Wp9u605tIH50YGhCCOCPCq5YRIec8St6+QMnA1f7UFgx9g+QBhj03bXgwzMnlSXDSrIy/z+7UmCu0AkzYU+1joMv2NcvKhzIn+U7mCiUU/qgLUQi+Jpz62o4KZOHy28JAVldAQ89Ai6CsuBQadUjBXk2ce7DtVVfYFqQKwN9iv39EAh+r4R0C+YwR9vtJJMIwOFm1QfL7XJHnwc6cdLmBuRUpdQFyd1ReeenHtsnyBavgLn+S1kv4HW16G2LdI2CrBUvh766wsclZK6vrGkL1Wf5TEyodaMsMNGLJ6xgoCrXiqwzwCn2KXPatr+XZ0DTJZq7WwcjhfwnbgiKKsOdbLKv4CJ3UynbRLemTCOrEYsoolE9l/y7IL3KjKklc6BS5hHBEvMkbgzi2z5zWFvsPCSxrNeTAcOQpCR+a/Une5TqX8YjeBcO6shWq+MrMredBXp6WDfQ3kfk2FVhC77MCtbdEh8vKKiLYiTnwnr9DP5XEAOC0+7z0RzsvcylE6Lr+9bXvsCm2e0m24HxK9o2aoflf9cIWSCOgrAn8ZyZStF1XyIACsbAYK0xF/aYivF9hrIlDkr8lmMRs7C9OKiW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8nnTdPEe2ON9FyXrda+YPF92dW92PV860TioEXAVhRKC9fHWty2RpfLckDI9pc9d7bghZFX0KmKYf4TU5vRRtWf/eU2hk67sKoxG4WDMw0zSbAetS3kX5rNSrvdCn7CwT6Ob358YFeeuovtNjYyB7+DEn6Gvmwg/AHA==; 5:FnJ+qeiw5gpAqkfCzJjrKLj+lM0dWTigroO7ToetSi4kDdqEmZ2/dXxbh1KEkpNBpi3zzC8UNFnKr/HVMiH7cvV6BIehvKXWk57uUKy91ZSNoGPSPQgSTNyTK5RgwIFR5wJUCqgCL3njc7xOIihjcPkRj1Im3A2SP18dPzOnj1k=; 24:Pjs56nlc4U9L9hp0aEbA3LVohIeKqih5btSTC2PbMXABhDgJg8rAAJ7GWUIgjl5vzfbztPtrRH2U6otJPedoFoRUTZBCd1WxT4FPvc2qh48= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 7:EbLnn4bK+L4/tOhW77tL9a2hIDstTdonsPI5cFcJ/hf8PiuokCB6fYB62mjYaIlRny7E+5CQ/LIfm53eVeuF77rpGzXBO5AcnY0MeMJctUwV9x47U27fDLegx2JsrvUQymOm0pS7OBjRPY4k6/Kxuyy2QX5cXvwOucbtA+MGwC2ktaYwrknC6nV+fVoQZLLZDPl0YVO8mtJLgoUUdttfENHqErhWJo4sa16rwUEbZAFrbK7iLMrISdmg/FqOIXjk X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Mar 2018 12:02:40.2445 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cfc15997-ce68-4243-1f35-08d593daa468 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 1/7] 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 --- test/test/test_cryptodev.h | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 Acked-by: Pablo de Lara 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 Tue Mar 27 12:00: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: 132473 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp4987250ljb; Tue, 27 Mar 2018 05:02:59 -0700 (PDT) X-Google-Smtp-Source: AG47ELsr+dCXWWOf6b+DM4gWINXj2IUTLpW8U2GnbCykj/s65eAZ41OcG1Ev9jcYTuB6wbu78N6C X-Received: by 10.223.185.21 with SMTP id k21mr35395891wrf.116.1522152179434; Tue, 27 Mar 2018 05:02:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522152179; cv=none; d=google.com; s=arc-20160816; b=ViiUjPN4I2d/4Xp4TsRnjGuwOtEQyN2tKZeYVJIfhMwmWdmG0KCqbfJKKVeFWK8Byf MjZW5SiaTqPJ37wNI1hfD0CiwGy+XUMs2sDvVsIejGE7p5FdiLf/SCc0QjjdxmWutuWj nOeWIVTDKN40yrqHBHYAM8g3wI0KPGfu87bw5PyE72QucMVJ/RWYDEJm/753lVrLW5Y8 1Mi1TgWG3zDA6VkLvguotJEvLgHJp22s0ZYVOIcAP+bO9ZAM70NbEEJF+eBWaHxoyt+n pFBaUrokUgSTU3P6lz3qb49QpFZZucDQjvwthn4o2Ermayh1V5nQPKUl9FndT2olJiek Q5og== 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=zwDmmjb0OI6Dc7CPcP665yBgRctzfStc08cRBu/qu74=; b=bxRfx88GGjkNnqzfoRLXLU5GIt3RT3rKsMz8T/lBWFDOFGIO9DkcYQ0qkOO3DXWzes qUx4rJ/dhEEXBScoeymIg2QDDCgSLbLRWJMa/oedkzsoz+8TnsZI4htTUbjyVdmZK/MG pApUxP24oP9YXkCUlAAeB52ABFMyl6anMl3O5WAmSf49kSiVvxBc2vR7djMG9FnbH/Tr 0o5XII9K7RB8XMP7JLejgLaFBzUDVJmj+lAQ60sEK7ssF4Ogox/rQ6MH8qb9fNp+UxF9 m0i1HGPbMqVx0q1mh8PK8gFhnqLZOKsG5K8c10FltJTqYNoRZIOda7n81JoT03jBTXsF ZQLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=dKz1jL6i; 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 n126si6949439wma.1.2018.03.27.05.02.59; Tue, 27 Mar 2018 05:02:59 -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=dKz1jL6i; 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 6F1E13256; Tue, 27 Mar 2018 14:02:47 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0079.outbound.protection.outlook.com [104.47.0.79]) by dpdk.org (Postfix) with ESMTP id E7C772BB1 for ; Tue, 27 Mar 2018 14:02:45 +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=zwDmmjb0OI6Dc7CPcP665yBgRctzfStc08cRBu/qu74=; b=dKz1jL6iKK/zelvvp+NCvlQP6t250zOakqv0Fk9gGdIR1obadDKvvWLNiUMWKeySTe83pr6PDZwjnzG3qCUiGtzJ6u4oBirQi1xE98w+ljr9HuU/iwqwKlSiVDXT1/T+QFLu94YFkZX4OINLpsiTBI5Gmi5h/rN3EqEYTJ4ms7I= 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; Tue, 27 Mar 2018 12:02:41 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, akhil.goyal@nxp.com Date: Tue, 27 Mar 2018 17:30:34 +0530 Message-Id: <1522152039-32493-2-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: MA1PR0101CA0016.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::26) 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: 9f1b3706-5434-4b19-859a-08d593daa568 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:KTKfTjXdQ5+/3DFHCyNAJHjnEZqj8QzjhzmUkLtwW/C1lb7fgn32i7fBxmB0d1UUpoGVYMoR2HITQa3hsMUvUQFCPxLnabUgighRlGAphbyp3SDxYMWtoERr5jDJTdjI20o6gvgq/8uOTtMI1CWhwoiOGAqoP8aR1ybWM+VuP61MbUan5UqT8aH8AcIXUvjHFXsEQcxzEsJo0dOku1fjlcGJ3l9EtaYQ8bCYN25QhVe/UupcGMi57+wJjsfwsmFP; 25:/BC8/3abNqxbMjsFCGjl7l+iSvVZTCWKOC9PIIn5pDf45pHAV29kvBTDPgy9CXYCA9YrkL+jbDDMV3FGozzh7vlSBNDbQ5lwrF70gpcmNq0bhRdYuCuiC791r4D7l+Aqwu8X9PeeyZc1xs++Eo2qbmJUHSxvGTRnGkc/cdPNS8A+KPbL0ROTy+WpLxk400e5Yl35j9mP5eRlUS5eu9/FPPx5xf438+keAUnIUYO1tg9xOs69WDRPjRyXGDYPKGZmpm0sgagi5XLAc4D+/so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8zMqAG9xJSp1Gekz7QSafwzSCtXg1WnxGUrmDM26DJjAHifMyBe7RIp1pQ1SRtxbK8q+PbP4NlUIagfDc6mwfUqwz7VZZmegdnUYe++deALlk1lDWyxucOrhlEW3kEhQebd3ZqbWvsVUX084Irj4D27OT 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)(3231221)(944501327)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041310)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:AM2PR04MB0753; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0753; X-Forefront-PRVS: 0624A2429E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(346002)(39380400002)(39860400002)(376002)(366004)(189003)(199004)(50466002)(6506007)(186003)(11346002)(16526019)(446003)(386003)(26005)(53936002)(55236004)(6116002)(48376002)(5009440100003)(3846002)(66066001)(68736007)(316002)(16586007)(6512007)(476003)(2351001)(47776003)(486005)(76176011)(486005)(956004)(105586002)(2616005)(305945005)(6666003)(7736002)(6916009)(106356001)(4326008)(2361001)(97736004)(52116002)(86362001)(8676002)(8936002)(2906002)(81156014)(81166006)(478600001)(5660300001)(51416003)(36756003)(6486002)(50226002)(25786009)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0753; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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:BsdUhUZ3QRe33rY1FaHbl3OBkT0gm0HgEzX40ZBCW?= tiwar/c6NaKvPgr0+v6mfwjLnvHPkor+Hzl5q3y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ZH1wa88nkAIgC20ZW66pIe1QWtPoAByFY6C21DzTt1JYiZkHBy5yfFRSir0od5sJes2OaQ43jSsWGwdyZK73NCfC0mf1Y= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 7:8iWnZ66iq4709bqiSfsWwFFnACYpKcaYPzD8h0075difP4siPv6uVk7mZjP4aJQuTwf4wW+SOI6GIb8nJc1kN5KTTnlwzSxSChekUnlHrc5239u5PnX687A5ytsjAKj7o3B012GbzqCuhZ92ruCvFLSYm9cnEra/X1CtDHvUzBoiTEhhuo6W1oZORZQdkQFO+iwD6qJ4MgmZQFdbjMDKaI03Z4/JKQE3o2VcKcaPmYNBqTnvN9hbzcQZAD5vQa+0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Mar 2018 12:02:41.9098 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9f1b3706-5434-4b19-859a-08d593daa568 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 2/7] 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 --- app/test-crypto-perf/main.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) -- 2.7.4 Acked-by: Pablo de Lara 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 Tue Mar 27 12:00:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132474 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp4987561ljb; Tue, 27 Mar 2018 05:03:13 -0700 (PDT) X-Google-Smtp-Source: AG47ELut15H+vuDTjEm4Vo6v/Y5WgOBkyZiIY9+LErZTBbLoGqVNWSa7BXHtduRsG9+cTdNA91OD X-Received: by 10.223.138.138 with SMTP id y10mr31433510wry.44.1522152193391; Tue, 27 Mar 2018 05:03:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522152193; cv=none; d=google.com; s=arc-20160816; b=fWz1NA0zg6HXFBmg8wwwP0djUrhUAxMU+PQPu7fmTcwLmqyy/JWymYoqhF/L/yUdjr IvNwwt+v6aSsA0OWcu3eu9GaaG2wPeYTB3Q7PQlH/UwgJDDL+kZsIinrj0dEdj9WTqWt RNnmNcRw07Z42dcXmAHKLItGnicXvL+BzRIzFSbpZ3aClNcS0p7fyTTVtbuTxdI+Ecr/ val/XPg5pRphPkSaQx2qZVNvgiwkI12TAjblZ2r0BdGBbCLv/2OY8YKPtIggshNcisH1 lAPN2f61wgrHNvXYDcLNvgDOFbgfk1H3bmlUU6cDl2vkpiVqKBwQSNW2RnBNXEHiCito uNrA== 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=2HAxMGXdLuLFGkLWNQ/N+0VymnkVG1AkYkrF310elwM=; b=Sw6q43EsFSE9BBZiPkIGidIzSA7cnHFyr1zr28s6zefvhbw+/M1pqY6eY94YXea718 HV3aGyAugZcFAa5GwjEqxcYmX+u0vBpnl+8OIQkB0XwH0eKguvh9thZloM+uGp5pG7/V TWDRpqjTHnYG2AxHnPtd//ESk5m7Pvi+8PwrwPMkJ6uExPBQ4lbS7RLUcaQMyTDKhvHH QORSPJdUkGE0zt7FsnbH/MN0fFNHjQa1/SdOPUiDzRU0nO+zKCZVGIvY2S5z8Hrkm6Xu xzocfaTZS2j1BxUbB6OnzgA5FDMhZPXzLGF7NG48VzIj3/u5OK3oaupRLM8op1MbZ7RD wggA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=ATgemEsi; 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 d25si997485wrb.217.2018.03.27.05.03.13; Tue, 27 Mar 2018 05:03: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=ATgemEsi; 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 29DA744CF; Tue, 27 Mar 2018 14:02:48 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0079.outbound.protection.outlook.com [104.47.0.79]) by dpdk.org (Postfix) with ESMTP id 53FDC324B for ; Tue, 27 Mar 2018 14:02:46 +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=2HAxMGXdLuLFGkLWNQ/N+0VymnkVG1AkYkrF310elwM=; b=ATgemEsi5GH4rz3oT0ne08q1MR0L5TEocb88axrP8hfzZOMWuNchGVXk0ADb4JaOMLyHVwzBIiBC6CEnZmfNDyjmsDnnLF9R4qsah2ZL0g71af0fzI7vFFIxrYPup0OtdOn552lmKLIs9mdcQtBbM4Eed60cdWu9s3XIxR5bkX8= 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; Tue, 27 Mar 2018 12:02:43 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, akhil.goyal@nxp.com Date: Tue, 27 Mar 2018 17:30:35 +0530 Message-Id: <1522152039-32493-3-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: MA1PR0101CA0016.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::26) 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: 984be6a9-8823-435d-08fa-08d593daa664 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:HKJJylQZvUeEjzpVOuL7VYFKsIRIRy9jYw6FA+zTDe4mWyi9jkJCvpSuVWixakF18gUsfE123x9lE6+R8wn1ohO7AkFsYbS0B4aWJf+G23nzfY4hmmhoiHLCB79AZwoz89SaP/U/nUH8Bpkue4tVO8SudTD8kqLo2V4uRiNPP4dlCj7KwIORwp9AJlSPhrQbLN39nwDBCM9eMa2/h1MuBJQQUF9CXDMvUS6MRK2ttKpO+h7EomxPdIAuchrgPcr0; 25:IePwxrVFWBfrYBRuhfKtu/pL3Zg+/I3Wu34+iHf0097JLJTAPZPS3NfHlaTu/HDYDUv8AAyljMDO59uoPFOpFzPpVjaHhq4szDMyw4SGJrwZLTDR0APsrAybOGE10dW4fGjJAeVd0woHtCp3htzi92fqn68+Zyz7/dRSO22UEeArNtk3QgLHPql0n/PhPuTV8cbHv3bsbEftd60wGUtOPsUa6IA7sfnqaWJakAHcbIhXDdx9a5v5qLuATruMBbmMB98vYjZRoBTnxOxwntlHbqzWHPAjVDQH+RB1kNPKyCqTmkhP6nHKGb4rSAMQmiwK3SdZveYwvFT00KRlfvNhdQ==; 31:nQhc0KwgSUmsqXB16d27J1OP2waniUgsi8EGj6TLVOr9L1tiFBvzTijQJPJ6yDKHchpEgP7cgSrAiQbUbixdWsjXYvnkki91grNWZ+ov7AM9OaomY1KVRe4XHhMopvZ+desr+zWWac538R4qqtmt/aCYUgydk4fyegLoYDXWx1EG2RgaxHrFuD1QRqOPZzO3alW2IoKfWSFCCd2PE7f4d5p+06zmJdEBUoIGBsugVMQ= X-MS-TrafficTypeDiagnostic: AM2PR04MB0753: X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 20:KV3m7fczwKcIm8K/x2fSiRYEk7kpGlDAsJ+kB+c8+ohLh8dvgUuFsw7yOQK1Aal1lPG3jSEfjknSD15vDWmmdiiJBAgxRl1V51pOSU7TGCyLYuxCLUyZ7f4ydX1ZPG10B3x7APA8nzAVP/gi7Neb+J4K7bd+l4cIxdEAmoW81uGYrs5NF1MzXcBVuoNqYtzwDycrC3/iCve+NBCGfrO6FimcDet7Ub3DN4YZfh9hySHNHmhUEfuNY4WJ0o1UOqGX2hr+1gfXF1X0C+2IiMqguR3PplhJGZ0dAn3FsxD2UW53sP5akRBuT+b/0fy+l0RrcO5WdwNJZTudG43PtQ1SgmmNEAOEV3L6Iah+FxaWLEJZLFd2ixEOdrvklzbiuhf1Aunes2P5pjYlh8tXyjIBPoYRYdqUOlnvsVrowYDpqA9vRSyF0xGn4PMbHiBIBkzlz4yYoYHctSBoNA6Qc3QT+VNpYdL6quSAYb7rcV+1F0q6+1nPMzKhONR1UT3jDk3a; 4:B731R8B/k6Vb/W6223ShbkqCxGN+qyKAwMD4x9AO6TH9PB4a82E25Xcoj9KewUGSqk/F7RupWdvAsCfxgcP/g99a3/Tx2Y4RKlH9Uf7DyLJS2Ym+TfE46hGWEE3gAORw87ovvayRnEF5BD6i6PehS8j2vSJIwqPGKzmKrUJMxb61RbeEnUZFp/ylm23k5GYqnrDW/O7neBSgEX7rTu8c/FiQzeVTf1S9AYDkFBNXwbeZc9050BGPleZoYQJ5NlBdBKlp+H7dvB/0bdlRbTAKwPiMy9CI5+NWB0hA1DKWXm8gJFUofROJOzYsQt100JP8 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)(3231221)(944501327)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041310)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:AM2PR04MB0753; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0753; X-Forefront-PRVS: 0624A2429E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(346002)(39380400002)(39860400002)(376002)(366004)(189003)(199004)(50466002)(6506007)(186003)(11346002)(59450400001)(16526019)(446003)(386003)(26005)(53936002)(55236004)(6116002)(48376002)(5009440100003)(3846002)(66066001)(68736007)(316002)(16586007)(6512007)(476003)(2351001)(47776003)(486005)(76176011)(486005)(956004)(105586002)(2616005)(305945005)(6666003)(7736002)(6916009)(106356001)(4326008)(2361001)(97736004)(52116002)(86362001)(8676002)(8936002)(2906002)(81156014)(81166006)(478600001)(5660300001)(51416003)(36756003)(6486002)(50226002)(25786009)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0753; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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:2ovJzl6mjm0ZIfbQs6rkMmxDfPEBNXeBh5boccG+o?= EZN56RU4u+ighuyQ+VQomHw0pr2migtUJBPYDgqTOw9uJ0cmIuKIOm8H2h6pOVuRSLPdFUTShwoSLwvYJehG1vgsG79IzbcCTYCET0M3/n1HEhnQaBxBKTGRpNsuldVzfvy56YF1ZVP++bOhe1XjeFZUunPfMtf7nw0CO0retPObXec0LUNh55WzbRCX6GaYOnnNwCBQWA8LjX1AR+jyET8GrWfeoV5qH4Wleq5lq+/2n/1+qytkx4KmnPUVLAeSwQ78XSMr2f08UI7gme8jwatYm7af7HHUSGut/XQ2ne56IpH+uwAxNSLmKKJkKqDE51SfVP/eK6lfrt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SOTGsaoP1BgA2VdDFNhbJ3eCwmHcxSgq9yOXrQoCQdGqPloxOpcs/+oAlFJ2SKvz7sgId80swU0rsJhkrQq1Q3JYctOAdRWQDuhCcnZu/Bx X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 6:cM9b7UzVuiNdBLJ5wtYgoVoFyDdXeXJInbokaEuadhjOmQ9rRfKOD2p8WN8VTYUivGdrH2yG1faFF9xJ21lbjmEV6rctOovkVpWT5YgKradOt+s/bxs30vJCReRHk5nIlis/Bx28W13v6FaIJzi0ThbrgIIEQ5diKWcf7PgbrmxoJnwCSbiI/Erx560gUuUzxuy/8OWD55rXkZ92rQb+rJH8abewn4AbGiKvX45LYc2yOlE33dKSSrnPGYI1t8oWnGE3kiFobFYiTcH8uYG73Vq2sdEJUyNJjeTlr76Sibn68/C6BWVXSz45no2rZSkFdt90ec4pKNCLrlRa8IBwiaVWcARiCte6PD/xzpmG8wYXS7jkVdjgghkFraL5jsWkXhyFntUgGULSr74AnLBubEmVmeIe6lmEgayOAOdBDKb7McCGyEq1V0Y5twW+qf3y5cit8UVVOWuZQuBC3NxPjQ==; 5:EtHa2M3BJ4VHkNkFFmH8zBWfmt3jeet3w264x0dBGSzZbhc6Mj/C7pVHJWxW9vvJZmtg267lFU1WsiCz0HwB3rPfLNTS2kbmEBUHptSRmcfjEFCOgonYuH+Mx8aIwJVbzms6ixyfW2xRsVldlicq0i2A5tugROJ+2Wk055pYqRQ=; 24:1ZFC2p2iq4tgLSVptnUUk+CBzkPeUori1N3VjFZXBTGINlrsoz+SfryLMfaa2Qm+OQIqoLQmjD003zChu/Aw6j2/QlXNZ4WCmNjJNwBQD2g= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 7:6yxV+8YbcCKp6uwZO2myisELaeGp3XiQP/gZhWDA7Urcl62o4XkVQ5QJuZrnSp1/qIGsoccITd6XKp5Qbdv2UsePpRrxTIBgDt10T1j/m87CZARuzri1T+Dx59nluVtB5Pdy082Nvm9lsPLBGZam0ZE2cwd4aiblAtCm750tvagrp26Y7BLKVPZQTRAc7sPsAdnjauB134B61iU8LoWxwbMfi052XlFn6RCk/0KCozsxSYaELbpMQwhRQvBNon8v X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Mar 2018 12:02:43.5551 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 984be6a9-8823-435d-08fa-08d593daa664 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 3/7] 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 --- app/test-crypto-perf/cperf_test_common.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -- 2.7.4 Acked-by: Pablo de Lara 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", From patchwork Tue Mar 27 12:00:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132475 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp4987972ljb; Tue, 27 Mar 2018 05:03:35 -0700 (PDT) X-Google-Smtp-Source: AG47ELtbLJv/EFnjTZ3EzdCLwxYxjb9wyd0qN5+6P5rh8EukMQdcmczxmsWtQ15ySO8exlVqQe9x X-Received: by 10.28.133.193 with SMTP id h184mr14599574wmd.36.1522152214692; Tue, 27 Mar 2018 05:03:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522152214; cv=none; d=google.com; s=arc-20160816; b=C6wDWZ03JF8HyonBZ68+qxhDLdgyB/OJyB2GlAP3PmktxySS1HplxjB5t+IY8njWIF bdpcRpQf3wZzCrqBkF85ttI3+aMg5GlW8VUmwSjAngWo/LpOaunVw1g8IHIy02HROth1 gQeZPPBqoUlqZLIqBNYBFwu93yzuSG3JYBg4xRfUmsJAeD35zJZ89qqWrYDREvbzw8mG vTjh52WeN8Twx8m+1KiGprdeiuEbU4KotjuRCTAT7FL5VIR1gqtWi9mfplCFnCaf93q7 BNtj92+sjpYsU7CGr+iuUT4NUogbnI6jk0JXqfdni1O5s1mMvRMq2dY61cyCQnVtyUGy 6q8w== 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=JC4HfJEdDQQXSJ3N+uVpEO40k4Mwx8BCjaD3KZYy7L5FXfkzr27jspDHZSZyEfck8l XDy5RQ1T6BEos0h42wJWa+IVaVbXUbaimUJyE4GLpLJ5HhE1js8q1LmycAbeLW+H+mnT ycJybmdyn78VNRSRh4gv6YL6r3RRypDY3EWX1BkkYNNy/l4wNf7HtinoIZosvwsVB2Mb L+rDqsQExA+wqM1a6+94ITsnlMG5QhTvNODU/XQ+4iHHdwwhyfIcpUQ0ZyGFu7LQDk78 USEwvKuNPgCG+sn0NejveHevz8DpSmeoeiTD47+eBaoLjz8BFZIjaCufoXKPeZJ9Nd7h uzcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=uLkHnkL7; 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 h28si959492wrc.145.2018.03.27.05.03.34; Tue, 27 Mar 2018 05:03:34 -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=uLkHnkL7; 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 588B54CB3; Tue, 27 Mar 2018 14:02:51 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0047.outbound.protection.outlook.com [104.47.0.47]) by dpdk.org (Postfix) with ESMTP id 91D3E4CB3 for ; Tue, 27 Mar 2018 14:02:49 +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=uLkHnkL7Cz6NKGQjXpGjZ/swlhSQk2CF3n3RwUh92WYy7eaqD7nnhNFUPFXi555hN04NaWkPjVBYYBtIh8EqAHRn2eo6S4YASjx38N2m62u+1Q7zLM7OUmdlpN/Xl3kYPts+IY91QBsJlYNiPO0QPX54rk+WYq+xJLvBTK2UFgI= 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; Tue, 27 Mar 2018 12:02:45 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, akhil.goyal@nxp.com Date: Tue, 27 Mar 2018 17:30:36 +0530 Message-Id: <1522152039-32493-4-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: MA1PR0101CA0016.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::26) 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: 0c6156af-518a-4017-9b7a-08d593daa757 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:cSI49qxKrNuvQn6CeBEblrjsyYBfebYCBpqiiyWCFODkdK2EQ4tixllmpiaVic5je6nHQ/UF1gzykwDEDUicYABA7uFqtg7ixfLL5ZbBMdJx4TQXRvg1oRwJ2syGY/qQLk/saladMWUWdM2WgIXphTksOT62kE1V0RG3xzlkZ46tLS2fLKwxNsPpv1Wb2xly5mFDovu4p0ClMn9qQzsYKyAFO7fY2WEvF2cCAm1NmoR1rE136PGi6ncuSVltpPyS; 25:Nt1wriwCQrZb9gcK7xfMtwAY4ilm7ICHWiNFuVZA/ShrDe42xwkJEL8OquTuspwYlkrcYGPMv5TrpdwNBPqRZdehp5JsRcWozC1gRk1KkG34YxjOoJFIolSIdNRq0Vy6FAmTcryJNgjhkXYnM30nWjIKafhz6oZfcwUdJ3Is2CzMIHwmPkhHB4Sfs1A9ucho3lHmYbnLIxWmxlRhtfYCvvyXpgW1Gm8D92zB+dQZX7dpbG+vqgUEDaA6zrceCJi4FcCUhjDMEjPUrgE96ExzTupOmA7c7xk3P/W30AaA1zHIUUs8kLaA4jZuGyOxhfbUgWxkZBs44BAbN59evmtWZzHmdkf6Pcv2FmRY0si5LMk=; 31:OiUyedNwtEnAeFw63bLw4fJlTb3xWsaIzvAb9fa5zh8jkL4N3ed8GbhFMEPqEJDNbPJMggQv+NG1DxoFgsjE6LPZbWeGfsmKKyz21w1EDwBpY+LTuSsz8bvuK6/QGIsvVOpMcMSacdwfAsMnZR2wvxXG3+YVMUj16D2mXf4ymF7D/nvoH5F1YSZkThK3gMTiM70SlAB8qhzOcVeR+3+syIkmog0oi3qvY+3fvt+GvFs= X-MS-TrafficTypeDiagnostic: AM2PR04MB0753: X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 20:lL8vuPrZMfXHQVndVjF2/RpBzCZy4vv1Q54D1yeewl8dLXww+aUpEITO0Q7mkN9SFStjNRUujIrGeVaA0mUF46dJ6Q6SmkhFXBf1wQOtUcuLbVkPlculM/eSyrfZHXqh70dX0zryKOiZMUKnH/75p50eDJNLJFS5gCPCZn6dQg9c32Kfl+Er5kClqvaloEDrUc7w4AT/SFGHQQAPld28S5fUBhPjbq73Tdsyxa/EeUr8mO8UU83gD+SD/Kb/6NGp8GIOK1nps6BFNQIiAI6025P5Kw/B01A2bGQBOxLuEJ2kUu5DPu/7+9bd/lCY+S/S7Nzv6pxLGoeaaacv41UrltNtenlM8GWCST2lR0KsA/0u+D8hwRV8g3dsKnmA5uK/TMPe2TJljE7hBSXgpBDuX5KL+XzUPL+T/VCRp6XJDz2oDNAzr+rknP4ygrW6uzeToi/ZgYu1DLuVmVwjumzNV9DJ8kAFZiaKhzqbnXcIawpB7z0ih7V19Cvi7A+aN2LQ; 4:dFBgen5lo0zh0WVYaBnZTSokqtcUIFV2kEFuAcX39O+OVU0zk1BPVyGLRt35Ir3A/m5qSP6EB0ykmwmTiUjiFaQGuLqsaA+9kXgS6m4NZ97ayJvnrhhXIuE59JMLnAGLRbmlVx7KkZn17Yqugq0ZgeYr9fpC4+GBIZuFP6GqvSCRQc//osxKz1cDw4zGfSCZyoPyzpsHUEBmiMdnfTnrYGt6nW2blXam5UjyxNkY/tKB462qCMaioimYJd5AitQPp5gJUEYigQY1QlmLbMQgyFguPHqUATgpI4+HaMcO9jFXBVAtQxRCVHnACtrsmC88 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)(3231221)(944501327)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041310)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:AM2PR04MB0753; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0753; X-Forefront-PRVS: 0624A2429E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(346002)(39380400002)(39860400002)(376002)(366004)(189003)(199004)(50466002)(6506007)(186003)(11346002)(16526019)(446003)(386003)(26005)(53936002)(55236004)(6116002)(48376002)(5009440100003)(3846002)(66066001)(68736007)(316002)(16586007)(6512007)(476003)(2351001)(47776003)(486005)(76176011)(486005)(956004)(105586002)(2616005)(305945005)(6666003)(7736002)(6916009)(106356001)(4326008)(2361001)(97736004)(52116002)(86362001)(8676002)(8936002)(2906002)(81156014)(81166006)(478600001)(5660300001)(51416003)(36756003)(6486002)(50226002)(25786009)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0753; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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:PFdUcHzrTp8+aHW5dovwoOQdbFcLBoJ7yMid8M+pN?= OLOKbmr2IwdOhwftIITruJ3aR5BRihu4ZNXHqZ7nYOCl2pPxgoFOJhlayt/bSU4ykrWfoypCWpwAQzqPkxib2ibEOduWn7RoifUpFC/GJSLA9SVNPAPBEImaCsbz/bxFIZ5UUHaWlSGKoe09m2m6nvnqg9TkWOGO9HJ65jGm95qaFY0Xgyn9EOm1BXopXAW9ANaVfyq56zWqY8UoSegD+zuOlwMBDkPIjntglwyG4ZCxjkYmw0tmQsK6dQoniJsAfaZFDwvENIMVqgi1w7lys/m0zV3VnVzQSndHicnz2lxxMGZNIoOWgCVKD9gYNPmYrN5P/MDM5wCOTRiikoogSZ6VzQ2Dg8Mij72hVoK7IVok4yOiyUaYV1z0J+64h5Tyj6h5ik4OiG69n5JDoeAQdZdUfbgifX8R5U4PhhusX8YYx3xRgdZKRXFdSIs34Ssqrjrr9wn09x8ZEaytZsEgSh/JlOx2qU73POXOYG2/LqRlqfyzi/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exchange-CrossTenant-OriginalArrivalTime: 27 Mar 2018 12:02:45.1744 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0c6156af-518a-4017-9b7a-08d593daa757 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 4/7] 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 Tue Mar 27 12:00:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132476 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp4988245ljb; Tue, 27 Mar 2018 05:03:49 -0700 (PDT) X-Google-Smtp-Source: AG47ELuTL8z5Mo0kzWVlhKaMDRbc3ElB4LqydXbnkh3v2WB1OAHZnwywWQXEeqLTgFYC3Z7jvoJI X-Received: by 10.28.158.205 with SMTP id h196mr16903773wme.25.1522152229778; Tue, 27 Mar 2018 05:03:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522152229; cv=none; d=google.com; s=arc-20160816; b=NS4NwkcVv+rWmbKsZ/MyGsyQlZspFzkiffPHJpkRDDwE0IwX55/m0TvIBPIgdtCzkw IGUUet67Bc0jzJj3xHsr1MqJRxEsuBeEx7XBT62E/F/3vYhp4MsobM8j9h6SkwIBtdWb hPegbqgTP2z+dVJn+fiT/c2KDTywNmdxwkXIt3frxLa+cEaBFJjbb9ZMzcMxSpZ7ypW6 HQmZ32SIOLc4x7DWapXS8Ti048Dige96OnkR0DYeuiHU7elEHkYgHTgoYsudVomMZFLp eu2+4yqd14Ykhq0LrhFrwgDW91gK5QRr4npa54W6dj+73H1hvOPUx/pGQ0qEuBU5r+kZ fYJw== 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=Ph3wK35MHGDqZ1VUrnTu3tNtQeXovaiY6m4gchNfmjxnV84P3rUizby7S1UC2D8mvN efH8ntFt5SZTrC5mEPWU9n4k+m2x3EW8gpqH4mVmlKdsNtc0XXh9ux3M+LBUN76Js87i m5eI8FnnUOVNWxlexxEH9hmqeWWOw+EI6zwvkJit4UHbZ6oiGkR21MSkXqHzZ65dPjrW EsvlVraa5uyt2D+ShopnLzA2UwYFG+PyGO3MaDV9HtC7njhbBszaEvr4uNeMKvwc0xQI KJuUcJXF5RQPB9caXGprQQSid/IibsCqmyFiN5nJW3wH9tn6nkwXNQC6M/tT36aCBNXn c2nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=QyHmP9xp; 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 v185si929471wmd.154.2018.03.27.05.03.49; Tue, 27 Mar 2018 05:03:49 -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=QyHmP9xp; 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 AC6344C8F; Tue, 27 Mar 2018 14:02:53 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0059.outbound.protection.outlook.com [104.47.0.59]) by dpdk.org (Postfix) with ESMTP id 8CF6D4CB3 for ; Tue, 27 Mar 2018 14:02:50 +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=QyHmP9xpVwlI8K9V/qiWlQk20mnOFDGvbALnzklPSR9epHG3hx7y2cz5OM6poOEn0+tfokMoVAKUHt+WAF3bXUqy3hFZlvKoGMnyxRhmXlFn4zKtDBoOQIT0BqyJf992MTyH7hVVApbXjdM1aguutbVSmUAZi1oDPXQne2pYyz0= 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; Tue, 27 Mar 2018 12:02:47 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, akhil.goyal@nxp.com Date: Tue, 27 Mar 2018 17:30:37 +0530 Message-Id: <1522152039-32493-5-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: MA1PR0101CA0016.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::26) 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: b721748c-af58-4090-c19e-08d593daa8b7 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:5ZxcvHZUYzdhXaOqbOgaBqTqrA2Np1oOnXa7rE9Bc00y19Xg3qgJQLxoHjiL4deBU4R2dud9su4/oDo4HQOjT9rypmCwVHrk/1cREVtuSAqXSZF97KTX/Zq8fredumbFpZHSCTxUc1hUFmQTXnXIQlwj3lBrKw5DFLBIXQkV3Sjn/Q0Bw1EbyQQqISaum9RWmXCjwkWpzNVxVvPXiRQGs6lLTeauwAG7nulGoJFucsDftF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1mdm8Ko7fssCO8VRUI9MnAdJuTlszIJC6aM1W5gla5fyyv24ZIGuhBN1cqGvDf1VWxsSSBcXxD7wuxHt1hW1wusd7a8NnJ6qTrHgmDc4TX+VtuLUz5yUscJnImquVxbMB/; 4:tYWucUH3xauQo81B1P9tpiS2iGkTVnibq+DfISfJLuqfGMv9rsYX+2bsACSC5KUw7dTxBpdalEp5iGTtDlI22lhBYNFJE9MWiIfYo0A45HDMUYmyLXlKy2DeME1GJcKU9sDfKQSU7esGcSJKr5uDI9yypefy4STUqpMp8t7Og6bpG/FfcqKsu7T2bKJ8DmPL4ri2KkTZe2/i4NelESjGQSEnJ4sxyVzTaRdPZ5vYT/OPA2XTaIRMeuaLyRzwCXoR8PfYtAkfGWJfM7K5lRgWCNVu9ADsK+VVXSTpSiS1VtMc5otH0G4GvjbNdkM+HhTfB5w3Mmge7ogtnwGA1IlUsoW6x7ksAKRP7DPU4O9Dcx4= 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)(3231221)(944501327)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041310)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:AM2PR04MB0753; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0753; X-Forefront-PRVS: 0624A2429E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(346002)(39380400002)(39860400002)(376002)(366004)(189003)(199004)(50466002)(6506007)(186003)(11346002)(59450400001)(16526019)(446003)(386003)(26005)(53936002)(55236004)(6116002)(48376002)(5009440100003)(3846002)(66066001)(68736007)(316002)(16586007)(6512007)(476003)(2351001)(47776003)(486005)(76176011)(486005)(956004)(105586002)(2616005)(305945005)(6666003)(7736002)(6916009)(106356001)(4326008)(2361001)(5890100001)(97736004)(52116002)(86362001)(8676002)(8936002)(2906002)(81156014)(81166006)(478600001)(5660300001)(51416003)(36756003)(6486002)(50226002)(25786009)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0753; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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:Izu5dJ4qKCvwkl6l6YU1qE0FAHWrHmiXx45EAE95J?= bl+ltTpGXAjZXyiSkuQleBI1IG1O/UbA87Ftq7b5LEgIgdX8cAXir5t/oCAdyvUBS5Z8+hFMDgXMz/2s5XM0tCJ1P/xmlbvIEoLv7lOEttG3eAJVjEjR8Ka0CKSYEqLmPpr5DbwDO6REy1kWt70OwEJlJfXFOwc1XSQWnGLhzAiMYWQoH1NKK9hpr5YNEGNA68Z60H9LByVEgaIyTB2w93NEnqD0B5wujd7gusoW8waiR1ShiqRGEvt9Ht8IjoSwjxCYtqCWMK8rqRyrnSEUNU+tR3Rx1ZZPYhUiIacZu30X5ltPxdseIMNOy6VAldMSRNmZw3Pr64LJXAk7rX+S+23JLMUEQCtR3FQyGk4oL2hsVSrqLWmp0Cn6UqhW2bNoUUyDsrZBIEzq3NgdNBT8CO6s7nuNUBs+qhvRzKZRyNEWGH+nPLCvb6cUoHHGbUHBHxnSAtxpJO/xjcV34MtxZmyhPeJiUM8U90PK8MLN0QAI/KcYf9kCwfsqv3P1UcRGCxN1iw9ELsp3YSFNECRYzyXBl8pTf8CtDvGS01P+0xZFdWuLesBK8q5b7CU06eUGulJ/AqT41Q3mKkQPkKnNzK6O8UTv7ORSEaC/M6+vmlJwuYnyuGSYDZOHrn+oPCAcrMmcIXLuskGOt1LlrzHGU6uq9aR3vq8dK7QTm0YoPEm3Kp2aGd9pKt1luyVPcVVo+5mtGLfNzMMWNssFFXya+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2aiPku6SPlV6AeYNwtJ0jQIr+B6yAqwH45xu6OdkA2mmeC21/0LagcDMLGzYgTR82MYkHdjGOVzH0qlIWHCdiQz3NCQQCcz3HSlsSN0DFD9wXHRGab42mFicMuUio1cwI00ySJVN0+PbKHYFF/r7sgzWjFxLZQE2wLRxIq/tLDiKJoByqAVGN+GIfSRbJydvhe9lDy9mybdQe03SIHeOpetKyF6m+jOCi4vdw==; 5:yQ5N7qPBN1JhximxlPgBfI0llWS6vI8DwwuT+leehzAQlFgofyt+58MOJOxyUPRt/0gcYk+98e6HfWNrFw3IjtIii/AcF08rW0Ro95hmC1uv55Wbqe/eTnR6zecpd0mDHAKPWrDrFCC5Q5qmpEPVpgvnXWqb/hdNweTUIDGPyxA=; 24:jXrhVQW3sz2r6oZTaa2armr+vA40bqreisvQJQwwK2neNvNWiSpZqVNMe5/Q33MNOmJhVsfeaDtO3beCyLcrxzYE5S+hV50ePrl7tuO/L34= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 7:aWIQdqDG4WulPgSCTgf+Wrgyi4lLDcaBCpkPL2JlCOKHMAK324tX3tJH70CvZdqWN4Txu0kksp44XKHKs0hN++A0/ryxN8691S3kolmN3DqHNXS07i7YgIjkEmGvRdqXuXvcUP6iz9BFk5hCt6IBh5HiPZvqi+WU1szgdiI/MprqSCql0Yospn80S8tqVxKU8FBXeKC8ooW4JNB63NaTpVYnGWEm54IvidTqMSrm/Dr0tJOW5GHXsuPNeLjNBDaC X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Mar 2018 12:02:47.4703 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b721748c-af58-4090-c19e-08d593daa8b7 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 5/7] 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 Tue Mar 27 12:00:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132477 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp4988543ljb; Tue, 27 Mar 2018 05:04:05 -0700 (PDT) X-Google-Smtp-Source: AG47ELsjR75Kw77rm/8N2y+3hQVYUseu8VyaXhyB4cCWF98epjtXCYJGlGQ75K0MvTvsTIEBJpaN X-Received: by 10.28.238.2 with SMTP id m2mr16912925wmh.135.1522152245573; Tue, 27 Mar 2018 05:04:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522152245; cv=none; d=google.com; s=arc-20160816; b=LJlr5l7QxrUtGqY2Cwtu2+UFWUde/7gLx3gR8jSgujpjF5KAI1EcMbIrrKWvwr9eCf yhwI7zoVrcTLPlmlhPRqEGIshfiTY6bDLl3C7lpejujneMjzbM1M2k0rJDHFkq+6VTST QuunirhDk+SVoOPMacW2ZoOoSLAWxJ4rh/xKzvAJ6Kb4WuOHezqmJ2Y8J6N2uObn9GW+ OZvz81AiNRvjXBcRM294yW3KBbWwt8qlefugsq5hubntGEooVXfmXikoZJXcKuzQeN2x 4sJCpjhHT/jY+w5Pjy7DEkC0L8j7voR+3fEWSkU+Cpl3nzB+hhg/1o68++YtGTCe8umT P6qg== 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=dZJamcB3ZSvkwQUhQ5QKQUCR2c0klSC2F3Y+q774T9hvkK/xsfB8BjFKJh42jGQ2H0 Lva77HbrQ5Svh76BCnTYVbVujG8qVho1oZMS4byvCqS3gIsbbDH1NQNVRceidZSU3v8p HmK0NdYRVilSAVOpok1H5LMnI0XQccoKvbkBFzVEfr6pOZexemfBkwnsGuuFQVnh3LGq 9TDH7aMjskEN0EZ9X1zIoVK1lqD8E+yi3hwLgyhRaPhcOG1WaufE0iPxvzvxcv/dsGs/ fopHkNvcnf0WDKUZ8QP8dQazudGSP/B4BJsjNvUY89OgexJofxyYwM2WBBsyqUxvxOkv vGXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=k2gV6q8P; 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 p79si982334wmf.258.2018.03.27.05.04.04; Tue, 27 Mar 2018 05:04:05 -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=k2gV6q8P; 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 0247A4F9A; Tue, 27 Mar 2018 14:02:55 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0067.outbound.protection.outlook.com [104.47.0.67]) by dpdk.org (Postfix) with ESMTP id CE2664CBD for ; Tue, 27 Mar 2018 14:02:51 +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=k2gV6q8PtdQDFQoz4Px2aD4B6SmdYo+nq6JMh1o5u/Yxkz29jWh6ud+d4twKCMEab2BZXFE52/M9PfrSFbHi8ySNLWuvAEgulqa42yFzDBBV9ydBxuzvcTWbeOJhGcH4SnEuH2fqTa5S+m9H2BYkds1oQCp2j5VuUaHiwGiDvTw= 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; Tue, 27 Mar 2018 12:02:49 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, akhil.goyal@nxp.com Date: Tue, 27 Mar 2018 17:30:38 +0530 Message-Id: <1522152039-32493-6-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: MA1PR0101CA0016.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::26) 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: b9340522-6507-4920-3ae6-08d593daa9ae 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:9XBL7iX2OvEcKcwcPKP0izy/Jf3oXtakBP8jfyLQfFA0w1YiyGRTbWJR1103EiSYGlOH4229mjySNvyISGUvKwNXo8qzuh6CDkLSejoj+cJnX/hcNxl0TrZcDeRJIOuIO3sfnkzMP3KKV1Hg5yka5pgkjtgl1lg0iVP1fThLCa3zpuewo062WWtr2d7/PLGJolKvoNYZQg7uu4uti0++GUbzzSkQ8EMC+YzIlA/YczMOtwNvjZ08skklQFK0NrCK; 25:6L1VMdT1uMj7F+ni68xXpuigWg9uzaLaXzKMZ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YLBXUDlACNSyfd/TiC9RS6erBQ1kTJ0dn6zhDlRW0mZ+KwZNlp+63q1U4uUDBUxGGqQ6pkgJZlOFZM; 4:D7Ni8EaY6YRmLm/prCrfVo/wfgWa0A2uafZOVjig31IH9GLhkMUl2Xll2obyAJBjVYlO0j2wTsKmVsPIXcCgYcsV6+0daGCxGU2J8nUj5r7WtkoMzutq0S74qoUK7nOGopH8EY7FbTfo7NTwziP1/Ty2zyZykrJBKt5KKCv5iYnhqoqX6lLxq+/3+D6+Iywz/3XXppSqom6trRroVt+YnbA03P5vzjuuj9c181d51LEw008k2WtHCh4QTHWV07E8XZsWVkFLMIErfuQYulu304bAswgvrJnrkx1MiA3x1iVzKPDNTp3ExJ/TgvkxwCqGFvZAZRnk95cnttB3DL4r/XlI20H2ZWHPHhIGc2MewMk= 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)(3231221)(944501327)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041310)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:AM2PR04MB0753; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0753; X-Forefront-PRVS: 0624A2429E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(346002)(39380400002)(39860400002)(376002)(366004)(189003)(199004)(50466002)(6506007)(186003)(11346002)(59450400001)(16526019)(446003)(386003)(26005)(53936002)(55236004)(6116002)(48376002)(5009440100003)(3846002)(66066001)(68736007)(316002)(16586007)(6512007)(476003)(2351001)(47776003)(486005)(76176011)(486005)(956004)(105586002)(2616005)(305945005)(6666003)(7736002)(6916009)(106356001)(4326008)(2361001)(97736004)(52116002)(86362001)(8676002)(8936002)(2906002)(81156014)(81166006)(478600001)(5660300001)(51416003)(36756003)(6486002)(50226002)(25786009)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0753; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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:1r5MzUudG2Ry3WCirHVGHCJAEN2/YakHUZUoeiuOe?= KZ+DBw7BcwhtBfFNg0r90DCrPjdqIfNzM2U7TiY/GU4p238jXofVYgeY/EXMtUtLYerjhgRKkSENu72uTVBEB3IIh/grACA7HCz/u5rjYZF++xvzjAlh+potfOn2Gki3qMYjG1cjHhYE7dzjxWQ2yX8bUR36GPuVXDd6Z4wqeNL9HHX7EIJ4IUGdp3L5tRF/fDEUKmlIGtbxEVqPu0slJ7gmAPPjEXYUXEKnXMdRrq59VfT1Bqv2m3RHHfdi182GrFhKCl87apP/rcpqNR4dATk1I3h7UnnkYh29PQFS3uAcZdjPufAF05V2P+TgKaAmjYWQBZwW3FJ2W9UfULQaUOIdVrSJFGZwFHOdI3BkdIc34EHhf1b8skSJNjXI+70CRWL1o2swAnXewD5E9tM5s7SVOvEyvtKp2uA76kw7kTdrF5OFTXogXoByyKgBRcaRI1tklYU2e18Ykpx4Bl9hptfnVsVdsIcXW8UanDnE3aIjkemvmP5kTv67g7R1U6eblza/bpWKC5E9raWk0ZnLq7I4q69TUoI6wreVd9HoeOcoL1Cjdj/5uPB7u5gzeJckKpw9pU/qENhzqg52NucitToTblMRUBj/LL2R96ugps2MefEmjfrHGKXgCi1/iqBwj6laXLSJ45QWrOwVD3xo1MWThFiVDR005z7RsIr8xNTELTU/DK6ZBCyax55zkobyh70KzXfpqOPRBmK5We5Av+kZ8rfF4Er6L4PMDNoeymdGYApiqoLJIeYSj0uibg7UA3zE5I7HPlpZmX8YNegSCrsEHMYfS8/QVwB/EoX79jcxvxnE40kVsJw0sxDliuR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Cz8XoXtTRiOAL7QbDNkY4B702H5TNKdU4Hn85QQSSv/ilYOxlo6f/Qk4i8V5JL3LQS2qW6QKs68GC9ppUigN+eaz3j2eT9KQ7PiLoGVo3Lyv8WdYCDyzZIshfeBsHAg==; 5:7AHOkOozmrFmH8bTuCl6NKwx0Ifr7/4DzAhzuST52QIZMo3DDjkSyXKak1z/MTOoR5yyZ4URrjOj9mQVA/rnsDcE4EQzC8oz2wbRtFxh1z/bbGk+7USIVDpfKjWBSXtyhu5sqXkU5m945gmQkHhpiiQU0ro8LRLrDLSN9YpoUoM=; 24:IPL2up+EmSC30EAH/++hIXJOAeki6RwDL4EmU4V1iYNHuGFEo4bb2BtkF9kxbLOOiyploZI811eKxcM4BBoOGAExOs1XKR+5jrcYw0i9B7s= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 7:39i/HM4LLrnGC+W9vBJy14+1kGNAqLPG1HMfMVcICG+vSnFn+DKOYGs2wNez3DtSyTwYPfYxY6s6XKWn5i9nmaoImXW7kswE9TZZpNE3uKdb07ubq1gM8RWLxQY2WVdLUZf1FU8dVdwddpx+W68QV4M904EvXj4Bo28Xc/awylDJSvb896LzPwvhq6ISiMBuYcMSJDQ7dnZCB6p4+k8gQUNpCqTBNezvTbKLFeWUVmUzcs2/YI01JAOJfx1JpDHM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Mar 2018 12:02:49.0976 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b9340522-6507-4920-3ae6-08d593daa9ae 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 6/7] 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 Tue Mar 27 12:00:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132478 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp4988914ljb; Tue, 27 Mar 2018 05:04:22 -0700 (PDT) X-Google-Smtp-Source: AG47ELsFtKkDT+FGUXt1yFBZ7UdPOg8+InUFPxEAzCH9vR+rF91Nx0QPKp/eVx3SoIP0451rq+sU X-Received: by 10.223.167.12 with SMTP id c12mr26741535wrd.194.1522152262394; Tue, 27 Mar 2018 05:04:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522152262; cv=none; d=google.com; s=arc-20160816; b=icr2RvFpAnP4viD4ozi/ji9WY6SyhR3BFljcbPwkMNEWMJCjZG3tVj0i8o11HOpeNy Y8Kcn2tKYDPhb7ErZhCReU5k8ppSQBQFkxIirHxV8eCZtwUYQMkGaM0iFNpi4SmWBsmH 4OPwklpzGEk+OHCTaExo1e31uJXQc4l6alCZG9YzO9e44uVveQ0pyp7d9+fS8kUhIMI8 y4npJu5Fdj1ID+rFlStB0qRZX9NNggdpUeHhoM7yphnCEX8eiDne/Kjk5vEtiAuK6Soj KiYtaPCX3LMqwiE+4jzlm6goEh5YK8tWO8HgDVY5wzqly/iXPfCTc6zBtQbtcVfBGH9i AMyg== 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=Mp2aeKD/orG6Marhxn50mnsOrThbEIGd8wt6NfsWt5y5ILPT1J2c2QhXKNepi+i996 kEIuzhFIpNI8glpZfW4i80ij11gDlflJGAbSGTV/PvvBGCSyfArhOornWLCcMEpCNNVo cfnc3++FfDsXX8NvkrAWmBNJ0dZ4aumZdcufQSPrxDK3Mlwzpvn8C10UoOuW5bn2kxUo j7E8n87tcCby3Ic1vPJhu62IApQAhVECgEz0si4pmKKVU/fqN+a5bJ1tXOgyTYfa3wjZ CZ0dzrQa44rpOirsd1Km8Qc3EqJCu0am5jlIUpOYMYSTAkAmmYfTdmbaaoTamfYDbTwp jg8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=Jrfy+5ps; 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 3si909836wrv.419.2018.03.27.05.04.22; Tue, 27 Mar 2018 05:04:22 -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=Jrfy+5ps; 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 6C3765F18; Tue, 27 Mar 2018 14:02:58 +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 67C404F9A for ; Tue, 27 Mar 2018 14:02:54 +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=Jrfy+5psiYdc7afOPZj2M748n19Ux/JD53w7bq5LEzwonMn436Ns/FYA6mHXDXYAZ8g0/01dnXd8BVJEjOoUCGecd/n0bKmqtkpemzud6IduINMVHP2jMpMVUngqimYc23Jhyiu7MtzFtulWH0SAbSYAOHyMiCp0Joz78wzc588= 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; Tue, 27 Mar 2018 12:02:50 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, akhil.goyal@nxp.com Date: Tue, 27 Mar 2018 17:30:39 +0530 Message-Id: <1522152039-32493-7-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: MA1PR0101CA0016.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::26) 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: 5f24fc38-4e8f-476e-1b96-08d593daaaa2 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:6Aa1GqqZZhgt7BZbxIUjaglJ3Siz/XcRhca8tM+Q9br50ZubMLz/hYtRgUGQx6rYGkLcHpN/wz/eFpKrltkPq7WGpYqF6TTGE9qrYr/UC9YavdwvrGY0ArXuCpqAUImbGjzRvG+o6iuLs/eBtKK3/1S6Vfcjx1BfZ/TKP0NJkn3EV5zRj+bjch7cJJDUJzr9OyqTihpXpqKf4CIfR9lOyC2iSWFBcmYk8sw+jWmNPSMaYaKOQpusQebmL2WPtnSw; 25:95xXFeNT5GfdkBA8qAxYvXaaq2rnNBLCsxloCxT85Jhqgox3hqjv5l1sGMbnPvyQecwCQOq+dpF14Mn7wXkeg/TuQF31+0LaTo5vE5TV/UtAswy1V8eqnrwQ2aGZvCbD7wHj34OKAsD7gG5rpOTgEdVrAbJxdrpFnAMmAENNu/IKMRaHGzlrvblKjrex3ehwpwsa0VsZ5AeFK1gSRC24PirzhzSbtqGdIeOl7UJd0rR3n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ScqKXY3kK6PFCxIYeAh7AFb/Wg76+FnruCcFrXeVMYGHSOhK/D5PzTO6Q1qLucIvUlm30Bo16bkvigdR7mMJFVC67eX9CDezfPdEOS/rS7K99eVnFxAs1luo6fTc+PwxZ3Xlziydl6SkGx3Xv++NvIePl9ShEdbA1rs28Sl6QjEwQQqbJPEdo3dZXhEiqF8WYxSBNmKTNN8m5NsK/oMx/XNnrQZev/Gz38CYXA6y7CQb2M= 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)(3231221)(944501327)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041310)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:AM2PR04MB0753; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0753; X-Forefront-PRVS: 0624A2429E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(346002)(39380400002)(39860400002)(376002)(366004)(189003)(199004)(50466002)(6506007)(186003)(11346002)(59450400001)(16526019)(446003)(386003)(26005)(53936002)(55236004)(6116002)(48376002)(5009440100003)(3846002)(66066001)(68736007)(316002)(16586007)(6512007)(476003)(2351001)(47776003)(486005)(76176011)(486005)(956004)(105586002)(2616005)(305945005)(6666003)(7736002)(6916009)(106356001)(4326008)(2361001)(97736004)(52116002)(86362001)(8676002)(8936002)(2906002)(81156014)(81166006)(478600001)(5660300001)(51416003)(36756003)(6486002)(50226002)(25786009)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0753; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?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6YQo3nwJQgxJSh3SadTInn8Z0fw6xBfSJcd/D1Nx6DfJivAcWzTb0M9IqX/VLqX/q9pe1aXUpQhNQJTMAmQKcOVz7YqolvTXiamsyuWo=; 24:TpCkQEUCJFSZaI1Ra4epW/je2XQR87zivZt/ZLXiM5Z45CjZNAy9JQFfN4diKZsUnC7NzvLraRmdv1QKCfMzsaCv7JKPz8VGG7MWOfNH/bI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 7:7R7J4kI2pflPpudS5+q26e389iCtnE6ULZFCxSKNyXWauyFSL8Ep+n6+yaGwFQ7uugFTE6REbZnDnniNK7XYWMrMD4W1iL1eeb0qXTOVdR0+JV+R+L+9VcJmPLsv5f9sheM/IE6P+4D4MKxs/CdvD78E2BrdBS5oSsjlbsN6XRxOoXwEXaQlizN1dP22X4ro+oz3XH+3yVm7JjYLGt7l7EcNvsCFk5KDLPfIzcos+2qbPuocbd/993IOKKpCaSnO X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Mar 2018 12:02:50.6878 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5f24fc38-4e8f-476e-1b96-08d593daaaa2 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 7/7] 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;