From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0078.outbound.protection.outlook.com [104.47.33.78]) by dpdk.org (Postfix) with ESMTP id 750E75960 for ; Fri, 26 Aug 2016 15:57:39 +0200 (CEST) Received: from BY2PR03CA048.namprd03.prod.outlook.com (10.141.249.21) by BL2PR03MB1875.namprd03.prod.outlook.com (10.164.115.19) with Microsoft SMTP Server (TLS) id 15.1.403.16; Fri, 26 Aug 2016 13:57:37 +0000 Received: from BN1BFFO11FD003.protection.gbl (2a01:111:f400:7c10::1:103) by BY2PR03CA048.outlook.office365.com (2a01:111:e400:2c5d::21) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.599.9 via Frontend Transport; Fri, 26 Aug 2016 13:57:36 +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 BN1BFFO11FD003.mail.protection.outlook.com (10.58.144.66) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.587.6 via Frontend Transport; Fri, 26 Aug 2016 13:57:37 +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 u7QDvHpf023630; Fri, 26 Aug 2016 06:57:34 -0700 From: Shreyansh Jain To: CC: , , , , Shreyansh Jain Date: Fri, 26 Aug 2016 19:26:42 +0530 Message-ID: <1472219823-29486-5-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1472219823-29486-1-git-send-email-shreyansh.jain@nxp.com> References: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> <1472219823-29486-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131166934572495295; (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)(199003)(189002)(104016004)(2950100001)(8936002)(68736007)(76176999)(87936001)(50986999)(2351001)(47776003)(50226002)(110136002)(36756003)(189998001)(50466002)(48376002)(229853001)(92566002)(85426001)(77096005)(97736004)(19580395003)(7846002)(106466001)(86362001)(356003)(305945005)(626004)(19580405001)(4326007)(5890100001)(5003940100001)(105606002)(8666005)(586003)(2906002)(8676002)(33646002)(81166006)(81156014)(5660300001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR03MB1875; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD003; 1:ZBqCmefTsgC2CeRNzuBBDN1fWjMMZWAEObfbkZEAi/iCsSvTxfq6HZ2NP+BrN0cMMuygqvOweGHxrSEQWcBg2C9J9Ab0Y/t3AjLlNBlwG7W6v3eG3mfpaKQyhTjRgaza7SqkGVQliFM+oakLkbjwBFXTY7NEHDew0C2i+lhIntUPycUs8923nvm/qnwyCKwRCGlkZgQitc9Y/b+rMqylkCUt56YKrQmZqMYyddWWtiCT0QZ0dm8zHu3/SbculIyyU9YigpNHXB8qUMYNKB7fp2P+gPK3La/SZMLG8vIjAk/9ga5JIK5/heBCQR6OqT9lP14eu/OA7Al37W2ppvfNer58s9BTIbZJYkBNxebQkYTEtE7yE8yFXyHnVnsGS0rfdvrnmwtEBy3Vc6ed7P3CkfhUxovGD822EaIemlPG7b3vjx1X1s1qvcJEM+Ht5AL5erNTibcodRDDYIcQpjYK0GZ4jTj17xaESxRhieOquZjj8UKvrTUXJbvp43gAJbPTCzRrW5FLcxAgAdwHXFkAC8dS8TnTqHkxxlWGpfm++bNbaQtC1b0JIYrm0cYw8cf4uRzFlajmF3jV1RP5K6msbDMJB9FfFE/b/33NSshf0JGvQMh547m0uhACImPkt2aSzcpuMQ2syNcPDrGWf+quO2QOjzpKjccsi1kPazHoKACeKy5f6XgBEOwa0eLxFiYKbMIylHZhSOP2TwEnCzF5wHxroFt9uYWUv8kzy/yc1ps= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: bbda876c-8d7b-4d01-105e-08d3cdb8efed X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB1875; 2:etIyN5iMFCKvwRNOdv8P/4Y+q3iWG48w8yfFyLlc4ZpFNiqAXN2oOirwpyTRe6wFFVcQM3XieWvW/xj4RJR5Oc4SN0BwmIHma3xFUwbVuTN38H2rsnchImUHDMpnDJ3CyjCmo5fMRPBW6BXa03M2ismYfVjDCRRQuwKC2T8m/mg6Jc3RLdszlf5BXKG7L3uk; 3:EkcjPZE+hL0kV9bRPUBtrW9V/EylGU9I7Ij0XxS0MC8cH0xDN3znCzcVyqc96VF5D7uFvoU5jafsfSRgT3Gu+sqfGUVF28pRV6piYMljV0ztcL8xKFnResDDaQC3IuSof4f5Y9ze2dMHQpTTYwAMEg64txlbOAbrCD/U10RoVuxLNZDFx3pmXFTkmmueQPJTxMlkCDfP3XegIVU3/dgMZKkaLzlUemnOEUvbqkvqtO4=; 25:DO21+V6h2y4LQXcSbaFdenEJK4R+WUs199W0C7Wfp2eI+4WjzEugnqZdwdzTUkSa+/OdZumfGcXw0a2ghJy/RxeUEXUD+4o4E3eG/Eoa87k7Ap3RDLJNG3CXIcuguWRsGLMTEZfH9IqL8R+3ci4+KdAwvIa/1nq4EMMId9bptU/6NTR9sFLAzAT9U/00V9ab40VfgTSRyt0unmJNKLS07p7dXkE0l3pFcAL483V3YWfTN4sEigp63Eq7fu2M87ph X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB1875; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13015025)(13024025)(13023025)(13017025)(13018025)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:BL2PR03MB1875; BCL:0; PCL:0; RULEID:(400006); SRVR:BL2PR03MB1875; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB1875; 4:Ik7KVkZeAhMzIkC5eAdOOSMUbBB49We1NqKcGhdN3r7Pt2l+eqrj0fNN39kbHCzalah5yAVsPJ5Mdh4FNEedhXbloWgRZ0xGAibGfgmdV28cHt7lj6ca8WcVm4sROEI5ArekpA01yCtwq1On3jN7dlAVGWm80qYPBOT+ASQXj0H/i6T91eXn5/TvvXAv32cQj8A5oJwAfReqQwl26XXC7JVlnVhvb5e0MvmWXmX8TkGXxWxh626LtiVQvcuRC0gsTMqrLFuW0u008C9y9ulfgnvpwquymxsk8COkQeOqQqEqDazo2QkMVv4NjdIvIpFEQgKCAMFtgT9jCrnQ3oLL6WjRej3agoSZaiPFDfGFf1Xc1RWh8aikUjfZvBrou9rqtnYijIftrAh6Pc3ZPU4eYoxJ7JlX8UFxmTmxDcvuWVqTNIdJQTEEB/5iMyOJ9cMhxb6ACq+oPOiQPXO54ZL+giUF4cOM5Dv1xQ+KTBUO1HTJGE8mo/u4DRWpMg39g4Q/9zdJk3yjpEXAWpwviP1OTg== X-Forefront-PRVS: 00462943DE X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2PR03MB1875; 23:iutAC0RvQIU2Dql6Te+RvA4zuQlg6fxGAM5wwtonY?= =?us-ascii?Q?BugNWydZ8utm4Ym4H+NA4n/TYtlYDqfpm1b+9BiUtTtttg5N7zmEODWUuo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DFrfYQRMpqy0fL5PIJc01VZgtH3OGfRJ5phIkd?= =?us-ascii?Q?+P62ZuTuNSjlShUCpgQLAK4kS2lb8LoLOsaK7vheLA14z8cELJruKWOtms4e?= =?us-ascii?Q?6bsHuWjX0c3c6FWQQLsPZYJWgAJjgdt5/cjzebPKL3Cvp+GzuLUXGjKQUbx5?= =?us-ascii?Q?vYiIxgjW2KpOWcs6MA7PJHvlCH4C62DVs2tlusciCfjlz3LqGUC3aseyvHH4?= =?us-ascii?Q?BuJ8oUmAQDejokn8h4c4WmGvz5Ul8Y9jsBy?= X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB1875; 5:iXTejl5V2JZofxB42PYJZ5+oWzGt88UOMx6yFa4rNV29XQnOLuz8O2sFdN7c4CwIS8Y1w8lzWU0TxcoPMzUbsvsO2b7vSE+JDJPF1U68yglL06f+64snbOVfyqBIr1LPwy3nb6MjCT8Y7m/xLq7w0710a3o+IJj76EOa7JK1ntY=; 24:eNcAE9iiECgrV6juiX+Isb0gJt58/M+Us3MwawgR4BrQ4AoBTMWc72hMbx9bxd1UEUwPvON9Zo84vy74mwzSVIwJRqxEuDaGTICmZfkkuHs= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2016 13:57:37.0623 (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: BL2PR03MB1875 Subject: [dpdk-dev] [PATCH v8 04/25] 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: Fri, 26 Aug 2016 13:57:40 -0000 This information is not used and just adds noise. Signed-off-by: David Marchand Signed-off-by: Shreyansh Jain --- 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 fc4123b..6434894 100644 --- a/lib/librte_cryptodev/rte_cryptodev.c +++ b/lib/librte_cryptodev/rte_cryptodev.c @@ -319,7 +319,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; @@ -358,7 +358,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++; } @@ -407,7 +406,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; @@ -449,8 +448,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 affbdec..13f46e4 100644 --- a/lib/librte_cryptodev/rte_cryptodev.h +++ b/lib/librte_cryptodev/rte_cryptodev.h @@ -613,8 +613,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 7d049ea..c977c61 100644 --- a/lib/librte_cryptodev/rte_cryptodev_pmd.h +++ b/lib/librte_cryptodev/rte_cryptodev_pmd.h @@ -454,13 +454,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