From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0070.outbound.protection.outlook.com [104.47.41.70]) by dpdk.org (Postfix) with ESMTP id 539B58D86 for ; Fri, 16 Sep 2016 06:33:12 +0200 (CEST) Received: from DM5PR03CA0008.namprd03.prod.outlook.com (10.175.104.18) by BN6PR03MB2612.namprd03.prod.outlook.com (10.173.143.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.619.10; Fri, 16 Sep 2016 04:33:11 +0000 Received: from BN1AFFO11FD020.protection.gbl (2a01:111:f400:7c10::135) by DM5PR03CA0008.outlook.office365.com (2603:10b6:3:118::18) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.629.8 via Frontend Transport; Fri, 16 Sep 2016 04:33:11 +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 BN1AFFO11FD020.mail.protection.outlook.com (10.58.52.80) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.619.6 via Frontend Transport; Fri, 16 Sep 2016 04:33:10 +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 u8G4Trg5029256; Thu, 15 Sep 2016 21:33:07 -0700 From: Shreyansh Jain To: CC: , David Marchand , , Thomas Monjalon , Shreyansh Jain Date: Fri, 16 Sep 2016 09:59:58 +0530 Message-ID: <1474000200-16705-24-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1474000200-16705-1-git-send-email-shreyansh.jain@nxp.com> References: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> <1474000200-16705-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131184739910728483; (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)(199003)(189002)(11100500001)(2950100001)(229853001)(86362001)(356003)(48376002)(50466002)(68736007)(50226002)(50986999)(76176999)(5660300001)(81156014)(110136003)(2906002)(104016004)(4326007)(106466001)(81166006)(626004)(189998001)(87936001)(105606002)(586003)(19580405001)(2351001)(33646002)(8666005)(77096005)(47776003)(305945005)(8936002)(7846002)(36756003)(85426001)(5003940100001)(19580395003)(8676002)(97736004)(92566002)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2612; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD020; 1:QRwhdqNWv/Pw6oF1qvQ5VP0lIbnZ2M0KLf3m1Uu39ObgHn/btUKe5uizJcGz8XMz6nXS9vjLo4YvqDIY2C6m++vWpnIfo7zeLl1PvUPe94EGIFuar57QvvKXN5GPZgQ6HtpHQA9cG9dLePD0M/mtpoA5bj+GUpxK7nvH5LsvyX2wXx6AQEZwK7JnPMoWSjUoacayaVoHCTg6WHcH9wtOpQ8W1UxdFJ0XgUdqRnJsnakbGmQuf2bTQF98WcmbSS4VMmaeGNFpJxvmYfcXPCY5rzCy8f+C6cbaaRennPhLZY5oNUBUkv97NCZbF+JDzoXLMivwN0UJeKibGi7py0P47hEuZ1F1e5FM95i5I3w9W4nKsO8Aua7UNVt1638QHpqo11P5uB+HYRP6fi4AdnBhDRHFOuqNE/kGjSRWSa7+f/CFoh6A3dricLexjfmiqiV6lMaWMaEh6hWsuQYc3NZsWyT+5Gx0b0+VVX8CLFE2W31JqZo8TKbqO3SWDwiS0b6DiUyBrDVMthyV6jvKJ6Gz3cpfBizvySsz/B/czf7c1yctrwjWT+kWNFgPe5PBRFL56fi+x4Lsc8HFHTjJACNdC9xnq2MyTqnli9LMjFswUOXOsihEKAfqhFngEjJf+zgT6T+FHgMF122voeKTJRgi6lVPtoAnwug2ZN7LjPB/S3JpgJ1/3C78zzLh/2E7B4GqsFH56aNX98TYfA2/I5eUTKST0T0v7PBTl1hkPjkms4g= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 299e3434-b3ea-4b64-b023-08d3ddea90b8 X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2612; 2:+3i8VKjYGMRucj79NiVBXG8xgqJ7Ck8UWMPb2zF43YzFtWAVaKHEqGnBNw1Ut+7CdQAEBVgMBLlgQ+eLkSonuCNFOBdgQu0D7IHonQjiYiDxFHEAdTqMl1l93cBDVtvE9tkatGDNEXSSdOWfCsFQFdxrVw4x+M0E10a1W6P0Bb4MdgSe0abPQQyj68U86aFz; 3:d8au8r66d8A/9CU+WUCoEYbEaXlSsIjw4gSrxtAx6MX3v/3D5981Upp8hdrTJHkUo1tFv916mVaTbOdm4os0juUx0loQWdjGDlrgxN1LDCzG2rM+CHOh1/RdUdXajWjEgqCqPh/OiQ7i+bZ6E7Bfv2q0xpi8votLGVZhgRX3oIQItPycItJlTQMmL/FcJw32HNQnPnFHgbccNgnyhkC43D4EyhA8qRIZS4KC8Asf/HM=; 25:XyUjrEL4FNPIAE8HEJPcS+Aha6PknkznU3j5vl4r4hEG0rARs2z4+B02qrj7zn4fhgrpFHhP1BBX7MKMn8Yg/RqCqiYLhRcxugKSGEqbmpZe+a33E2WXMe5sAnEO3swRDSXdYD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T1rZK23lUiIXOKIbzIUJ76CNBTeOXMsdWS/hScmHW3tzstmvi9jgL4GU7S3Yn1QVnhcWPEzIu+RA0OsBgHIB6j6/LFe5r3ELeb/fqg= 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)(5005006)(8121501046)(13017025)(13018025)(13015025)(13023025)(13024025)(10201501046)(3002001)(6055026); SRVR:BN6PR03MB2612; BCL:0; PCL:0; RULEID:(400006); SRVR:BN6PR03MB2612; X-Forefront-PRVS: 0067A8BA2A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2612; 23:hh/WeI2GGZ8ThJM6ivNlCV1O8JjsYLo8XVjKUOqyR?= =?us-ascii?Q?PoMgE9jeEhK65eCczQvn5glWePDlZw4hnNdmO3ETXrYwXHcKlmtfVJ0hmkvo?= =?us-ascii?Q?fLWPhNDEGfSO2WR7BbfqmB3Xh0yKU/jZuplJ2HVoIfLZmIyP2vc9nw8NlJOL?= =?us-ascii?Q?tam3Ix+sFZnM0M29qpIRrI5nquyQoJJ2qlkLA1P06Em7v9YTg1AGDA5jitRD?= =?us-ascii?Q?tv0QhhtmGYDPOHlbgi9qqiGbG0Oo9ACpVwp7eFAkd5ILMitlsf8Kct1FoH9B?= =?us-ascii?Q?XArx4k836EhyUST+JDfT01WvMbR00sS5C4TTxUwwCocgc5n/8R2Hupu5l0yU?= =?us-ascii?Q?r5Bj/yEQI36kz8DqEqY0tBR+vzCWL4EB77Q1SFjLxj7TMUtgxzm8EAEpJ1ab?= =?us-ascii?Q?E9wdLQ88tZvCT5jnAUZgoBrYqft/sVDWXSM47z0NpCroHuTuwpngPFq+N5am?= =?us-ascii?Q?e6CJ3XvDkYHiXxbcPufNAEMW9uUPLYLhObPbiOxdBSKljMQMcnPCJxbGiNsG?= =?us-ascii?Q?q5X3re+GGOPzme7jnyAc+vfiB64SlUi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pYFEEzZ/o8DDvrTeXkd7xp07gOTHZRinPe4bKV3IywJriB2yzgamDBv4Fuw52Pxs=; 5:cW7+OJKTUlcyQpauBg142s2nlhk9yKMzz/WqWeO68GCwah1+xqT8BX2KYGrbEsjAxKYRbuCViG69bbHXcBxAkvOpfzvEmgxSg4lXXb2QIU8+th713GnS9N2lX3U3RQla6pHpoBfo1ZZXldW2k6KaqoTZYKfE2DfREKTPK7HUv5k=; 24:DQwHFaUaKs4A6IGhxj+sCp0zpl8vv7oMXmJHYOAQawQjLzZv9Ira8eaGAAu8r4G+TGHOHB8NAHfUnpgKJ8R8696hpEMPWiBn6jwRqAJucVQ=; 7:ZIi+oKz9Ihimrj6Xb0jqQTP0k+DSvc9urLbAZOlltKLD5huf98xfn2e4CvS7srvvEPs4OrH1TmBMSg2lsPYva/A5RcFMzq9ktBeHFqSV9zaf21AOoCMg4a61Y8Zsc4LhG229F1zfel1hpCsJ4uyXZzeXjooTE07CrKymG9XhwpBD86cyUdElaiQrl7k2uUAxlUJrU9NZECSw3hLgoAago9wMkZOoJ7inx1KIZEbV/I1zMAoFuo/BCWt5DSAHdPkh SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2016 04:33:10.7608 (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: BN6PR03MB2612 Subject: [dpdk-dev] [PATCH v10 23/25] 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: Fri, 16 Sep 2016 04:33:13 -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