From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0084.outbound.protection.outlook.com [65.55.169.84]) by dpdk.org (Postfix) with ESMTP id A4C6CC33A for ; Wed, 22 Jun 2016 11:06:26 +0200 (CEST) Received: from BY2PR03CA001.namprd03.prod.outlook.com (10.255.93.18) by BN3PR03MB2369.namprd03.prod.outlook.com (10.166.74.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.523.12; Wed, 22 Jun 2016 09:06:23 +0000 Received: from BL2FFO11FD011.protection.gbl (10.255.93.4) by BY2PR03CA001.outlook.office365.com (10.255.93.18) with Microsoft SMTP Server (TLS) id 15.1.497.12 via Frontend Transport; Wed, 22 Jun 2016 09:06:23 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; 6wind.com; dkim=none (message not signed) header.d=none;6wind.com; dmarc=none action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BL2FFO11FD011.mail.protection.outlook.com (10.173.161.17) with Microsoft SMTP Server (TLS) id 15.1.517.7 via Frontend Transport; Wed, 22 Jun 2016 09:06:23 +0000 Received: from Tophie.ap.freescale.net (Tophie.ap.freescale.net [10.232.14.199]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u5M9663b022009; Wed, 22 Jun 2016 02:06:20 -0700 From: Shreyansh Jain To: CC: , Date: Wed, 22 Jun 2016 14:36:21 +0530 Message-ID: <1466586396-22618-3-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1466586396-22618-1-git-send-email-shreyansh.jain@nxp.com> References: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> <1466586396-22618-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131110599832495085; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(85426001)(2351001)(110136002)(36756003)(81156014)(8676002)(229853001)(47776003)(92566002)(81166006)(33646002)(189998001)(2906002)(575784001)(86362001)(48376002)(5003940100001)(11100500001)(50466002)(106466001)(105606002)(76176999)(68736007)(50986999)(97736004)(4326007)(8936002)(87936001)(19580405001)(19580395003)(6806005)(5890100001)(50226002)(7846002)(104016004)(586003)(2950100001)(77096005)(356003)(69596002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB2369; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD011; 1:K+wxGrzBAASL+5B/s6ucbkmVSjSnOVuqAEwo/QFbozu78e1aAJ3k92bybqG0ES/dUkHJBAXI6pspfYg0XCNIr1EAZVY6BWy8KvHAxSTHypkaYNxVelm/ZJnXIQ3Iw+YgTubZ0hCbw1ryW5tAZQDB/Kp6f3+M6EpSi86ouOCbwmwE1W8HdcxPn8sg7rc17Nb3E9JWAENfUN0XvQ+fdVvoJV2BmQsprcVyR7ho71oAZozILIVuMzdsXiUadffmn8peHrcEHU2ee2KDqiLWccIb0WDxEX83ys+GpPBtzZpgwkOZ3+rtkZWsUheVASwbaslFF/SKWQuErmI/1/yHrG503XYOck+UPlZIZxiVr3MIPoA/88l+/aqbPg84dmaK/nEMUgZLgOF4b9OSMhRDOWMtJzPQEPc+Yi3OtyF6Zu/1vfwbrEL2m/9sV4VNhCsLT4xRkmB9qsiA+hz4I/GqHmvtTAXlVmQ2XvTXB764VQzJAbS5BJbK7sBngJVvGSozOCb7WO0TBjpe6GNj2T92smSkeeIomWqRjITljUrJ0zuTZ3+3amRZwCFjztIYhPJ7QSOekxNPaWD/h65Phe104ACatg== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: d5d91eac-1637-4d47-828c-08d39a7c7bc2 X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2369; 2:pOcEu4UZflm9ciIi+FluZ3SDSZ4hRGiDape2ErizfzhTWQyoXIGYOYU8kn5EORH4W7QqBNR/C+3Oy9M9tbbRLmGKqOYa1l6kuU09Y91sJt0ype2AkmPdCoLaxudHeBDcnidQ7DAQXMagqFwNadw6Rj2zK0Gp/PuUymviE5jUrFLRuOaLXUcHN8aDSj9b+fVZ; 3:YhFDQ6ZOOcAz03+w1h5EFDfykuNdtvxs3KGz/SK2njgwYwdrnyjvPMGjf91Oernl3JPSrUBsInrnB7G597DSg6d67H//66ciZq9z7rKdKTd8FR4iVx7W8Dur3DyCVTrtrOIUHVPEmssrC+UqnTGDunjRXH63Nl8bWJaLqOjPaTbSSf67S7S+u/phaxHni9LaDq3eyYCeMJv9QwFXS9hLzcTcNbjmt2VCvNdvuZNp+s4=; 25:88gmW4N0ZOebVhcUhHkqsOoknrzxstMgfg00syj2pNNvguHMjkRwRjfaXBYfV0djpvoB/I1VxuaZ2NidpSh8zpQMDVy9i6vCQAo0LbxWJMWLWV7nYKeJSaVsOvqRKavZjfWUI2DCUrXESlEhdxj/c49VcVPEqUpozXbRsD756uqxwKurMZmXdI0u1M78Cgt6oGFrdGVmm0BSelCCU9x6iorQH2fc+gTjJ4dhBtRrOvB0fTijZ7lC8+8zdIzN7LY1WQDGJbZ8BedcfphwQhrowZUMBk/h7Am2Cr2d8wkCzIUlzThQSTpQ0+w5oNH9TPx9cLpvKXCypxPjgGGIFzfsXyOdqj3UXRJK0redbWLvIHx/TbtyfWIJnWqm7R6cBu2w3HOuMcAQ8N6vy4bn+AAaWXePrwMZKVFvXSZfvYNjdsY= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR03MB2369; 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)(5005006)(13024025)(13023025)(13015025)(13017025)(3002001)(10201501046)(6055026); SRVR:BN3PR03MB2369; BCL:0; PCL:0; RULEID:(400006); SRVR:BN3PR03MB2369; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2369; 4:tTcaUUBqptvUHgSYdTzh/6OuD/aF1Drijam5VVHRgaN4KJjdeGm7c/NsfBL2D4LgeRbMF85n8kuR1+YA0/pPmhUSOrjyVXBNCEa3L4UHa/TS6ChwPNjqERjnPlJaGSxhUpOfYfQ6Rae1ZI9ansjCGw55ze6sOYnhwJDba3XZCgEEE3ox36tV1N8pe5svlSN3OBlP7dt8thmFf0ay9I3jl1SKm/FQQf+1pfMT/CF0zs1b7o9k7YCOkqMlyrdMjOnXW8ClInkgqxwr+RiRea3GQGH3ilzRxQIcYQewcLM7vpXCk2ouOSSnOdzjqpxkVQkH21seUd9or7/Nb8FAR1Mt8JeFoyw5Ltiy63PsDywGjsZBBnf0lG8KVbTKVH6+CtIp6D5OmA2ktwMYt8IIE1SOPdegC8YnEm/fQJkSm573igvPb1Csi1v+xhFRI3dLgtgltHAQywJ1SFsWJC5WY9Fz0ja3k7+tkZgRi1KivsvuVXLhCq9yz7IFzMUJeCygCVwbiqGQjl1kGWBzE4u6+S2hBg== X-Forefront-PRVS: 0981815F2F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR03MB2369; 23:N/LcLmiwL+oNXkZpQUKVqU+7n8S9Bk8s+7RadO29w?= =?us-ascii?Q?Qcwav8bYMwpBKQ4T5WGBPU7IiQR7OddfY6sorX8jwpsO+WBG9VFcqsbzsuST?= =?us-ascii?Q?Pp7zGjzfVsFcDopVmfy6jLQwlqJiL8Y0DagRa8Qwj1Tbt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2Dzx3MGFXJC83pxtpHaC02U+LfGBhOg== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2016 09:06:23.0155 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR03MB2369 Subject: [dpdk-dev] [PATCH v5 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: Wed, 22 Jun 2016 09:06:27 -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 960e2d5..b0d806c 100644 --- a/lib/librte_cryptodev/rte_cryptodev.c +++ b/lib/librte_cryptodev/rte_cryptodev.c @@ -230,7 +230,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; @@ -269,7 +269,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++; } @@ -318,7 +317,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; @@ -360,8 +359,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 27cf8ef..f22eb43 100644 --- a/lib/librte_cryptodev/rte_cryptodev.h +++ b/lib/librte_cryptodev/rte_cryptodev.h @@ -700,8 +700,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