From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0044.outbound.protection.outlook.com [104.47.32.44]) by dpdk.org (Postfix) with ESMTP id 1FE7D590E for ; Mon, 1 Aug 2016 12:45:17 +0200 (CEST) Received: from BN3PR0301CA0042.namprd03.prod.outlook.com (10.160.180.180) by CY1PR0301MB0700.namprd03.prod.outlook.com (10.160.159.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.15; Mon, 1 Aug 2016 10:45:14 +0000 Received: from BY2FFO11OLC006.protection.gbl (2a01:111:f400:7c0c::197) by BN3PR0301CA0042.outlook.office365.com (2a01:111:e400:4000::52) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.15 via Frontend Transport; Mon, 1 Aug 2016 10:45:13 +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 BY2FFO11OLC006.mail.protection.outlook.com (10.1.14.199) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.549.5 via Frontend Transport; Mon, 1 Aug 2016 10:45:14 +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 u71Aibjq018422; Mon, 1 Aug 2016 03:45:12 -0700 From: Shreyansh Jain To: CC: , , David Marchand Date: Mon, 1 Aug 2016 16:15:25 +0530 Message-ID: <1470048332-27318-11-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1470048332-27318-1-git-send-email-shreyansh.jain@nxp.com> References: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> <1470048332-27318-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131145219145060468; (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)(189998001)(8676002)(86362001)(87936001)(81156014)(104016004)(356003)(305945005)(2906002)(4326007)(8936002)(50226002)(7846002)(48376002)(81166006)(68736007)(110136002)(36756003)(47776003)(77096005)(97736004)(5003940100001)(106466001)(19580405001)(105606002)(50986999)(2950100001)(76176999)(50466002)(85426001)(19580395003)(92566002)(2351001)(229853001)(33646002)(586003)(26583001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0700; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC006; 1:j6YodJyG2bBZnchFvEP+4EY5A6FzsybLaj3t7pTgjl9v2Qjc8Km9K3FRwjbYYSRaipAk/wr4P+ptnJcI8YE/kVB9FDwV/i6kXELbCQ8uHVhyINEe2OfK7KkSq+navOOxov032uUm9SFua+o4T//6FzPe0nSeV9CXpZJUkAn7VnJ2MN2d5xTwvHdUxJo038fsfJPb1Q/UCZyzZBltmHR/34OYLEcIeTof8wbCa/G53gqdgQjXFWxKm5ct7X5h1cO4kXw59a2qDTi+vx8Mrvt3Jg00eEM2NnuU53XBvHrEi+LJIYURBl4dYZeietqZa1GU7C0Ai2cF989+R4kAl+UeWNKpK9v8ya9JlUp4sqYXWyN7LL27cDQaNNdQqcrafehELvUinnQT98bS23JZ+SokzkchNJLj5cDwjz9i9rWkZn9f1YHwkMpV+n6jjinWam8Z6oEB5aQK49XYr31QeSXaYVEy9vVZ97xLer5SSa8lrQz3et4sU4eN9MYws+Zi3c5htRDmYC0DtCJQ0KnV3ZlYV2EA1Tu1CkRin2xQ1kKYsr5x77Qt3AemWQikVLqjdaMZTNOq9VhAJVwvq5Yd3csRrhypumXn9Lqu/ebsA48lkTLSzsmMeQbWnlsZ1ANsmm7h MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 207cbca7-5612-4c70-6f27-08d3b9f8eb96 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0700; 2:yy7R2t+RdJQDuDGySP+WYxQs5TKpCsp6IzfN0dUOua6NP94ct08lId+mUC6Eut2rjR3wUbQ5Lxc2nWTdzKDNE5gNRO7f9xLspI7co6qO87zmqjgrHdnQN50jLxR+hJWkRwen5aZHQb0YNC9xGw0DNas1wa2LvxrtyVUG43Sjtcu/n5qOV4FBMRMtol7j3vaB; 3:B8wehVoLfMWrpHG3DMi60EcR0qFxtKQOFGO3kybigRLLyTX/8sHFRXn94R/MuShQIbWpZtkgIH3E2uZ9xiWp7yiidQKhsnrEIoD5nJ105zJogAI7S58GLbnGytcXsOTvPWVdZVG1+YtPoTLXvZgSaTTgkiltbEdMAkm28dN9OHny79Vta/XGihLgUqFIBIW6Ms91ZLhFcTZ1uDiAw1DcsmF2Z+bDC8sI5JbOnbqrbro= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB0700; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0700; 25:cpGzIzxZv01RiyeKeYmeLw2BiZXsuoh2nka0RIId5zYbnzaSngO2UiwyGI+5TPMn0WdpiG7ByTrd9RLUMckvUCSTSC8GvztzP7pdEPfwWeElEDrrhFIGzANHmeqOjV1PZ7pCUNKwsyRUzMEl5s+O3j/6AyxVza1O2RwymZ8GvpthgmV1eVOnMmM4ASOlvohmaZH+n4OQLx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wGzBPArpC9EywwzAdQ96FgPnvZvx1hHHJ9nU39/RWH7aAsm1vw8UTzyvE795idE9wVn5lzPRUkHkXIky1myLEROS+HDq5AnSxSaNTOnSOZojzE2ZRrMva7E78MhU4koTT5XTBxVxfe1Z0rT1KW2Sh0ZLqSV8n+5N5lQ31f4VDCURYwEfNhsjEFLoKwJWY1BV92nHhvz/kEZ5J/GkTHqg7RIhB1riYNcJxyRzD8L50OnUFksnCqS3PbGBbEz8Yfog0xPZE9zUjJIN1DJC4qYij/QCL0UJp0y2ruw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13023025)(5005006)(13017025)(8121501046)(13018025)(13015025)(13024025)(10201501046)(3002001)(6055026); SRVR:CY1PR0301MB0700; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB0700; X-Forefront-PRVS: 0021920B5A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB0700; 23:hQHjMgEcyO3dj5oHYpyXzCXUzhdW750blT8Q+wE?= =?us-ascii?Q?zt2vT0CkCXMdFiK206VhSKW42Dl2o3SCbMnqQ/0iwRIT4cOdDeZWa+f1Tari?= =?us-ascii?Q?ADWLohzcczP1VJKP2NGTP7FXFihYcr0Njaq16kqTVqUEY1pHTazXzhYez1SL?= =?us-ascii?Q?l/FcUSrjDp7I4U9iwQ0DiF+DDh/+hoJ8IEhpNNnT1QG4Qy3rLDo/q2IdlPMV?= =?us-ascii?Q?wWcQx8DJgsE3w1CxkXg1McT9iTaOU3KWqS78dDwVGqx8EX5Kpz6DbOXEHYyL?= =?us-ascii?Q?7FKtF44vV1Dck4l4p1O0zl84GH+3s5cTEsI+hJT41FOEzrq89R3ZgiSQmTxf?= =?us-ascii?Q?pbMuQgynRG2RDKOtezCjSaHh7IuPas0HunX9Sym+eArhvHewAlXScz/8u2Vv?= =?us-ascii?Q?5B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Qqea26dW1W5MgM7HRxQbBLrmbPPnJ0euaDHRBbh8spfLZs3P/+ylPNC+Pm1Hdusbk54L8ReOiyne21eTRDRDTfGZTg3gPmVSNsS677aCA+Mn0VSuzg5wAAlP3uGNGvjK4arr08=; 5:yoZFsb7eGiHzAUfBz5TFk7NjJoNIANvigf9g5V/jNLg9GjkaWKOgcpGSLMnzSupwSQv68FthRHUpeMPqOZsrF1xbny1SUYlkC5LumPJRhISV1FC9ouETwNZ+inqKNghme/BXBHTUmJfiR8A+f7O+KJ5LntSxVWZhFD01LdT2c8U=; 24:OxZGJAmwSkxH+W7vBBFnZ3f6roBuL7KNw2bHC/3W1UTRM4BCCOmXYmnV7TOSAPl1ghnvYIW0/xKtpH6qiAS5FgiYD7QtHqCQTIircPGkQkY=; 7:akoVLQEfiYtef0LBgcscsTRouUyWRfh3VLEYtJ8YabjDh0OfJ4YP1B/PQ72l7q+INkT4QAlzMTTLS4oq5e8rGcj9rkUn8BDF5mbw5LuIr/eYHRjWyNAgGbJIkJcK47yUyeSwWyDK/A+eAKfdrq0hOpYOXULzCK/ez5kzThqXnA4g5UOmoAlq39F97h/VdzlKV4QCouv8c5eFv3ltad1Bz8vDW5VwdUQJUjvUdW3MXLAs5/MyfGG3nzFMFMn/Gu4s SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2016 10:45:14.3032 (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: CY1PR0301MB0700 Subject: [dpdk-dev] [PATCH v7 10/17] ethdev: get rid of eth driver register callback 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: Mon, 01 Aug 2016 10:45:17 -0000 Now that all pdev are pci drivers, we don't need to register ethdev drivers through a dedicated channel. Signed-off-by: David Marchand Signed-off-by: Shreyansh Jain --- lib/librte_ether/rte_ethdev.c | 22 ---------------------- lib/librte_ether/rte_ethdev.h | 12 ------------ 2 files changed, 34 deletions(-) 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(ð_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 * -- 2.7.4