From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0066.outbound.protection.outlook.com [104.47.33.66]) by dpdk.org (Postfix) with ESMTP id 418BC7DEC for ; Tue, 20 Sep 2016 14:43:10 +0200 (CEST) Received: from DM5PR03CA0020.namprd03.prod.outlook.com (10.175.104.30) by MWHPR03MB2447.namprd03.prod.outlook.com (10.169.200.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.629.8; Tue, 20 Sep 2016 12:43:09 +0000 Received: from BN1AFFO11FD041.protection.gbl (2a01:111:f400:7c10::169) by DM5PR03CA0020.outlook.office365.com (2603:10b6:3:118::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.629.8 via Frontend Transport; Tue, 20 Sep 2016 12:43:09 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com;nxp.com; dkim=none (message not signed) header.d=none; 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 BN1AFFO11FD041.mail.protection.outlook.com (10.58.52.252) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.629.5 via Frontend Transport; Tue, 20 Sep 2016 12:43:08 +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 u8KCexso006559; Tue, 20 Sep 2016 05:43:06 -0700 From: Shreyansh Jain To: CC: , David Marchand , , Thomas Monjalon , Shreyansh Jain Date: Tue, 20 Sep 2016 18:11:34 +0530 Message-ID: <1474375296-26078-23-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1474375296-26078-1-git-send-email-shreyansh.jain@nxp.com> References: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> <1474375296-26078-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131188489891084095; (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)(50226002)(19580405001)(68736007)(36756003)(105606002)(2906002)(92566002)(19580395003)(586003)(4326007)(106466001)(104016004)(85426001)(229853001)(87936001)(33646002)(2950100001)(2351001)(11100500001)(77096005)(8936002)(189998001)(97736004)(5660300001)(76176999)(356003)(110136003)(305945005)(86362001)(5003940100001)(50466002)(50986999)(81166006)(8676002)(626004)(81156014)(8666005)(7846002)(47776003)(48376002)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2447; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD041; 1:rE36PlifkEDRAvW4eJ6ikRCVrxDhB9cEGCpwota3m0u5Bt7U/vAZISk6+u7gDsuzLiqL4DUvRz21eBmCvj49LyjWjMEPaxIOsZCbTCaDRoDp8LOzsZ+Fxf4jy/uhdcteGRaLBpXLOyTEpBzvFoSMxhbxAgAwCQhT5OiwbIyapPv6z1SgnqGKDIzX42KlFf43mpr15O8zOOsly4HPtSvkPU3smtpHQaKpCMAHnSOF8IWtnkNVw5beKszqYXD1UxDpaLG5GIhex+A82u1L//rhrgGlnQShwalGUZp5qh2dXt2LKKMQRkHpvb3bvOwv5kEjYlc8fvAsjE5YXxbQvkxwi3zkvEuHRm7mF7lQ/TLkwHla8VFiDA/Lp8/oPu6qzSq7+i75yMjpIiGdjc9GYTr3YdhFQDScSQKKDOvzqRtYfUWHkKv09q65u10CzAxnpN9gP3G3Mnz9h5JJjYHwuxOpxuAwuIDZcUxVyd/FjI2p7xjbWjWHmAFHzKsjn6lOrjBrNUatsT9t2A6Nx0Qq60ILURpBPntpokZVfYk2XhWqPUT2uuar6aXoL7RNV1i/wMveRs+j+eAQPHI6LGQQlJ9hvvo6knwMgbxUk6W4yZEL0Lj4i2F7NqUtbtF/s8e3VS5QhNV9jEZkxChn/JDQo1AIpAYTt37dlOTHRyOgm/3o5uoGkNciXNYokMrK7MkkTs7D/UywpOokatA4yEoQLWJrVbAYU0biIk3inVhpf6jwLD0= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 9b87c662-56f2-4aca-95e0-08d3e153ad08 X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2447; 2:rVDxlYB7AoRpXqXegmnHwTy2/T1luhwhnGE6cZJ4cLA6nkxlUj2D0mPL+xMEja95j1qrDtVesA4lIeDdDNced+tn7VrSNT7uF207+qGuuYd8d9B88LIhOCVab62O+ZMiVGgOM42Zf3FFCq+Qjv1jnDOJODoI1N9BvL90e5b6gMHW3P8NuEvujQ/nmzwfmTcm; 3:8X3Zn/GBGWWJ6iw2HVsfHII60OXaJ//kTjCQnwEOAx8qdOhAGmbKFdn1qCcoS7OiK2gOgo9qOL/258cUg8aRa+uTN61Jj2UgSyfSime+v0eXvasWLGzKvjtRQdrauPMOTwpES7C3jD8Q9psVmqwv1zd/gkD72PdRQXeK+zvPw4twZE68xrsWi8eTjEjzl6J2ZQfwkypdttjxteMM6OCRS3fAowMi30rjJmncl2gWp3w=; 25:Hkj0FHPXBn1nTjkcTyOV0y/FO2hpzV0wdoMUhI6Sv2l4yWdiFGhql/UtVixfLiPRpX/TM9hj6n8WhezzH5LWAP5zrCUAZbEK6VzbOHyKFIxjfHViXcTT8fDN83GChU8zJww2sCz7hk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EybReGmgUe/4yhyomU0S0P6DETasF9zrvsTee+jl4OI8p/jONwVmPV8aanQezzUW+sVy6J/X6tOeDu7+mqfWYjJCVKlG8yoOp+x+5D2XY= 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)(13015025)(13017025)(13023025)(13024025)(13018025)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:MWHPR03MB2447; BCL:0; PCL:0; RULEID:(400006); SRVR:MWHPR03MB2447; X-Forefront-PRVS: 0071BFA85B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR03MB2447; 23:eU+9lDUK5kTTZAPORh2tGxAdD2HNBg2HJYngH9bRK?= =?us-ascii?Q?2hNr3t7QTWI5xJ1X/YP71eU0wpWs5TIYxWzDAq8dbwBfFP4HWrrfJRyTxMel?= =?us-ascii?Q?Yz1ivV9iWsj1Am/fnV/glgVitJourHnj7lAUJoPGgZGKaCmA1uofJEbwkImZ?= =?us-ascii?Q?H72MlhxtGwHcL7OnGDLBgS/hnpbs7jX/NVeRFJAUsHOcq0k/+1UhXykML0PD?= =?us-ascii?Q?A6XJPvFqCGgZI8gprWvQpad6vhs8m7tIqIVCeWyPPuigZfHn49RgukjrKoPb?= =?us-ascii?Q?M30ApB+9LTJQt3Hy7j6HLzOdnKTYPilwZ+bfAOtfF8YD2JSoZ2fColJnNT7u?= =?us-ascii?Q?+t/eYxK1FsuZc8+c8wTNMDBUEKXEveMQhkwYgt//VfB9DH9sXbQbBamHw6QG?= =?us-ascii?Q?0b5+t0FkRYR8yMRGbLSeh0udVkLq8RROdIpfW/dUJb4s5cV1I6R2JmC9IlHj?= =?us-ascii?Q?LelTjWUKLkTXbNrwC8eL9cku2O2IvmnKQnwbUE9OOSZzZTSUXcI2d933Kjbl?= =?us-ascii?Q?7+byLH3O2XooKRYQYrT0ullOL19BLQ1EoyTt6b3oTECZ77DulawqgPu32iWn?= =?us-ascii?Q?T5WaYWnVxTV2eI3rfNCsARZE0v2Qb85DsWcDdTLkgAvnosQ2gjERNAMhmJbD?= =?us-ascii?Q?gTtAchWu6bMl2e+fVviYi6wBtuAIr6BPm6s20i7TFKbwUE9xTZJjk39h8Hwk?= =?us-ascii?Q?A9qqyv+3tb7eZ+gSyV3YE0bwzehKgCcoEO02BB1ktCfliy5gO7B4tX/HUtKz?= =?us-ascii?Q?F2YMzy9uNwnp0QFX3Nl9zMpZwBpEwKW2pz4gPOic/3Q1xKFGtp0zu/fXJ9t6?= =?us-ascii?Q?smc3HVnOR20VMxJMdXTmh8E9YDulRsOTxTKu165KP8V0hfB8PZpIOGuc0KGc?= =?us-ascii?Q?Sy7QaAiz9A4qaufPe+tsYpytblGlmQHAerf8t+AFTMp6j/2C8JBN237tbWmN?= =?us-ascii?Q?1zFNbIF/J1TB1/TRz/b5BIgTbqb5TBkuknsOv1UcZIdrlQEBymM/DtDn1Fb5?= =?us-ascii?Q?u0VITtA2ELrouWjkS7FMEE/6zfhr3p2M/jIyo/6KCXvu1B60US2z7RkXpe6W?= =?us-ascii?Q?a3df9lC4x5drdpY7mglxOFYHh9isfKHPLs+CNKDTwdPHEGqzAFsG+6+q11ln?= =?us-ascii?Q?KqV19SxMBPnRqFad4I5en+bfykmfe36jIH0ae64lYYhKFhk7GY6k+5V+yhOA?= =?us-ascii?Q?4EatQmXwwYJLQE=3D?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2447; 6:WGPxtdV8YIHSFVem7vZZav8ZTlW1J8HUWtwEjJBCFtI23aZsF5OJf4jj4XG0yT+w/HiF+YuKInctkywcaZw6oH1jgbaQ0w9cmHdQBDFFQwM3PTncKQANHfddddarOpG/V9CqqgqgtEO2ydXtcTY8rpZWrF73NDj0skgnALLqQmpdqyJF0oJ58FtSFwW7xASD7/aKgDJ0+7o2Mcl+oEZLgP1BW3X1Wse466m9gDloznLzJttLhwkti7f57uzXySYBPxBOU6vysTU1Xgjdy6LlXWnMWLYtcIXBvnPw0bjItfM=; 5:dnksmcEQHG5Wcmw6pnwR4ECd2guiRJcK2XlF6NrPmCJptvUc1sQukBvOOM/XrGl8CTHM86IZhY3RC4Ht0LwtjXNcMXIzsDWsTFVXpRErDO8miXlteKN7qG8bUxYkkV3DOJcNrKwvDk0eTmQV+hsMpUp/o1xS4gJbTK7LQWKu2ik=; 24:zmS3z4ZBdLnJz/OebCnqY9Ejm0+9OoGRl8ReJaUOheqmNAzDl7dugG4bHB3wfxNnWfieptLTeSYzvtoSCdlHL9JpZ23rxsUoXWxHZmIfDK8=; 7:j83z8RL7o1k2wiWxfnXg0cvAKInqsfsEdR8yD/eUrVFB6pTr+Q2uFwNW58fdcbw/Nyqmr+mPyH3liuzXzNCKDXG/IBOQ1dY6ct07butjEJCMKRtTUwx9eHwyQtUJpju6qeoh3UfWMIzJOH2b8DYTveyFC3+s0PSMbWHN/rRkXj/FXAP5Azme1a3XRq1ZabCCq/UTHWCUksDnHR1TWWp2vx1OeavEpOrbw1HDF24pRpkQv18HXwEcfBtxgE8MbT8CXyXGBn7/JuPLORS3jrS1lc04xdx8FcvFjUZGMVbEMEoSgyr28ENkzZY4kYGbzXkp SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2016 12:43:08.9212 (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: MWHPR03MB2447 Subject: [dpdk-dev] [PATCH v11 22/24] eal: register EAL drivers explicitly 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, 20 Sep 2016 12:43:10 -0000 From: Jan Viktorin To register both vdev and pci drivers into the list of all rte_driver, we have to call rte_eal_driver_register explicitly. Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain --- lib/librte_eal/common/eal_common_pci.c | 2 ++ lib/librte_eal/common/eal_common_vdev.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/librte_eal/common/eal_common_pci.c b/lib/librte_eal/common/eal_common_pci.c index 79f5526..0b032d6 100644 --- a/lib/librte_eal/common/eal_common_pci.c +++ b/lib/librte_eal/common/eal_common_pci.c @@ -471,11 +471,13 @@ void rte_eal_pci_register(struct rte_pci_driver *driver) { TAILQ_INSERT_TAIL(&pci_driver_list, driver, next); + rte_eal_driver_register(&driver->driver); } /* unregister a driver */ void rte_eal_pci_unregister(struct rte_pci_driver *driver) { + rte_eal_driver_unregister(&driver->driver); TAILQ_REMOVE(&pci_driver_list, driver, next); } diff --git a/lib/librte_eal/common/eal_common_vdev.c b/lib/librte_eal/common/eal_common_vdev.c index 1a4dec6..6dab782 100644 --- a/lib/librte_eal/common/eal_common_vdev.c +++ b/lib/librte_eal/common/eal_common_vdev.c @@ -48,12 +48,14 @@ void rte_eal_vdrv_register(struct rte_vdev_driver *driver) { TAILQ_INSERT_TAIL(&vdev_driver_list, driver, next); + rte_eal_driver_register(&driver->driver); } /* unregister a driver */ void rte_eal_vdrv_unregister(struct rte_vdev_driver *driver) { + rte_eal_driver_unregister(&driver->driver); TAILQ_REMOVE(&vdev_driver_list, driver, next); } -- 2.7.4