From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0086.outbound.protection.outlook.com [104.47.41.86]) by dpdk.org (Postfix) with ESMTP id ED2B2590B for ; Fri, 16 Sep 2016 06:32:20 +0200 (CEST) Received: from BN3PR0301CA0051.namprd03.prod.outlook.com (10.160.152.147) by BY2PR0301MB2007.namprd03.prod.outlook.com (10.163.196.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.619.10; Fri, 16 Sep 2016 04:32:19 +0000 Received: from BN1AFFO11FD039.protection.gbl (2a01:111:f400:7c10::134) by BN3PR0301CA0051.outlook.office365.com (2a01:111:e400:401e::19) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.629.8 via Frontend Transport; Fri, 16 Sep 2016 04:32:19 +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 BN1AFFO11FD039.mail.protection.outlook.com (10.58.52.243) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.619.6 via Frontend Transport; Fri, 16 Sep 2016 04:32:18 +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 u8G4Trfl029256; Thu, 15 Sep 2016 21:32:15 -0700 From: Shreyansh Jain To: CC: , David Marchand , , Thomas Monjalon , Shreyansh Jain Date: Fri, 16 Sep 2016 09:59:40 +0530 Message-ID: <1474000200-16705-6-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1474000200-16705-1-git-send-email-shreyansh.jain@nxp.com> References: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> <1474000200-16705-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131184739388192603; (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)(626004)(105606002)(356003)(8676002)(5890100001)(36756003)(2351001)(8666005)(106466001)(11100500001)(86362001)(50226002)(229853001)(8936002)(5003940100001)(68736007)(48376002)(2950100001)(50986999)(4326007)(76176999)(81166006)(92566002)(189998001)(81156014)(77096005)(2906002)(19580395003)(19580405001)(97736004)(50466002)(5660300001)(586003)(104016004)(305945005)(7846002)(47776003)(110136003)(87936001)(85426001)(33646002)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB2007; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD039; 1:kz0cLV9VTbjG8x4+grQHM08aGiZjqUMsSxxF8G5mKxLujCOPkCpBxf+65I6SxGILRJ5DPG0S1RZKr22k2rc9rSZ5qjRpiakJ++RjxEEFlytYcrFS5wjdG/6rCUl+GVghXAzc3/+FlQvorc8TlIfqUdXIRk7NF9exgGGNDcnBqbIpys8tcyhEzRrfUDKjjo4TU3hdm++BXoSl4uBvDW3kibYf6PlGzNiicNRVpBaiLgZq7o+Il733mmZyH+dWP0wgU/epWtu9/W5oloUYWtprWC9LsaKiM4U6URcOkP9kds8+p4jMkyfaHRsnsNuM0HP3rEnuJktVoGS4norpLpPq7AY0W1g9DoKztxUe1eaO0niq+amB0WOdnhYNyEKhcOI+HeDqJVuNuJhFP5fiQXUBuYXqq7k0jpGcNZJ6yovddJHMJ6ms6zrnIbizjBQVMDq74RMQTcLL0y6EiOguqz79ApUWRMU35v2UcxYdvZpd8ToKtO6vuyvRj7zLa6kUmcOpJSbhZyZyoU3f+aePhP6XxSw9B7xdp7rIwS8Dtg8Zbozw0vomFGNuSErS0ZzfX/IaKvDOyyaQBycumnBZcxx8dOiTPtRZM4hP9jHZAHXBu1+pQnjqJ7PRS6GENndrdhe+vCqaUOY5gqT3CPM7lW9LJGPi9OdQhL87wn9Lz8FHr6O6QmkUH6HXIoc7tegoeOwuKTUIMRiE9D1qXZWEh7Y1E6Ed0cq2R1uI6t69B5xLAsk= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: a3147382-3338-47f8-775b-08d3ddea71a6 X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB2007; 2:W4+R7yfUKm8HPRsrtKBgUWXIH/j1Z1d1x9e9DVbvMJZGi52Pr+si3qSUqgHHlQKbRl1yEmPrRcSBKXAWwzNxuebdTL8h1ll/nDwmIdj/8PC/ItsY0NzJs3haAVKiYQqYx10I7f2LVy0N3cHxVfM/J4zA0LuYkXQzSjcVLfk/hF8A+nn1Dwz0ieF4QVjYKOX8; 3:uf7r1XrWKO20KGujq9P+RukRAlLO79QWu4isH9pNgQQVnR2TFafgt4b891r5ahhEKxGDMn6VCbrWQ19uzMg7kMBQcWk9LCdg5lWjV7HodNxcsNVBa6Wa4Mv88VW7z8y4Av1OUQS2CY4fs6lQs7T85WaOzlIQZmamykBpMT9O13XjvGmO46EwY9CI7MNKaEZpA3UCvhfRs1otPwy+yTtnSo1QdGGM3zXGYbwQ+OBCmOI=; 25:7aDx1jSrNa4IulEK5Tz9E3CpzRmsUTOgEVQGdT44zAQTv2QTR/iFZAgjYqbPa4clzdYLY+DNt145PxQ68Lf5eVrG7skERLmUycOQGdRTSxybQ4UuhKG4FxA8B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DiroUlsR9gnafjpqFUHAideD6+o8hsK0ZU83csTwscV/0/49OAqqOXprNVVv+uPwFtWZouSlbz5x8XZb6xH5h5he70e2BiwwKEi1VXnh5Vdj0WVZUR2Fq0Q= 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)(13017025)(5005006)(8121501046)(13015025)(13024025)(13023025)(13018025)(10201501046)(3002001)(6055026); SRVR:BY2PR0301MB2007; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR0301MB2007; X-Forefront-PRVS: 0067A8BA2A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB2007; 23:tHasQwQzylD3ekoZQ7b95C/J5B3htPmCLDgqQdH?= =?us-ascii?Q?CNfBqH/rBzumc7xc7Rqha6r08YZ1UHyywWykRIB+nTRjgU8fsvSY80w7EoPc?= =?us-ascii?Q?CL7jnY5a1LNtULtK/jennvDgs9OJoSnzB1vGj7tyJLdyUZk/7DoIy3bQj8OM?= =?us-ascii?Q?yPDJFGxJGuoX3bjCAniTG2FVteX1CJd7LI3MqMSCnIQJl+b82nfwHndq3OS3?= =?us-ascii?Q?3tbX3hB1ChcTLsTcSGvsFpAjePhltdyJqiopUNwdjuZOdyEK1zhC3mw5D8xY?= =?us-ascii?Q?IA0HpFB1prtOAB9axxO55YiR3xQGEIAL6DLStE7vWzlKjWoR+MwTCH/o3vFQ?= =?us-ascii?Q?CWqvcOsMwa3qvXCYxoctrns1TAESLVOSz4cJ/kJm5oFsbqNKDD3+RMjDshbF?= =?us-ascii?Q?60BssmEubTdamiqnuoQkxvgJGrNlGgM0pX77HeaVmq7Tln0eqla9/IEWDDT/?= =?us-ascii?Q?VhbO4M4CVfECE48BBmnQ4d90nPX87x9M3mYOQm6pzY9Xkoutk6/nRUyLG/yS?= =?us-ascii?Q?8f7uMJ7SmTRteStmp2C2T8VtIph8+nf2M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RbnDfwl9ActnuAH+JJoriCXyfJc1T0XT79zbtLnG5oqz26PsmISsIyYIvX1y0HVkgciR4/ymPwPR4Nj/B/REqrQ=; 5:4WHuNiob6aNO8u7upn8EW6kU7jn7qayybne2auFelVvr0cd4r1vgu/yqjXcVJd11GMvVAHSKurQu4rU1XZnwZQXzLRxwPIVYV9xLYPFyypZxljkM/lXOFuj7SXG+PhcCOuxI9Sfu0Bu8Rn67+Yr8a575V70B/0x4FiyJBwa9wZ8=; 24:ldLwV/7mLQr9oKPwOHS0ICzzlaWu9eqooPKYxqeTD+9jqAtuMeYd1Ke95ESejuiDoOyuKe463p1eJcUW89W7xXDFpMNcUkhQY9hxTnkfPD4=; 7:ipQP5hOyAVhz34c9AdAAJOaVFVXeg0Ko0sEPhitn1iQZG3WGgcnXEgPsxVto+4lrDqJdbyfv+gGLUILG202hRew+sXDRxIkpjmzPUinxrJWpg5I0na/DGBajcC46skupbAuqQzigbCtAmmgocepn5Wo/0c5oDNYyNZgUj5KkV5CJNUcW0qptWHh4J/1kA8M4ZupJ1CjFcQqmlrMuNnalNFLX8qHaiQFzisBz8IqNvoMGP9iATtYIvdooZNDkvZCj SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2016 04:32:18.6320 (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: BY2PR0301MB2007 Subject: [dpdk-dev] [PATCH v10 05/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, 16 Sep 2016 04:32:21 -0000 From: David Marchand 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 da5ad73..dca368d 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 d047ba8..1555678 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