From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0048.outbound.protection.outlook.com [104.47.40.48]) by dpdk.org (Postfix) with ESMTP id BA0BB8E6A for ; Wed, 7 Sep 2016 16:09:48 +0200 (CEST) Received: from BLUPR0301CA0038.namprd03.prod.outlook.com (10.162.113.176) by CY1PR0301MB2010.namprd03.prod.outlook.com (10.164.2.16) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.609.9; Wed, 7 Sep 2016 14:09:47 +0000 Received: from BY2FFO11FD030.protection.gbl (2a01:111:f400:7c0c::155) by BLUPR0301CA0038.outlook.office365.com (2a01:111:e400:5259::48) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.609.9 via Frontend Transport; Wed, 7 Sep 2016 14:09:46 +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 BY2FFO11FD030.mail.protection.outlook.com (10.1.14.211) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.587.6 via Frontend Transport; Wed, 7 Sep 2016 14:09:45 +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 u87E8BCn013556; Wed, 7 Sep 2016 07:09:43 -0700 From: Shreyansh Jain To: CC: , Shreyansh Jain , "David Marchand" Date: Wed, 7 Sep 2016 19:37:56 +0530 Message-ID: <1473257297-7221-5-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1473257297-7221-1-git-send-email-shreyansh.jain@nxp.com> References: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> <1473257297-7221-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131177309862467194; (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)(5660300001)(2950100001)(92566002)(8676002)(47776003)(81156014)(86362001)(81166006)(626004)(5890100001)(189998001)(77096005)(106466001)(8666005)(105606002)(356003)(76176999)(229853001)(2351001)(7846002)(50986999)(2906002)(19580395003)(4326007)(36756003)(50466002)(97736004)(48376002)(19580405001)(110136002)(104016004)(586003)(5003940100001)(33646002)(87936001)(305945005)(8936002)(50226002)(85426001)(68736007)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB2010; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD030; 1:dumwELl0tG/3o8a2KBmdLgr3Z7pSrXlg8Uxo2DzRMbpeuQpBPCKE5YmKnAsYLi/mNBdMtazbGSBM0AU7jRcByEjKGpbdD8ZYK1/3fHvHMcVZ7ql8I7aZQU1vkCjR2WF6yHeZZaJE5LZaKcZiLOrE1RUnYW6E2u4Jh+RYgMdXDJGrTemutfW0b6sCEMaLr7hr4Zr1SOC/pDDDu421fEq4DP6AxGwF1mgJxwj9w+q6nYIDmA8paD0OUwZGdr8ZTQdZH/Y4dtangB6gyh87nixco5Yj/A8mMUy9x5/mcyi0SClOEaazPnK3Ml9RB1QryuxNGtgOSkmtGtqIiehxasD2pD9WcAJCp+tch1Vnw5FhEwJG7B/P6/u/TSWNepjxIIidF5KAStjerQ7XUVq+BOfFIpUQe568lBmRaY87E5sg7OMoopy/MBuKisg4e4Om86WKhqibc9vE+FjTmAo/6uxi1ozxhmgOmXwuuqeWAHrf3dgrxfkvlWcJ/nFpgYfkYNMm2xRU+yl/i0R2DmYQFwLozY1q/B82mAhRy3pFNSIWunxrMjsqkEDJV2BHKjwWPCI4agSQL0XfLvnyGiRu3UyoWwezhHOD9ngqd4OUjYEFYGFz2k0C5i0pgJFTI5Psm6++ MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 9d6bd871-67e7-4190-8b72-08d3d7289f55 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB2010; 2:CgZKCqmCmzPrjtQfgQXF0vxwauNFLYVFRfbYm3RrpGvIoptrIziaFeSEpdSyoDTCWzTxjQJeHvCkziRxUeGDaZrRdx5BpIJKjJLe+hWvkFqN4yUMF/JanUAka71SXm4fqCRbi5tqRQSAnDd6/gS1TxB0Q72pg5K35ZjMzgY5S8Mhk8h5BrN44wLIwr3bqX+U; 3:xjOiy3uHuSYQgWMsgmOvfBFHATItC2oN28kNxapgt9td1TubXZFHtk3qoGg0M/0WIHVm1qYugneqXVae8k0ST9xoNhLSPZEWk9CIFZ6laegPA7ew+5RavmZCE3HGjwYKZsVmTCFZBcTArB+Z7xxhflbynYOxPs0Q4iJtmspedumT6hoYmcVP9Gk1T9X2RKtobnOgp/EPuojl1W6IOhKFBKWLsXpn3TyCmh+9A4hUE9g=; 25:zU0doz71TOKK8ztRCHoBkygMxssOehrHyv8Al6gkRkdmW/zBJ/2X6OjaMgDuZG9+qrL6u/Qk/wX21NSOBjoGhp6a+OsKKFX6s9O0tQlidoBgfaMjHL19tB6BGHBvNGyT6M3JX5nI3LuyTPL0T14gz0oUbfUIFI0/X88xLlJBNn2lb4EjuzHr+JA9Hs3irShsVsGOSmD5mht6id3nW/6DkqVwxr7dN4OQA1seXp1KaPP4g8q+H+mIwIcIIrnOTfS/6iznEZwWgBfpizgZCWe/xVpdKknJ6sz2GOqQt/3XU/7PfhMHdyUAwN+tJhLqSW3ot7J37IJdmggmXiJ08B+nHVEUqOIGd2yCQY+qZLRdtlTACk9Vm3rj0EV25BXsNkqSAULZXpg0vYWsHIFe11GTBKAY21Qe31CrrA/9ewm/7OA= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB2010; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB2010; 31:x5SsO8Tc3HKeHkfVVykKFBUa7OVO5/V5uQu6hzsNsjYPOgCH5PdeWt9QjTOuzADuRj//W2S23D2gtJS9BJfyPR+gnFCihf7J4coGK9ecfHY8wMjIK4R5QNe7VR1Z3M8VKR0WyhDyaMusVek/DNa2WGv2ewkOeY+UVI/c/Rse15IO9A3t8xvtuifXbPHmiHu2xbwWLLM1rBsFOWNuLr0UtV2LXJ2sksswDIL8gNJjbZk=; 4:GR8n8CziWzy/y5xqpdTqibPLI9PiYmLfNFPVIDHnL/ZQMHXYe5ZdURK2fDXw981fOb/yyzMyujj2rNcqogpnjI/G/yv/C7OhpZgSfx9p0nuux1fBAE73VRi4e97OsNuhRVwMOw6b54hPCscmjokOEAv637YwmGn0+1aThwcw0++o1HN0uSa/UhGkEGhObDnGg/fE5SEyaUhONOYiXtmyD+sIlJXWI8CVrBgnk32R0207o62tRhxCP93VODDUzrIYTtLfnhtGT8hJW3Qpk5mp0CC/t565nzYCLtBtK4U50e8D2xIFaCtCW9MHmXHk2IagqQFlWQHAjcNcsBPwMejOPLJu+MLyZWveAEfWk0hf3ynlIKDun4FU7O6eNa9P2vs1Pbmg8/3QnECzfk7aXWGUXdwGFfccKrJF3DdLLoDBbs60oEHurBGcmI4HLh32fWDRx8mB6f3BXP8kaXEWSNKeXIsdAeuTUu2ILBHqNmPBuMh4HD189HlDWcLOSK6/FOeIdlhLUCVb8Q7sP4Gami7v5OLouRanJzpqlHGtJySYJno= 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)(13018025)(13015025)(13024025)(13023025)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:CY1PR0301MB2010; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB2010; X-Forefront-PRVS: 0058ABBBC7 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB2010; 23:BYHulBT0+S3cGC99MPsaF/eHdY3R5EtDqR2y8Dz?= =?us-ascii?Q?LMv3je8by7rZthUodeuDmHapwpjYxFQ6iWN9i3HO/0limUkWWz4wRcirriPg?= =?us-ascii?Q?hG0z5TGM/i/hYJ28iSOkvlk8mbsdjYMFbM5sUFS0bW/W0Mur4OxnyGrNQOab?= =?us-ascii?Q?x6kUg/90+yAx74lcthRaz2zworMb42LUmpi2VkEigssIUnHH8jtCWHszWGw6?= =?us-ascii?Q?3ncZo9tSPWL8O5tQaMkGtrx5rVy7OdoJQw6jUNx2PUUF/rKdrl+8wkxEBfBM?= =?us-ascii?Q?SG8L7Mc3lmtK/w8a5wg7o/+u9BpHdEVsFPLUxBQftTNTCIOp7d4NKmoGI1Yv?= =?us-ascii?Q?dMFA7Yd6UGsZoRTKbxRRKwIJQBvlmW+wfUZPD66dMGoiTJKVFQG3aFJvtm+N?= =?us-ascii?Q?g4LZu3ozSGMosDboMZn65fiaX2DKez3AT/gQzMTzx6H8si0vA4M0q734WXXr?= =?us-ascii?Q?tgg35TDJSMlrEGDbgSVkq4HnDbV0WmfmGqShOiojQI9ohy0AkJZkFk26hhr/?= =?us-ascii?Q?kwMDWJLvxkOf0cqgwGoO8LLwe4YUTGqPD/GTeUXOwCCnaIOEN7FCWAvM7Bd6?= =?us-ascii?Q?XAm3JU99PmDfnH8xwH+BAZ9r1RZbKs2PMzW4rItDQ5tpRYDJbcIo5b8BLTmr?= =?us-ascii?Q?BT6Y9x44RcVHLo8oNDPTAP66u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cjELqZhH+VfdD2LhpRpD+8I4j7SfISKAudi3dFZu41X9n9W+k7O/DZzPpb0tkN/8aCQDeQyQCpFmhbUz9nCLmtOEATLPtcMLA=; 24:DMJxTUQFTuMWYwjsE5MmbQjaCKMsh6+KTdeL1QekT+mBIjK9F5wE69TrXJInvbvCouF2iRbE1WqCjL8AwMEqSBIXkSv8stQdmKAipDC8Quk=; 7:jXIFkv0L1O2Y7BANdLQ5eVpE62d4bNDXgNDXcmYrecbqyaL+0Xx+4PWv5iAXsWJusMrF8oBigr+8A7/O46YuQ9v1gVf3p22yaXyMAvuZ1QEXcCdYMZFj7CFYbWHkQienbv7pq2yS1NPx/ENxYl/IuNhE4F0n9RTBUfm8FkOcvOgQX1xdaeIiNyQXq09yJUswPL7Y3dhNDjbn9ozu9+BnMZTPTYG+O6bNzOb//NXY7zAmeV1mzJfPC+G2buwqZs5h SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Sep 2016 14:09:45.9191 (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: CY1PR0301MB2010 Subject: [dpdk-dev] [PATCH v9 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: Wed, 07 Sep 2016 14:09:49 -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