From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0064.outbound.protection.outlook.com [104.47.34.64]) by dpdk.org (Postfix) with ESMTP id 49673379E for ; Tue, 12 Jul 2016 08:01:11 +0200 (CEST) Received: from DM2PR03CA0045.namprd03.prod.outlook.com (10.141.96.44) by BY2PR0301MB1989.namprd03.prod.outlook.com (10.163.196.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.528.16; Tue, 12 Jul 2016 06:01:08 +0000 Received: from BN1AFFO11FD026.protection.gbl (2a01:111:f400:7c10::142) by DM2PR03CA0045.outlook.office365.com (2a01:111:e400:2428::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.528.16 via Frontend Transport; Tue, 12 Jul 2016 06:01:08 +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 BN1AFFO11FD026.mail.protection.outlook.com (10.58.52.86) with Microsoft SMTP Server (TLS) id 15.1.523.9 via Frontend Transport; Tue, 12 Jul 2016 06:01:08 +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 u6C60qWa006202; Mon, 11 Jul 2016 23:01:06 -0700 From: Shreyansh Jain To: CC: , , Date: Tue, 12 Jul 2016 11:31:07 +0530 Message-ID: <1468303282-2806-3-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1468303282-2806-1-git-send-email-shreyansh.jain@nxp.com> References: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> <1468303282-2806-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131127768683381258; (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)(189002)(199003)(36756003)(189998001)(4326007)(110136002)(11100500001)(2950100001)(68736007)(6806005)(86362001)(2906002)(85426001)(77096005)(50986999)(8676002)(5890100001)(97736004)(48376002)(50466002)(5003940100001)(92566002)(229853001)(106466001)(105606002)(33646002)(81166006)(7846002)(87936001)(305945005)(104016004)(586003)(19580405001)(81156014)(2351001)(356003)(50226002)(8936002)(47776003)(76176999)(19580395003); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB1989; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD026; 1:TZJvFzwG+j22Q+ceO3Pfpv4v+khrGEZm+eQkFTNtZepHy7we+QccSpFTB/HwcmaF3v/adT2V/afcRadVG+khO52yk82s9dmxN3fUWhdnq6oAduXhVDxCUqo68EMVhf+gA8obJfDZKhoaw1FBrGnswQBQVMwluDkpJp92z17aRQg2DUJA1DX4/UEaJA2bJShzrXPIySnw8ZAEtTGBXvxnZ+PrfjA+FNLuRFiQm40dBTVZu3NM+rGq9JdNS5R118N1IHEgML9E695xYhrwOh7YZEiDhFWc4t8G6yZzjJLNRDUh53bt/4owdPS9FUIbkMKc8IyZalVQVsIjhSX/LVCKtPtQ//gSD8RorBOKd7vc/LGphIyw08QEJ+9dQ+1L7ceF1V2uypEbd5w+lH6w37B+PbC7wIIzh0e9pp6JhqJUBgYuSCobmIRoJpESRSbL0qsnxwtmMHGx13iaUfkzsRQDHAna3yV5397kSi2CKXxG/wwUSE0wpyZCI9gKcZLi9XI1sntQMIl85MSg2Cnb5hyHL7GLvsb5JBld168McJHIlGscZjGSjA66zaaCHXNTsCZI0JhybEEckS43iuWTPF7Wt1HmrsuKvlWP+AOvF+0+vMly99gSxjmNEGAMDVp7lp6T MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: c6dced45-4751-4c62-3f48-08d3aa19eb02 X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1989; 2:bUljim6YJg7RzAOpwxY1pZ47xzcQyy91C5gvFuStcw8HCXCKx/IhwUBp7Nyk5Ct1YXUwJQO9fz5Wjz32CRPXFxrk5FvarmIrv5uHTA960uVBy9a9quxd980QVBNA35zGiagD2PhiKuAnSXLBDrQ2dt/MsxaQHl63Ns/yCjTSxW80L/4H5nwjd2lATCXfLSQT; 3:bnrt8zmQQbRDgvEHYYccS68xNZLV97HFG8zYdF47JiBiMlel++ds8oppAuJRmLg5zdtuEezhSE4cDcIWZl81AAzVNSNGxFkd4nS/MPuKY8JMs7xQQerE+Eme6bZnLPqSgWIpLbOfNvQVkhRTHEaNMtGt7IQfbU0RdiLrNO/FrtvliCJOiQjg9sy+bVxQ21dPdHO4GXpusiuVsdIj79P1IruDtgrfz9QWDZbI8kFzUxI= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB1989; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1989; 25:C3WtUZxeg6WVXG9qQijLkyn1/FvIf1q2SRFn6xLP3zZzz9KsL8MPwUQbPwRHIh7GJ0URgX9r6V9e5DEBW7JTziXy61AlBvj0Br7GKR8hQySMxWt58PcZxdIRT6CPTQU2gOCkFZNpVdNk4tsEeQhQkGcjVhqur3rUJq50gJAGaxRtbB4ye/AUCMPMrRkZbp/TeQ++0Tnj85xh51aO3TW6iFgW7vxRavnUsBGnPSXjLTppCKOQ8/WzVoq4XI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WtvyMvvFH39e5d7dDtjeZwTPn6AcGxBXpEvKRXr7VhKYSUNDPKXHz+8fC0gGR+6/GKlc4OPaAcwmadrMzOgtWw2Dw5J3jz13l/kzgKsA6bJhgX3zZrd22RH/w9y+tcuOWMvH70IFR93+2LlkoAT00eWQ1xT/Zmdz1Cu66qZeNxlAT+aPJ2Dhg7EIDtoYPLz23wDlIxidPdlhSA3DB4ywcu2FHsoj9zjFYS/noiVoY6RM3sTyNg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13015025)(13017025)(13018025)(13024025)(13023025)(5005006)(8121501046)(10201501046)(3002001)(6055026); SRVR:BY2PR0301MB1989; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR0301MB1989; X-Forefront-PRVS: 0001227049 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB1989; 23:xsKKYhmkeYyad4/60S4q6ZoFc8YmCep9Bpi+e7U?= =?us-ascii?Q?it8mTxiOaNcDunrLiyGunAp2S2+E/pP+JKgJ7VcylADMod5H8wGOk17X7yYS?= =?us-ascii?Q?RXVOxTp0/gvePUVEjoPzNYsyn/ziCt/TTY3CVVGxKlo6cLfER1+Hdq63Titb?= =?us-ascii?Q?Zawn/uTTZhKAqy/UTRnYnZuXgvtSuP4wtHbB28820AqOKYnaOMfryQq+Gtj+?= =?us-ascii?Q?lkkChjDP6iePzFuzET8FUSywZrHLvIQ8qBlyQtyg1DaHpuOjWApz4H4P/8rA?= =?us-ascii?Q?Zm9WmkT7OEKfPVAeMhm7bY3M8ff1gTWcYr9G7N818veCHKFssO5t2pYO1jwv?= =?us-ascii?Q?pVvZmgs9yb+XLTcit/3IAd9IB3ZVn2Uwr6JwqOBMQQOwDHmqaDT5NbKx8QSf?= =?us-ascii?Q?6uFweEkvBLkcgd0Pf3YY7GKAWDfFpYkE6HDIw4eT3rn72ux6rXK4PmTRONyp?= =?us-ascii?Q?d7PFhC+ihAy3x2XnZMfewZBl7VoxbdaDMMpafGe6+MoXKD+vpE851hN9+yKB?= =?us-ascii?Q?iewFQUfCQPojUDkvt5lDgU34dN+GzKMYN15Xk5wleMv6mvSPSPv24VsiB/d/?= =?us-ascii?Q?MfBAIcWl5gMvURE9NvZNPZpqqPFtFWjxgKkiCHBXIV6z2cJoxx34KuewybrX?= =?us-ascii?Q?+S+sxg9aJNwPrW2yqlgJ6v9XJywAh2su+ikfPEwBMtuqKqqOLgsNTNU9pjUg?= =?us-ascii?Q?XZ6LlFyKp8L7xS30Ntl00a9EqKzUD2G7pDkfIRER8ml/lqyoYIPsxfqdoKi5?= =?us-ascii?Q?kMANb4pIyVp56TQlCmTehOrgZ5m7q8mC1Of7fInr27dedXVEZkZpR5wqDweO?= =?us-ascii?Q?O9wZGbG41i3OqXsRGve2V6Uk3sKxAN2k4cd//v3BcvfSnq2Hrqs+1peM3jdW?= =?us-ascii?Q?C8XH8lux8DKBSKAqyCe77y3sUa7RJq9qeaxbBcITunfVlc3D613SAKicY7VV?= =?us-ascii?Q?or4YPFj5rVGb2TLb3V+Su0B3dhqyagHHzoZvZYc6urxkjmYSEYSb8ya4bdiM?= =?us-ascii?Q?BLDWYeyzwP9idhEptDdLWsLSWax2zEpXE8U9lCmeiJEMyFhR/74uYqs0JTFY?= =?us-ascii?Q?u6A1p5/+C3i6FlcpoHAcP3bNVfMetoN6yA46ost7CILCHvXzbBzgijqbsI4Z?= =?us-ascii?Q?X3eQdUt1Ih5FPCJJoc8/R2v+pIBnyupZ4?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1989; 6:G5YCn60c67YmCjpMNbUDYZsfj3kxfp2+GY4bfTpfmJDFkb1ToqB0u00fwb87fhOlPsIfekV+aL22i1ehR2JZFgdeNZfkKUXLVjTy6HaAribd/xuAmwd94ioE3KJ72HnvuCLknNTsbhYu0k1QNwQFWiH7+9Gz0YTkbx+8beFYiRPn13F28gFUo4oD5K5us0UF0Lzs6YjiJultCdvyIycnKTr3qAUL3GOJ7e3Hwt4cqKNNFl5L+T3EWwfxBmnQSvGhfd+7PnoPe7iaf55DL5r8XZ/BMR+prlFNH60vVNiYA+E=; 5:uGVJWMvrLjyhc8NRRbGxxsqjir/wKjMo7SZmCRh7XKwx3Sc3tLdCc0IW8bedmBxUMNYZoXxIqvAzSf6VWqeMkaRefuBAUv3dleciZme/xMh7Z162T2SUyOuTptOYBobpguwdNo9xz+4wmzqnpdhdDxFHzMZjY4AneY6ZYp9t85Q=; 24:31F3OAwjTNqi5grmtGulu2CG17Sr4jmZFxXxwagIveAdcd9ZXhAQ7nCjGoxXhyoB2vA9vtKloVovWSJUCbWTsbffrInM4Yq+JtPHc/69/0A=; 7:gZWmOPXVXSDIdSTK7bwt2E2YhvMa1CpJKOPc5R54gd/rcXEssnrmoP+Q+BMETPHlonVPkadwBWpUa10+MMnK7bmz9lzfV5XNouvC6x5hwviTSWjW7za0ezDe7lknBpU/EukwCKVef9JKYAh3Wlvg7M5AEOZ7wNaF5DuQeQg+leMqtPcPDxlww1me7KBFZJXmInPJEeWJqcpb6OPXnh8fHI8l4V2PN72i45ZAbS6LkTMtzXSJ+JG7sRdXtKG/l6YO SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2016 06:01:08.1353 (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: BY2PR0301MB1989 Subject: [dpdk-dev] [PATCH v6 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: Tue, 12 Jul 2016 06:01:11 -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 20e5beb..c3cc3e9 100644 --- a/lib/librte_cryptodev/rte_cryptodev.c +++ b/lib/librte_cryptodev/rte_cryptodev.c @@ -321,7 +321,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; @@ -360,7 +360,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++; } @@ -409,7 +408,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; @@ -451,8 +450,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