From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0060.outbound.protection.outlook.com [104.47.36.60]) by dpdk.org (Postfix) with ESMTP id 1692358CB for ; Mon, 1 Aug 2016 12:45:00 +0200 (CEST) Received: from BLUPR0301CA0018.namprd03.prod.outlook.com (10.162.113.156) by CY1PR0301MB0698.namprd03.prod.outlook.com (10.160.159.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.15; Mon, 1 Aug 2016 10:44:56 +0000 Received: from BL2FFO11FD032.protection.gbl (2a01:111:f400:7c09::196) by BLUPR0301CA0018.outlook.office365.com (2a01:111:e400:5259::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.15 via Frontend Transport; Mon, 1 Aug 2016 10:44:55 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; 6wind.com; dkim=none (message not signed) header.d=none;6wind.com; dmarc=fail action=none header.from=nxp.com; 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 BL2FFO11FD032.mail.protection.outlook.com (10.173.160.73) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.549.5 via Frontend Transport; Mon, 1 Aug 2016 10:44:56 +0000 Received: from Tophie.ap.freescale.net (Tophie.ap.freescale.net [10.232.14.199]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u71Aibji018422; Mon, 1 Aug 2016 03:44:54 -0700 From: Shreyansh Jain To: CC: , , David Marchand Date: Mon, 1 Aug 2016 16:15:17 +0530 Message-ID: <1470048332-27318-3-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1470048332-27318-1-git-send-email-shreyansh.jain@nxp.com> References: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> <1470048332-27318-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131145218965599385; (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)(5890100001)(86362001)(2950100001)(50226002)(77096005)(85426001)(87936001)(47776003)(105606002)(81166006)(81156014)(48376002)(8676002)(8936002)(50466002)(68736007)(36756003)(50986999)(76176999)(110136002)(2351001)(4326007)(2906002)(106466001)(189998001)(356003)(92566002)(33646002)(229853001)(97736004)(5003940100001)(586003)(19580405001)(305945005)(7846002)(19580395003)(104016004); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0698; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD032; 1:FurpOzUDDaShEg1dIlqVhh+6L8ueg9MuG1Gk0sqdaMloBOXZeumalRZcGIsRPeQv1+KpZFuJg+2GXzUnC1Qe4ZOflpNF1BQufkG88VjxuWCXFvZHrTniO05cXOY/5gI+1XkefiT1U9iXjz4tsK03w8aWGNCPOuwtoiKWqO6lc9p/4xXyWTknSyeMOUOd+XNpz9F4OltjJLdMgo831UAc0FsPObtv1+HlstVRAvtl6I4/RHeuk+yhRqpD2Dpt1o4uh4MePPzN64M+NdymnIt6PSw+tmrOU6x95RxjKiTzbANWA9zBVxjZJzxV8CqEEtezqMP7dyDoQ/QaCpGE8MtlIRuWy65F/ZwU4MFgtCKG0tNxgxG94SX18t/OEbYaCxrZGJ0etOU6+NeYxoR9+2QcaOJ90DaRy9gYckbM9YK6/zPfkeg50QSju/8pln9WZl0qIKQdVW3i9rnSNA87h0vCuKJUlGPPIwm8ATmuGhYLqoHoriudui+K9WEWWKW0xddAZejll9XzucSRGbGAEuX2f9aYsyiV0a36gOPhhGWN0RDKlznd/Dm/H7gyIfb9f2lfuV6GyYUbm/ijeGynueziWzt4yIzuhYFxZWONFSs6eCXTwVx6p3D1z0D6671ju2T+ MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: f69c7398-fb82-4e8e-1339-08d3b9f8e0e4 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0698; 2:E0dK4YXzrIG1mKBYssXavnklhFUBQm1y9Fh/mSI4o1xZJfhBNDfpCnStAM1guZfWj/BPl2+Z5PYc6HG1TZORKK8XFOQQZIeUTzJDQQ6alRpZB6X+ivoTXiPWh0Q0a/hiapI54wPq5kZCLFvOqgCTk/q7qMqk+lIar4iVrKH9Nr+UF/E8SCVdl8FB2nocGYLD; 3:50cRaUP/prWscO4D9C/9iXfywiBVVXFboXYWsLnGccogtAkzWanct52WMYs+4KzHSb9F8WE41gdMMlltPQDGWm8Cahtc1HR7kh+ApWJl5VCl8G0L3XRiuzV2eWTuMwE0rB7Nfuz2RnJpukWM5quoOkxp+ZIQojlfSEaICibugwpE5glAPjhurPwI8jOlkq3uFc4zK+A5jvltHBFDIcAI0c8q35/FES++fjsMbveBd1Q=; 25:Pp05RcpR15xes19bkGmaJsl7g4xfcdXz8k+tr8xlE+PFlAbcF28RXnhDD9xG18tVGNZpxfY4JqMRupNf3dVsqB5IO3r8cNdLS5AyrbLltwv70K2rDzP9F+/h34OwZcQ91LkD9lDiw407/aiJq6rZMUPHOgoxXKKh4QY+E4/9DQEsV6YJyCwYHUExSECfBcdIov71A4JmTbAsfGCZOljB4b5FOqMauX6UdcAeiwiF7Py5kKP7XG/A9lhktyCXNEYxqtaTS/ZPzpfFnMKB/RFBhIu3XOPUMfzXX15KMGoypZIjryQ2YoLvEYoHRggiKaLF7rXewCjeF3Tqt0atp2Nt7r4OVK15ve735UqcJkyzZIlhPsjqBL0ewjc4K0R0UzDJlzrTVkOTezYn00pdtiDfcuP/x+ZUvOhgZtUo7MbM/e4= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB0698; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0698; 31:nKxvPD2gKFluIV4RfwKDWtu8M53H3faKnmNjeYvli6FFp+XQAtAL+dsCXffA2U0d2+rQveGaXnrk4ECP9beDF6VI+FHJhHZ/7PDQWddRy6Cr32JbVGW58VpEwVazf65bEjfL4jNn7Y8MnyJzbPyz8/uRp1vEQJhRcXnzL8ym7AERuTMTQL3yDNV+q09Ppm4JiHoRfFK1yqb7bHd94Q/s+w==; 4:c63dWLB5Ji+9XiNeP55tG9bBmxvYL3EkA+PXObgSjPW4GD+RK2W9pHvIwHqWtLgCXLvoDCWjTCdre4PEcoWqYOSqbBUvCKBtO1UwLpDtv3LboYIqwfhCn0ZOaFeOUEhdMbs5LV7tovh6RtrvwEjRtlWQj4yT+Qbd3MaS/FV0M7ElVr8SCPdpG0e3tnHnXouh1VnxYbhLHlk1MW12H6ReKqLbS21kdni94QEJRmlkLfz6drT+V6fTb4V4SYJiy3FR6bU473d6/2cBvBzTadYM+4Hd1dD5EjwDHhZk+T109FS5NQPe+zldJ2sx/cunHaLGBbC5nCKgf1XFGI9Ynr6QFlIGcD9Bn8GJcWDuyaC/rGhhfsC8XK2hdoGwJBZiHGuVUf1UR9CPotLTVnEEq0Iyu5wUrgMD4g319CQIPRtwOU0iqt15Q3xrqWS44EpauD5AMcPVTxI0MXB2p400fyNEnOm5H6QmdA19bAk0AoxAtXiNeUUJcxbqpoSgjKYHMWgCXHWJYx4mJcMw98+Q03wU6A== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13018025)(13024025)(13023025)(13017025)(13015025)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:CY1PR0301MB0698; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB0698; X-Forefront-PRVS: 0021920B5A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB0698; 23:tAiQa8hyHfqKhN3WQgOsn4XIE2SUCrXNBGrs+RE?= =?us-ascii?Q?aQ3ME/NmmCEZNFC7BGthFfsBw1jpY8NLE5awjmZSEhYsXLdM0p8fgEHH8V6S?= =?us-ascii?Q?Zsvt91NK8mSVLtNukrjtPnTdc48I/eLo+C0802LsknjmTn33fZeKBqNZsjhE?= =?us-ascii?Q?n0LuThuz+GhSzw1f89hWrzaiKIh9CyxSBMLCy71Ko23ngnMdhyFmSuSxycqI?= =?us-ascii?Q?FFvgOVmkRFJF5U7tEuGC2aAx3kz7rdaFhxYnNyYBnhccYQZsz64CKzXVayZl?= =?us-ascii?Q?72jRJqw/38l8Zh2nF104XS2ZCFl7kSG+x+H/QHVefaPd5+L3PQ10Ok50yi3R?= =?us-ascii?Q?CC647v+CoozTXkTSbEs6bhomQmGSsk8pSO2ir3gY9gmRujjWe6BdMKkAT2xw?= =?us-ascii?Q?g+dn8zqkye5/jeOUgaJ0jki2FEeXLuxKbDwImpQGBgokh3R9HKN6PJT9LgDn?= =?us-ascii?Q?z2dHcXkDt0InDpft6p1G7vlS2YfavH1DRXzAy3cbHJwa+d7gonYHx3j0M+uV?= =?us-ascii?Q?6rQK4mpFYhSBfdE53rQdpUGkK0c2a199X9XEzKH8UNK79bVZ+oSub5szwHTQ?= =?us-ascii?Q?eYitRwhtNTrjw1RSaMV/888H4abTgJH4mD6fLVE95Ax8EekNmpVEkKMLiA+s?= =?us-ascii?Q?P7zJEcF6D5ZabVLyqzUVnbclQDbQ9SBbh39SkLvz1iZVei6jzKYWIYZCOJje?= =?us-ascii?Q?yuYGUFaLtVI+1XL8P5dPf6L4QvuGAMTZk3Huzyi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dXrH9d3FH7WzZ5KXWqSFMIvCw6nOf8AJAxuwg+4A=; 7:BTIZoV5dis6ycemAMhaOGO9LaH0ybK1bD2ufte9gDHzJb7Bx/fG3AMD88DpFHay+yMkxXbzSSKGH5kwWSc7jfmctGrItt9ixry5WohtZSq+K5g/HkebPl8Qck7ZmfmkRO60rY2CWFiCssSeOWbVB+2ULlulOrDqTBLgeX/hAI7xf4CmY27G+dI7KSzi8yxPUAJFte/R0DehSsbxvGTh4zSIYBOI7UgqXyktzhJxEs2CxvzTuhu4SFqst9kBcPHCc SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2016 10:44:56.3727 (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: CY1PR0301MB0698 Subject: [dpdk-dev] [PATCH v7 02/17] 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: Mon, 01 Aug 2016 10:45:00 -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