From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <shreyansh.jain@nxp.com>
Received: from NAM03-CO1-obe.outbound.protection.outlook.com
 (mail-co1nam03on0066.outbound.protection.outlook.com [104.47.40.66])
 by dpdk.org (Postfix) with ESMTP id 31EA18E85
 for <dev@dpdk.org>; Wed,  7 Sep 2016 16:09:58 +0200 (CEST)
Received: from BLUPR0301CA0022.namprd03.prod.outlook.com (10.162.113.160) 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:56 +0000
Received: from BL2FFO11FD063.protection.gbl (2a01:111:f400:7c09::190) by
 BLUPR0301CA0022.outlook.office365.com (2a01:111:e400:5259::32) 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:56 +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
 BL2FFO11FD063.mail.protection.outlook.com (10.173.161.159) 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:56 +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 u87E8BCs013556;
 Wed, 7 Sep 2016 07:09:54 -0700
From: Shreyansh Jain <shreyansh.jain@nxp.com>
To: <dev@dpdk.org>
CC: <hemant.agrawal@nxp.com>, Shreyansh Jain <shreyansh.jain@nxp.com>, "David
 Marchand" <david.marchand@6wind.com>
Date: Wed, 7 Sep 2016 19:38:01 +0530
Message-ID: <1473257297-7221-10-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: 131177309963384917;
 (91ab9b29-cfa4-454e-5278-08d120cd25b8); ()
X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI;
 SFV:NSPM;
 SFS:(10009020)(979002)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(5660300001)(2950100001)(92566002)(8676002)(47776003)(81156014)(86362001)(81166006)(575784001)(626004)(189998001)(77096005)(106466001)(8666005)(105606002)(356003)(76176999)(229853001)(2351001)(7846002)(50986999)(2906002)(19580395003)(4326007)(11100500001)(36756003)(50466002)(97736004)(48376002)(19580405001)(110136002)(104016004)(586003)(5003940100001)(33646002)(87936001)(305945005)(8936002)(50226002)(85426001)(68736007)(7059030)(969003)(989001)(999001)(1009001)(1019001);
 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; BL2FFO11FD063;
 1:qOYl2lJfvaUUTS3Af2gCai8VZ/bfyezcU0F5+6tqRQFs49iB9infitO1Is3CNBbIIvmALP/kvmEnxyDCTJbvm9yieebwJvaPv+PBGPP6oe6E2q4vAVALXuYfZHanl2wL0B0i6U84WIDRfo7svDOyA+NxUpN+az7Fs3jFt9XJuv0oTwEBZj/cn7uWaq5me/xwOHHBqqyu22/Hwxlrrhe4QylGB2YUu2q/spCS6BQWUKmnvX2X44Xht+NUvs8rrm0Kxd64RPFsu3Kow62ymhKUajvxc2GB2G/kZ18vYapI5HgirF4+IyzfYRF1DwDX7s/YwCPOvzhBUHIJ4sE7wiRs/t7KBywFap4g6v1a00wt2OgfWXJv0DzO6YVTgutgNUA3e3o//5SYJTCSWQeQzPfi/ZXZ0zcdSWqWZdKeMJTYiEzvvb3A8VkzNBVZswI9KrckssZJbB3vXkW7aKVMtS1Bg/nZHj0wadau6MjLV404oEzr7UFj9HeHH5WJEW1d1ZDvA/86IzvKpAAB0sihtxBjcmsseFyLP+u3WBC+KGeaULExGzrsGvcrG6WGdrC30nv/ID/ftzveGYa9K5YCthtTC1ssmk9Rgzvapr2mdpaf2i8i37cV4ND2bejYfODkVxlJ
MIME-Version: 1.0
Content-Type: text/plain
X-MS-Office365-Filtering-Correlation-Id: 011a4724-e143-439d-7855-08d3d728a56c
X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB2010;
 2:a/D5nDPOB6SeRKq/HAaUo4jzyHPHpgLdnBRnvxhn2cjrOyJZSaKLBR7aDFA4/AtJZ2hmnDSc7B9Uzj4Vye5tqArx4zxeqRz0VNRDfFIHlEr8Ecy0I2LZmUsYF0xyCFvGu7JadYLiWUpXRpsqfX+xD2nIgF0EksQNweF9V7nlVS2W2VsZ4XY7LBcvMqQRiFIq;
 3:BPD3qMhEeXaj6w2O2/MMReRK+8fRnm5DdNJKeQ1QLLWwtzIkEhCMbKc5zLVlvB/6qf0d7rIQ0GLIu3K2U6Av1VbtDeKXryUDTdflTDNSddPgnF0497oxKnH93bqqGatcpUsH3wtGgUFv+Fwk9v4we441V/2NIwTVlainzvzriqmXOBQTZ7bOpLJlkzpZc4JWWFVkfR3uOTHaO5OGoir8qPZ2zqctt31pZMzjUgPUD2E=
X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB2010;
X-Microsoft-Exchange-Diagnostics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I8IbrqNs6kUU3oWP2hC81FiNU14j0ynicymmL4jzFGq7osrwYrPUpqLxNFayRt8YMu1AzCX/TxNENMi65sNT+VI8gvFH0oYos6tK18vAeKM6yKPjgozv9+rIMCLVReC03cnSYxRAR1tdt1a0mTDa37NFmeO5rU4KOIiW3GDsw/NWzaZVybP+sXwTxszMrV3YeRmp1RiRoKFCtTd8uPwtvaK49t/INhOXeRfWDe4EMxEbMuNUsmvhDwlDXdzE5WxpCsAUB2+wAyESelNm5Irn5V56DGX3fddjvUAFZL5nxPrXl+9LKA3f0AnVBJdMHgGtk7IIR6YzbliK8OxRSFx8kJsuyX9DG5G793P35Mgxg97hB9Wyoz52ctoAMqE1qEioIf0YEqBs13d4oyc6hKWox2ipn+UDdhCM/on67FPEsqqnhkmwp3fJ96YRcZyb0DoH6mv3xK05WqRbph6w/UxqTbQfuay0eWieK5NY0cd3GI02diIDaq8sU4qX45RWKgd5a1H+7+2vWj0g=
X-Microsoft-Antispam-PRVS: <CY1PR0301MB201050C4FC699C5DCE67AE1190F80@CY1PR0301MB2010.namprd03.prod.outlook.com>
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:ux8VLa+u8XTpqBEUs2pU7mg5revEtvFF8Xq0hs+?=
 =?us-ascii?Q?whmzLsaHCLpZ/ek6aqW8+wZp903o1LOV+DBlkIvpKtwkPALEG7j26BNzKQVd?=
 =?us-ascii?Q?cjLtZBDvJ0Alq2wpu/aFo4Bz4ykTrkbNqrS5VmfcjYQpBJmXqN7yql959e5c?=
 =?us-asc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rbkuAtCt1XdhDy1KSnu+aikCfi2Bz9Pvg09SRutBWxB4pA1XMVMe1w2HinLWl13fvuSGSHN6wTeVm5yJrgmCTOFBOSyCpUXhkIYjxPhS668gDSYaBnIM9+OiKZeArSsiAKGtDExmaJ9PSoFvTh3Z/MbP9QGkatRORYUF+7ZT2f/2o6CSFQLvpza+e6jYUDmCxN
SpamDiagnosticOutput: 1:99
SpamDiagnosticMetadata: NSPM
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Sep 2016 14:09:56.1512 (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 09/25] driver: Remove driver register
	callbacks for crypto/net
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches and discussions about DPDK <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Sep 2016 14:09:59 -0000

Now that all pdev are pci drivers, we don't need to register crypto and ethdev
drivers through a dedicated channel.

Signed-off-by: David Marchand <david.marchand@6wind.com>
Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
---
 lib/librte_cryptodev/rte_cryptodev.c           | 22 -------------------
 lib/librte_cryptodev/rte_cryptodev_pmd.h       | 30 --------------------------
 lib/librte_cryptodev/rte_cryptodev_version.map |  1 -
 lib/librte_ether/rte_ethdev.c                  | 22 -------------------
 lib/librte_ether/rte_ethdev.h                  | 12 -----------
 lib/librte_ether/rte_ether_version.map         |  1 -
 6 files changed, 88 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;
diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c
index 8825219..3bccf20 100644
--- a/lib/librte_ether/rte_ethdev.c
+++ b/lib/librte_ether/rte_ethdev.c
@@ -340,28 +340,6 @@ rte_eth_dev_pci_remove(struct rte_pci_device *pci_dev)
 	return 0;
 }
 
-/**
- * Register an Ethernet [Poll Mode] driver.
- *
- * Function invoked by the initialization function of an Ethernet driver
- * to simultaneously register itself as a PCI driver and as an Ethernet
- * Poll Mode Driver.
- * Invokes the rte_eal_pci_register() function to register the *pci_drv*
- * structure embedded in the *eth_drv* structure, after having stored the
- * address of the rte_eth_dev_init() function in the *devinit* field of
- * the *pci_drv* structure.
- * During the PCI probing phase, the rte_eth_dev_init() function is
- * invoked for each PCI [Ethernet device] matching the embedded PCI
- * identifiers provided by the driver.
- */
-void
-rte_eth_driver_register(struct eth_driver *eth_drv)
-{
-	eth_drv->pci_drv.devinit = rte_eth_dev_pci_probe;
-	eth_drv->pci_drv.devuninit = rte_eth_dev_pci_remove;
-	rte_eal_pci_register(&eth_drv->pci_drv);
-}
-
 int
 rte_eth_dev_is_valid_port(uint8_t port_id)
 {
diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h
index 37d78bf..b005c1b 100644
--- a/lib/librte_ether/rte_ethdev.h
+++ b/lib/librte_ether/rte_ethdev.h
@@ -1871,18 +1871,6 @@ struct eth_driver {
 };
 
 /**
- * @internal
- * A function invoked by the initialization function of an Ethernet driver
- * to simultaneously register itself as a PCI driver and as an Ethernet
- * Poll Mode Driver (PMD).
- *
- * @param eth_drv
- *   The pointer to the *eth_driver* structure associated with
- *   the Ethernet driver.
- */
-void rte_eth_driver_register(struct eth_driver *eth_drv);
-
-/**
  * Convert a numerical speed in Mbps to a bitmap flag that can be used in
  * the bitmap link_speeds of the struct rte_eth_conf
  *
diff --git a/lib/librte_ether/rte_ether_version.map b/lib/librte_ether/rte_ether_version.map
index 17e7448..72be66d 100644
--- a/lib/librte_ether/rte_ether_version.map
+++ b/lib/librte_ether/rte_ether_version.map
@@ -78,7 +78,6 @@ DPDK_2.2 {
 	rte_eth_dev_vlan_filter;
 	rte_eth_dev_wd_timeout_store;
 	rte_eth_dma_zone_reserve;
-	rte_eth_driver_register;
 	rte_eth_led_off;
 	rte_eth_led_on;
 	rte_eth_link;
-- 
2.7.4