From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0067.outbound.protection.outlook.com [104.47.33.67]) by dpdk.org (Postfix) with ESMTP id B19037EEF for ; Tue, 20 Sep 2016 14:42:19 +0200 (CEST) Received: from BY2PR03CA045.namprd03.prod.outlook.com (10.141.249.18) by BLUPR0301MB2003.namprd03.prod.outlook.com (10.164.22.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.629.8; Tue, 20 Sep 2016 12:42:18 +0000 Received: from BY2FFO11FD047.protection.gbl (2a01:111:f400:7c0c::103) by BY2PR03CA045.outlook.office365.com (2a01:111:e400:2c5d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.629.8 via Frontend Transport; Tue, 20 Sep 2016 12:42:18 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com;nxp.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD047.mail.protection.outlook.com (10.1.15.175) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.629.5 via Frontend Transport; Tue, 20 Sep 2016 12:42:17 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.87]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u8KCexsW006559; Tue, 20 Sep 2016 05:42:14 -0700 From: Shreyansh Jain To: CC: , David Marchand , , Thomas Monjalon , Shreyansh Jain Date: Tue, 20 Sep 2016 18:11:16 +0530 Message-ID: <1474375296-26078-5-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1474375296-26078-1-git-send-email-shreyansh.jain@nxp.com> References: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> <1474375296-26078-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131188489379963308; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(68736007)(47776003)(36756003)(110136003)(76176999)(33646002)(2351001)(106466001)(11100500001)(50986999)(5003940100001)(104016004)(5660300001)(86362001)(105606002)(50466002)(48376002)(50226002)(5890100001)(626004)(2906002)(189998001)(97736004)(586003)(8936002)(77096005)(8676002)(81166006)(81156014)(2950100001)(92566002)(8666005)(4326007)(356003)(19580395003)(19580405001)(305945005)(85426001)(7846002)(87936001)(229853001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0301MB2003; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD047; 1:bMlPeudivYIYGLhkc8kr/4xHf+LYNsJVhA0IbK1VphjJ6cgJEu8mjVx9nHt1SQXRL9sFHlBEarOHkRCQM8SxnWKyVRRyfyz22DaBUpJt09uf4DhjTCMX1OraptnlohGA7npJmgWivXirCqNzPdXn8GUeZo9tV6h9jygSoPIwIVcIHfxNcSSjSs0mHYtdQodpVX5ieyE3VGGc2vebK71mPVqCsBWkZdSxYr5XvIzqWo4HcGPCBYSSwjfWAPFWjQnaeV3wvTzYmlinWc8AG33b8j9RFm5bC39LzdPMy8NlC8cARYlKjMNWh2oBs4MIn7a6Xibr2YctqRdAG+ZmlcfF06kU2o6Jj4RzGlSgsPEp/QbtzJYdUNH8uH8rgb4rJJitvTRH+Mu1wEBtKmxxtI1/17F3ashCFLZ9xqLmF1WU+xmmYrYpgtCyNJhVLslysz8wLMT6KpXgZ1wfseyM3Bi3+Tv5To+MJ6jbJ2PGoe+Np5bDhIGtBlnd84irOLKp5md3Bc7wMNI6f2tbYlr4DJba+abu8FSD43yEAFhaHF9QzjzQmzEXN09I+YdsKE+29gGtcczHnq67VkIr+pMhuk5arL7pjmpl24x1LunYxtxfnxqlD9GpfNqCCT2urTdk4lDeJldg0sxHV+OlQHRr9fOk5n9Fimpb1Cp4w/7GvWnmha2dk7kNJ06vfOLkg3YUsnsfAcIYbe4bAHaDjPSqo4ilvt37z8zvvL635FaFwLd5O1M= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 555c65cc-ef92-401e-d6b4-08d3e1538e80 X-Microsoft-Exchange-Diagnostics: 1; BLUPR0301MB2003; 2:95nSReyMROWfHRhXVyXNrLxAkgxaYgjZl/dVZB1snAPljjViusdBdvR8gLS73saD0mURFbCwoJ0+cS1vFVMW2mJMd4BtItZoM2uzHRFsJCpQqDIz/bW9ruchNv5m0E7+h3GBne/7GBLUTq8vn93oVMeH2kwWBpOXnWd1Kplp6AwmAHzmXBud1vUw5X8wSd/H; 3:4nvlQAXoPkLeVV7i61WnMTO/N00Oax8FYfEFUD+OHwz8LesEuQntqUnqA5F6ElZjdY8DWFne53KVgxm2fV8qsCTvj6hSI0RDEeGFX4mh3EQEg3YrjtI3XywufKLJmqCl7JJ7vtMiWehnQJubRMJ/6dQhKD3Ph8+vGTmDbfc7fqsCt0R7cMnYioR3iglwZwxbvU3e2sfwuN+HX17EsFeXM21llNZ5ilvuLCXtUvF+1UE=; 25:D60Le5FOZifwVK3v8MjBUtRT2vfIxCXFOotHAcvCkKPkw3Cn5jtyRxgUA/rylDBd3Xz+8dubXgyTAY2LeUd6+/DdT+XTtKv24IfrpiQfnl8sAK/1lXlWyUJqx8QUL1z59EiZ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Jaf5TxX/d+r4NcJI4uXn978VQU6KsfimsiWBB5pwQUbTvHJZMllLI6Qp7G5B1ADUJQd3bJVV7LUySnpaELE1mxzJNCMw/dL7P51UtBM5I= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(13018025)(13017025)(13015025)(13023025)(13024025)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:BLUPR0301MB2003; BCL:0; PCL:0; RULEID:(400006); SRVR:BLUPR0301MB2003; X-Forefront-PRVS: 0071BFA85B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0301MB2003; 23:7aXXCAEe50vF7NcdObAQWdc5dm0hOVcqmZDnenL?= =?us-ascii?Q?BccvN0cNbKkRpAyB8kw0fwUeOW8HqCRGLM8djY+THHqI6etJPSAa1Sr/fkTa?= =?us-ascii?Q?GPfV1Sqn5rMJ24VrT0OlEsfDb536OzwKQXDGlt2ZEgwqrQ5lSFJJAA64CkML?= =?us-ascii?Q?Q6uFKkHrGeSAX2dEjKlMDw8bjadQPBizFUWJdJDOlOY8e+/SajAQIMnwUCkP?= =?us-ascii?Q?d8/Sa9trGgI2yYeOLvAPXDGok/M0sZWQdcuP4WSL0LZfoURo3EinE+umfaxS?= =?us-ascii?Q?S1kbq3ya9/o/hfgdbcnJRFm/YPQqVPDPFBb7w8Y+729zKZbhZufNG3qWxqga?= =?us-ascii?Q?SxWj9IU07/j6feE8kWEPEMsRGPBwFjxXIdIDJNXSgzjxmMGxTtZ19PLwzgFy?= =?us-ascii?Q?WYg21lWvGtDa7x2zRq9cbMlS4UMNrxlEoUBgDxK1mNjafI6Hy8jRdqjhD9NQ?= =?us-ascii?Q?fOjFB74W2OyIVSgpw0TSxxZoTaSMlWLNU3drSw2M0Ib2OaYwn/68SdzAFm/v?= =?us-ascii?Q?+93k9CUi88OST/c9L66XtYeaMd+UjuM3GUW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rD8jJ2B60BNmZpLblaMeLS8VMrYicDV9YRdusb28adHMGxiBLVKJL+2TA2WIqNGFqK/1By/22N74=; 5:F3Oi5uXEeOKLnBsL/g+zQra03ms63v0BjU9zHD8prpo2c2qqJirAIXEpaZwQHhnXT7KGrk496Bjr/ofEcnFUfPrj+W1z8XZAJGEWPqR04cJ+G/DQdvDP80jjIGq0Ry7lhZu0zyQqfQmdJEcnXJ3BBwi8Lt/oCzGd1XqBDoIQTOk=; 24:MYqSWSKmx8Xd9PYPo3HSrA7PJ/TWeB6fff9c2CYNQb5Bd/o/NuE6Hz+vFISFkQiOy9Xr9XTkQVQZ4wFMZ6LdjJ8TVvMdufGQII8H5AhWkgM=; 7:oYO3oL45jIcdQfwTHmu1TBrpiLmOrDP0Jfx4s+AWNjo5iV+GX0xH0xe8KGWiRNLmrex+TN8NZCyiHaz1rOtjCULpXow4hJ+YDtAHaLO+OrN7H1cCKH9kICBao2cjl3Er55P67L2mD8DWTubFO2wSY44O8gykg1dWrlggUGfPwuL3Y57o2VZcC2uVAByOsIRYxcs/8uMsBYmArqUtAg+xvGEexlj0tKbJaGqJjyiMN3QEEMfr4FUdkxJA/LE0d6OGAcOrgx/O4Qf9TVqTSZDoq1fwCimnhtQwcpbHkENnP5nz9FoKfPQG35l92IPN3QgC SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2016 12:42:17.6843 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0301MB2003 Subject: [dpdk-dev] [PATCH v11 04/24] crypto: no need for a crypto pmd type X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Sep 2016 12:42:21 -0000 From: David Marchand This information is not used and just adds noise. Signed-off-by: David Marchand Signed-off-by: Shreyansh Jain Reviewed-by: Jan Viktorin --- lib/librte_cryptodev/rte_cryptodev.c | 8 +++----- lib/librte_cryptodev/rte_cryptodev.h | 2 -- lib/librte_cryptodev/rte_cryptodev_pmd.h | 3 +-- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/lib/librte_cryptodev/rte_cryptodev.c b/lib/librte_cryptodev/rte_cryptodev.c index ea75562..144c205 100644 --- a/lib/librte_cryptodev/rte_cryptodev.c +++ b/lib/librte_cryptodev/rte_cryptodev.c @@ -318,7 +318,7 @@ rte_cryptodev_find_free_device_index(void) } struct rte_cryptodev * -rte_cryptodev_pmd_allocate(const char *name, enum pmd_type type, int socket_id) +rte_cryptodev_pmd_allocate(const char *name, int socket_id) { struct rte_cryptodev *cryptodev; uint8_t dev_id; @@ -357,7 +357,6 @@ rte_cryptodev_pmd_allocate(const char *name, enum pmd_type type, int socket_id) cryptodev->data->dev_started = 0; cryptodev->attached = RTE_CRYPTODEV_ATTACHED; - cryptodev->pmd_type = type; cryptodev_globals.nb_devs++; } @@ -406,7 +405,7 @@ rte_cryptodev_pmd_virtual_dev_init(const char *name, size_t dev_private_size, struct rte_cryptodev *cryptodev; /* allocate device structure */ - cryptodev = rte_cryptodev_pmd_allocate(name, PMD_VDEV, socket_id); + cryptodev = rte_cryptodev_pmd_allocate(name, socket_id); if (cryptodev == NULL) return NULL; @@ -448,8 +447,7 @@ rte_cryptodev_init(struct rte_pci_driver *pci_drv, rte_cryptodev_create_unique_device_name(cryptodev_name, sizeof(cryptodev_name), pci_dev); - cryptodev = rte_cryptodev_pmd_allocate(cryptodev_name, PMD_PDEV, - rte_socket_id()); + cryptodev = rte_cryptodev_pmd_allocate(cryptodev_name, rte_socket_id()); if (cryptodev == NULL) return -ENOMEM; diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h index 7fb5f6e..417e3f9 100644 --- a/lib/librte_cryptodev/rte_cryptodev.h +++ b/lib/librte_cryptodev/rte_cryptodev.h @@ -620,8 +620,6 @@ struct rte_cryptodev { enum rte_cryptodev_type dev_type; /**< Crypto device type */ - enum pmd_type pmd_type; - /**< PMD type - PDEV / VDEV */ struct rte_cryptodev_cb_list link_intr_cbs; /**< User application callback for interrupts if present */ diff --git a/lib/librte_cryptodev/rte_cryptodev_pmd.h b/lib/librte_cryptodev/rte_cryptodev_pmd.h index 130290e..9a9174f 100644 --- a/lib/librte_cryptodev/rte_cryptodev_pmd.h +++ b/lib/librte_cryptodev/rte_cryptodev_pmd.h @@ -456,13 +456,12 @@ struct rte_cryptodev_ops { * to that slot for the driver to use. * * @param name Unique identifier name for each device - * @param type Device type of this Crypto device * @param socket_id Socket to allocate resources on. * @return * - Slot in the rte_dev_devices array for a new device; */ struct rte_cryptodev * -rte_cryptodev_pmd_allocate(const char *name, enum pmd_type type, int socket_id); +rte_cryptodev_pmd_allocate(const char *name, int socket_id); /** * Creates a new virtual crypto device and returns the pointer -- 2.7.4