From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0049.outbound.protection.outlook.com [104.47.37.49]) by dpdk.org (Postfix) with ESMTP id E29EE58D6 for ; Mon, 1 Aug 2016 12:45:39 +0200 (CEST) Received: from BY2PR03CA038.namprd03.prod.outlook.com (10.141.249.11) by BY2PR0301MB0696.namprd03.prod.outlook.com (10.160.63.150) 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:45:11 +0000 Received: from BL2FFO11FD020.protection.gbl (2a01:111:f400:7c09::168) by BY2PR03CA038.outlook.office365.com (2a01:111:e400:2c5d::11) 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:45:12 +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 BL2FFO11FD020.mail.protection.outlook.com (10.173.161.38) 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:45:12 +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 u71Aibjp018422; Mon, 1 Aug 2016 03:45:09 -0700 From: Shreyansh Jain To: CC: , , David Marchand Date: Mon, 1 Aug 2016 16:15:24 +0530 Message-ID: <1470048332-27318-10-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: 131145219122346747; (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)(1110001)(1109001)(339900001)(199003)(189002)(50226002)(76176999)(5003940100001)(2906002)(68736007)(86362001)(575784001)(50986999)(36756003)(305945005)(8936002)(81166006)(97736004)(47776003)(8676002)(586003)(7846002)(4326007)(81156014)(11100500001)(356003)(104016004)(87936001)(105606002)(110136002)(189998001)(106466001)(33646002)(2950100001)(2351001)(229853001)(77096005)(48376002)(50466002)(92566002)(19580395003)(19580405001)(85426001)(26583001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB0696; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD020; 1:nu0Wo26bm1QWzeXEHYZ/y1B4D6l1KI+lPlqo7AAYNAyjXEepNsxEAaOmfY/81bjL5vCBIunk5BIBoBxt0QiD1xRO+z3XGqiWYEf0cFGrI8ovxXoYGIpcKUCdhOvnHWuD5jVTKp+ZkGahNs8QoDTTYFB7URRXbEP9KUVeJoiV7QJVR50RZ+QnSamP7xYfR5vuS9sSt6eDCOKH/spW6Nm+UdWnKPF2StZ9PTC3n0N8BehKUfWTF92Fr01aBIKUr+052Kz4VMDAZNbtWbMmvokenqI+1C65nrhAkaWAx9TmVk34csts1lV5EDofz9vqCLsJ/pYN2irRPX/TFrCoTtOez4qtspi+Dp5FW7ftzI18DMp+ywAPwOXIMA/wQ/dNdmw2dZO4T4fyaAAskC6j3uwfDmKqZxCKYHS7KSooYi5WuoXkR8UJShtCObBsfa4qQQc3fOx+bLcZk7uuhC7auj5g1pKTRmQrpYBMyWo4INxlFy/kG+MPeauvgSzpGrm1bPOYf+FPFPYppC3pVwN3pHt6RIShg9fLgD6gYNkii4m3bjyjN9q4CCeNqplLeDZPRKl+WUHCQ7nUpnnKHmpMNkdWfFuwa+9h4Qno5RxGnJgcrBms67F34EtydjH+/cjLBVdR MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 9120eee5-b75f-41d3-3afb-08d3b9f8ea3e X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0696; 2:Tl1wEAeOn/E/lXVklR0VMihLkFRrzLB6L5ORg3mccev2/fpVQZjQisQtyxjtcX4QXtoRoNYKjiyBrcL3ky3ttFm0QVciMJfd9/IIA0Uhl0kJhvVVH11JeO3a50JO30Ho7K/BnNBc/wdygetFjGuOXV4G2VaIThYNCd0DyTs3yMPWRwF3PtWJlVRRKSAG+bJM; 3:Hp7WsywLTGRWeffHkigOgf1hIp3K0gGxOqjtTsY/dvuYkuhy2nxebCygSjITXRsbfVvMPjJ4fy0zTjqDKfM+AOiCW83OppJVnQodgH/rSc7WdgumWDKPq3wSV47BhXX/rIwGK3d381cYFM+pFXzQlretO79A9TUW+sfXgDtl0jTNN5V7JctPYn9w6UQRKjleaUPV4ddLbhhCC75hmpP+yZgQ8T8otled4kUb/CoDRzA= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB0696; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0696; 25:fe3xToUrONnfgf7l8SO5jiD4KFrEfStQKcSb8u6HtndPF64xRRuDfAi0J04CqfT5WhapayPryEIdNAH2WD3XVxkErxMZmtAEW1MHR3gJe35ftpyoIUZpy/ZzIl+nOxad4RIt1oeDvqxDCdMMwovp8FPZsDXU1Lb2f+3xuE1DO0bvESAB7FfheNRjSgHb5e0FptW5BBZv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MMk4QP/csPDcHlW8igvadSH0O0y1JcisbRx107VWuVtWfReYPty53gn5VHYE6uf3xoSjuNEa7TLQw2UUVUGqBPKWS6LX/ZY+zOo5EsYBXMUcctPfn1kvN5ydJJVj3sccgkB/nrroYu4hYCnLsA57rxYRcjivfqHS7LEoxxqYi95pCzbfwXAJnIPjTvissM4Icd7jYT92oDpMP66ljS63eYLku0+fGUfFnu7/4sLuFK+x+trXE5BNzPwVmjny9S/nhIcjApa0uH9H5fMYS+4UIYrQMjohdsa51ylMa/NtQg== 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)(8121501046)(13024025)(13023025)(13015025)(13017025)(5005006)(10201501046)(3002001)(6055026); SRVR:BY2PR0301MB0696; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR0301MB0696; X-Forefront-PRVS: 0021920B5A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB0696; 23:DqrdlJGObiJVLj0yH0Nc8I44I16lvwDXdNg7kO4?= =?us-ascii?Q?JkdJzky9N+NzqHAvzMNh9wjBDjRZY+4quWzzs7oHEwjM2CAS+vGkxPw0lRbW?= =?us-ascii?Q?AmC+ftajd2X+o9AjOK4KmFbvl3Duy9J3oRNBXUhuXolbjYEZq3Y19ViVPHrH?= =?us-ascii?Q?KlhGUf9uNNY+grZwZ3QDkpb8o+in9HEmJmlif5TbiUocSxO+D4d8Mvqn2Qxq?= =?us-ascii?Q?pQt9lVvWHXazXKYA+BtfO3gtxLM6NSWCMGoFZ6ulQknUMDz+i0+XETnkmE3e?= =?us-ascii?Q?DMXvRBHks9oRl4cEB1aHfjeMZrK9yUpiLuPbHGKVgetFincNKHXfuWKfXQbU?= =?us-ascii?Q?gqztRym7B84S7Fl7xoJ6M86SAfX4ftwX6fh2iBZtiyCDNKfSXaThxZ9aFq1C?= =?us-ascii?Q?LcNURw2ui9aF07AXWDG7w+5z0iO6fRg+2SP5srzEYY0IctVFtLY9n7kYlfj0?= =?us-ascii?Q?11H7HIn6FLOijs0y9iw8KQQJGj+r33wzGbbm8UK1WnZJ4es0P0r6uFB/4X8I?= =?us-ascii?Q?R7NwhST5sUmJtCCAXakPTR9SiMqD0+dKSfJQPJEshyx0rd235sQnLmie3uqE?= =?us-ascii?Q?E1KMrVg0nw3/piBi1VmEs9//TgjFWzmz9+4r4h1SVEO/olDE//xn9SSuMHqv?= =?us-ascii?Q?FiHg+/BXGexhwHoH4aEtZsUN+A4nD4rIu71cx7AbYHUrNymjDlai+VvAsl9x?= =?us-ascii?Q?xAi6AZ1e2VVw8r9QSheCSQanV5FgB8Kh1vgJq5JJxzEEG478HaZaNFETq5zK?= =?us-ascii?Q?HI0L89CrHbYDiUWMyAOGV27cGussJCED5TQh1mNOVCFtWhT3AAToObEaatTF?= =?us-ascii?Q?5FTnciJ60M5kVz1lfRB/ZlAfGVUcKsPDPZJtHMOC1JiQLka2th9RaGtHfMZU?= =?us-ascii?Q?JK4RLSczrRaChskC1n9SaYf6we+wHrngkr1u+5W6DkvbOQIY9febQUz/nVuc?= =?us-ascii?Q?ID7vKfwUDs8JaP2D+8OqKwtDr/Pdqh4l4sEHtTVZmXE7+i/egj4U0uLcxeXX?= =?us-ascii?Q?0q8KDgB3Z3gg7ajIR6AkRV5byrpjI4h4n/hUGLdf9HOaQnSHdJR96e7GujQN?= =?us-ascii?Q?ydAPyUVzmdzE1IBzRUE7cg8rRc63DcTbWQvjzYC4eYCBn3hSZzYdrP8Awb42?= =?us-ascii?Q?oHkQl1UT64ym7qC+gjlsL3rCR2C0WHoQB?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0696; 6:3UoFhl+LzZkVQbsIwgDgsHTr904oooTBVdNgGB2R9ctaKtoEJ7CKiGDIP7Q6N4LKVRe90Rgvhudfj7v7hmOFkhSMtnFclbsPtvbzSVilXrIP3jCUJTu8LXG5uHQ9m12YZXsjqqIN5orEDqvMcK2TrcENcbIwQmIgxvyy/r2+VonbhAVLZLwO3A6+GGaZ6/SFAs/eH2NVIr4kIX0R1nMcIW5X7e2i/KPcfwgegM7M+5cQgdnAImKgcCHLjZnmWcjuQNbMn7/x4IHChSQ0ynLiwJ3xSZWh4Vtxdd3Mko71F7k=; 5:H7qTJB+5+2ydZgFr7FGkdsZWGt8nuhDrwcpz7+bsNwV1HJSjZhn9hrfJZDttpOs1g3qUgJRtPGHtiDfOxHk71nOMYtW3ztow7z28FcfQBh4Mda7fBAFiMxBPNu+a3ivmKPP9uTnEU6yBBJaDyTSkx1RSulDvXXYlfR5Pb2mnBOg=; 24:BC0ICLht2bKMkYwN5ubWNkMNqMgwtQxoucdmt6vzPd487/HzFmjZh4WRPtxwnuWt8fNCl4Ev5eCh7zNjoEM+hmLl89c/OkGgw6H4gN85bUU=; 7:aqQvfEi94hKpVmP8pc/22IWYGkxgtcTGMaho2Q7zsw2qwRVEO2q/jxqZgDnu8/a8xe+o2SsuRncGA7UfPK+5JKmXhsEC8px0WS5EMvGpqNCxN/d0pUL9NhV8HnIPltr1w/dFYBDQvHMFwSai4duDnnGe8EcHEnp/pmQvFZWhI8cYo/BgEKqLwyeMiSC8SrTOo1gYFm4C/JxdFvCiBrHoAYp79U1myLwcnYHXnKohu0QdbbGwlOo5R6SGuqX6YrgX SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2016 10:45:12.0630 (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: BY2PR0301MB0696 Subject: [dpdk-dev] [PATCH v7 09/17] crypto: get rid of crypto driver register callback 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:40 -0000 Now that all pdev are pci drivers, we don't need to register crypto drivers through a dedicated channel. Signed-off-by: David Marchand Signed-off-by: Shreyansh Jain --- lib/librte_cryptodev/rte_cryptodev.c | 22 ------------------- lib/librte_cryptodev/rte_cryptodev_pmd.h | 30 -------------------------- lib/librte_cryptodev/rte_cryptodev_version.map | 1 - 3 files changed, 53 deletions(-) diff --git a/lib/librte_cryptodev/rte_cryptodev.c b/lib/librte_cryptodev/rte_cryptodev.c index b1e82b6..2a3b649 100644 --- a/lib/librte_cryptodev/rte_cryptodev.c +++ b/lib/librte_cryptodev/rte_cryptodev.c @@ -533,28 +533,6 @@ rte_cryptodev_pci_remove(struct rte_pci_device *pci_dev) return 0; } -int -rte_cryptodev_pmd_driver_register(struct rte_cryptodev_driver *cryptodrv, - enum pmd_type type) -{ - /* Call crypto device initialization directly if device is virtual */ - if (type == PMD_VDEV) - return rte_cryptodev_pci_probe((struct rte_pci_driver *)cryptodrv, - NULL); - - /* - * Register PCI driver for physical device intialisation during - * PCI probing - */ - cryptodrv->pci_drv.devinit = rte_cryptodev_pci_probe; - cryptodrv->pci_drv.devuninit = rte_cryptodev_pci_remove; - - rte_eal_pci_register(&cryptodrv->pci_drv); - - return 0; -} - - uint16_t rte_cryptodev_queue_pair_count(uint8_t dev_id) { diff --git a/lib/librte_cryptodev/rte_cryptodev_pmd.h b/lib/librte_cryptodev/rte_cryptodev_pmd.h index 3fb7c7c..99fd69e 100644 --- a/lib/librte_cryptodev/rte_cryptodev_pmd.h +++ b/lib/librte_cryptodev/rte_cryptodev_pmd.h @@ -491,36 +491,6 @@ rte_cryptodev_pmd_virtual_dev_init(const char *name, size_t dev_private_size, extern int rte_cryptodev_pmd_release_device(struct rte_cryptodev *cryptodev); - -/** - * Register a Crypto [Poll Mode] driver. - * - * Function invoked by the initialization function of a Crypto driver - * to simultaneously register itself as Crypto Poll Mode Driver and to either: - * - * a - register itself as PCI driver if the crypto device is a physical - * device, by invoking the rte_eal_pci_register() function to - * register the *pci_drv* structure embedded in the *crypto_drv* - * structure, after having stored the address of the - * rte_cryptodev_init() function in the *devinit* field of the - * *pci_drv* structure. - * - * During the PCI probing phase, the rte_cryptodev_init() - * function is invoked for each PCI [device] matching the - * embedded PCI identifiers provided by the driver. - * - * b, complete the initialization sequence if the device is a virtual - * device by calling the rte_cryptodev_init() directly passing a - * NULL parameter for the rte_pci_device structure. - * - * @param crypto_drv crypto_driver structure associated with the crypto - * driver. - * @param type pmd type - */ -extern int -rte_cryptodev_pmd_driver_register(struct rte_cryptodev_driver *crypto_drv, - enum pmd_type type); - /** * Executes all the user application registered callbacks for the specific * device. diff --git a/lib/librte_cryptodev/rte_cryptodev_version.map b/lib/librte_cryptodev/rte_cryptodev_version.map index 1fc0d57..9627ac4 100644 --- a/lib/librte_cryptodev/rte_cryptodev_version.map +++ b/lib/librte_cryptodev/rte_cryptodev_version.map @@ -14,7 +14,6 @@ DPDK_16.04 { rte_cryptodev_info_get; rte_cryptodev_pmd_allocate; rte_cryptodev_pmd_callback_process; - rte_cryptodev_pmd_driver_register; rte_cryptodev_pmd_release_device; rte_cryptodev_pmd_virtual_dev_init; rte_cryptodev_sym_session_create; -- 2.7.4