From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0040.outbound.protection.outlook.com [104.47.42.40]) by dpdk.org (Postfix) with ESMTP id A82CC6936 for ; Fri, 26 Aug 2016 15:58:28 +0200 (CEST) Received: from DM2PR03CA0041.namprd03.prod.outlook.com (10.141.96.40) by SN2PR03MB1887.namprd03.prod.outlook.com (10.164.114.147) with Microsoft SMTP Server (TLS) id 15.1.403.16; Fri, 26 Aug 2016 13:58:25 +0000 Received: from BN1AFFO11FD049.protection.gbl (2a01:111:f400:7c10::151) by DM2PR03CA0041.outlook.office365.com (2a01:111:e400:2428::40) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.587.9 via Frontend Transport; Fri, 26 Aug 2016 13:58:26 +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 BN1AFFO11FD049.mail.protection.outlook.com (10.58.53.64) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.587.6 via Frontend Transport; Fri, 26 Aug 2016 13:58:26 +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 u7QDvHq0023630; Fri, 26 Aug 2016 06:58:23 -0700 From: Shreyansh Jain To: CC: , , , , Shreyansh Jain Date: Fri, 26 Aug 2016 19:27:01 +0530 Message-ID: <1472219823-29486-24-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1472219823-29486-1-git-send-email-shreyansh.jain@nxp.com> References: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> <1472219823-29486-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131166935064845863; (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)(1110001)(1109001)(339900001)(189002)(199003)(575784001)(77096005)(11100500001)(2906002)(586003)(36756003)(85426001)(110136002)(8666005)(5003940100001)(92566002)(229853001)(4326007)(2950100001)(33646002)(356003)(5660300001)(104016004)(105606002)(19580405001)(97736004)(50226002)(86362001)(50986999)(7846002)(189998001)(81156014)(106466001)(2351001)(76176999)(68736007)(19580395003)(47776003)(305945005)(48376002)(8936002)(8676002)(81166006)(626004)(87936001)(50466002)(7059030)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR03MB1887; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD049; 1:wul5wPYVoTY1R334Bn9Ztp+kKAEHhCkdvFBvRKfQKrkWfk9pM3g9QA9h8F8+eopVnHsPx8lkRdprp1Gej/mMoY6X4A6HhqSX7EN4LLH7kX5wkCW9gUIvfxWcwzkgbCHBhmCWJsN68Eo5xe8CilWjYj+PsE+ju/6VjlBQdi8VMM3WCuP43oSOPVAZK2DP6GjOCesxfmHsnY/SVIsX1Jt2T0yDt3iirpKCsP2jX+ny3i4YfMeRDTiIVbxEWcANZyzREgBT234K4kG1alaAictXrmEXYuIdkah/fquKURYxP4qOPJQcvmD83WXDcsTLhWXqL8sJYto/D9Po3gNUQLj0CAXAvRlc5sTyfgTrkQu8ZSGDMLDk5AOcO2K2mqr5gwEWcX6T9aoq6nIWapvx0H6qriwsiNRUNCJfbPjhGof68fGbUAIf5u8pbKJ6TwQ1EJtNg+vltUKLDxss5Sub9Oh8uJ9LgwI+VTx5hWXLFsipwByTt3IOhGd9b5Jgn/Vz7lQwtZ6iAYOQdDWqI6oQNgPt8zJ+dlZWVvjZgFPiMDhYzPXl/1smqjaaUDfXc5S/Bo6psWgNU0yJtRw3mNOKpLHKsD4eXAC+ITjo+f4NFHSrXw5BOSyHnZsSfBn/9FGPHR0AR0eUZNFzrOYIhUH9iEsUUYAvj6q5bzhQZYtGPV5eqcQWDsXv0C9sOLtrbxsK6D/1iZJARhc8H9iRpNhjQRIYBy6Pawg8T4hrWQG2lY9rNZg= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: a7412856-05b0-4e3b-bcc8-08d3cdb90d45 X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB1887; 2:/MvbnoiQTRv6KZUbfCv8TypOzgk9Xt3Gdjd5ECgbJw7Xv7v4+H11YH7eBY9KmyNfij5n+B498inNR31viaOLLRuP0hn3bDxhP3maGYLep5/8k76Fv4cuy5u3Jbm7kwaCAX90nOeSEKuvO8s6EMdZaejGpPAxhvvSL3xzneTh0EA+FKgXrQI4EF/O8xcnZ9KL; 3:yzq4FJjW0ghCxl94JlTGfmyQf3CAx2e0cUTvLVfdoHQ9gDRnstNl9thfLfCYnVoma21YqsgYEYJRQDUei412CRBVwH16hJbGGtCdnzm0b8J4w/qMoAZV5UsVaZt9eto+PmVdzYItHvTfRhJrD+7xsD81BeVBbwPpqFQGKvnXoX8mVxLqCtyq26y2vVI9c2Xa20fvKK7pe4QByRXWQ10ozZCcJaHyvzDCusCQdElHSLw= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN2PR03MB1887; X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB1887; 25:hVHsHbpVFz7mmdt1FfOTFzR0ASsKeJJZRWfva0JdNV+xKFZd/HN2tB4yCtWHZXz1kr13KvBuXPYE2ww0IqZXYvexr0cJl6jp+sg3+f7/G+YeccdM6P7Q5qK3RilYhE9Xrkz249nkJQWeCLGNEHvcdg6cqR09/vAWIszXmbKaI8NVdNYwcVyrefxvg8Ao/jQMiMo2VR4Ix0S91cR9L0wZIap0dqaWW3ZMiHJvM3rs34quqAfhfyCLmgPcfH5wUN/SsGQHaB+Lb8SjzE9wtjQe+iMb5qumBHYGKChSeendtRmIBmvpm7BH0jO24jNkjDcmhdrXB0cUuQTnXuggmJm8es2B5bukHztjsDgzgk84Yq321bIIvoMztRqSfnChQQeaWt4wc7BQuqUt4wsB5Q7/GPXTRUD3suOlUNW5qnLkXHRJbFjPojNvQC1bFWbOvtwHHA/Tkz1T+X50OinAmSN6v/oSSmg6Y1brcBS85qfGSZcLbX61Ik+KWdy+DPAUl90JnO/Cv1fjOlykWLEqSwkqXGV3M+Zhdq64ZaEGIsLrF0CMjqiL7GAOaxzVs51U6RRZJ4cpvedDto7rDNm6dUytnw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13018025)(8121501046)(13024025)(13023025)(5005006)(13015025)(13017025)(3002001)(10201501046)(6055026); SRVR:SN2PR03MB1887; BCL:0; PCL:0; RULEID:(400006); SRVR:SN2PR03MB1887; X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB1887; 4:YxVfJch1pLjCZPVLdEk/YkU0Cy5ajzt+sdScfSWXXKWuLnlgaPt1pburM2lV7ynjuYHkupBx+wN8hlwVIkVO8k7S0NV5+moZ5rPYRmTh+UkVlHXxTxbFIAiQENIbCKWhNp3g30khAcrSutJ+romOp83Cjwa5/ybnL7OLM4X44CptyK1cicCenXUh+WvRBL0e4WjIst8ATFZk4rsKMhJJdu72N0m6CjTZl0XFKyUiHqIbPfN0BeJKePNDpnh3mqAzPYd5VAz4ijy06PpfayFVBr6Bvrt3KO0ZUTCF24YVETlbFsRNxxyPiupk5vFj791Ki37xgf+1MwpaOYVyD64ucaEBakiB0ygIs8dmiKVJeKPuME/BD70KdQoo82Weyms17lg+s6ArCH8etcujS7MyJmC2aO0blqyfcrx9cA8+ofSWsmt8pSb261uFXMZAFAa7Wm1RxJpAHL5+faunWZfzUjtVJYVofnBrFnCzkWozHXafTgGSPGSJC/5cweX0j5V7FevXb7Fek26qzlpvUZnLsA== X-Forefront-PRVS: 00462943DE X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR03MB1887; 23:x9XYafdYzSBtDcl/tbNJ5bWHOA/007wOBmWC5D3OY?= =?us-ascii?Q?IW/AOsoI6JfiHKezy9pQ3dWU2QLXZ8rWOEBk5naBtVwCncCGg2llamWd/YkX?= =?us-ascii?Q?+kLTlRrRz5uComitQOHryJTiqL6bSwQM41ogdGhFUM7rrYsljUOfrx1r9NCm?= =?us-ascii?Q?1fKFx6gAMfIfJLApsOWAemPDXw7AcOjp/n12fP3kmdy3CkWQ4qYeqml5otUf?= =?us-ascii?Q?nqVlMQQnhkLPriItpbbvhaFgRrkpPiX0HDS/BZU5Zn9q7JWlmO7Md/0o18hY?= =?us-ascii?Q?8y9vkda4xO3fDYER1lgfh+1peJaVx+DxFAdQ3tNseFBpSvFEc7quHtp8Z2Qs?= =?us-ascii?Q?9qMO0vnn/nvqGBYtBnM/bzoQIuSVWM48O/MLPal5NH9rFTRVNji1V4t7TFVb?= =?us-ascii?Q?40OiNqBBAUdGWJ/nFIgy/lcVQ33ho0OtZU1isGf+fnbz26y0BkNKYRiBA7io?= =?us-ascii?Q?18YFmkKz4zBEx0s8KhPb+74uFhL7D7Jqq+enOL75ewJikqXlWr8o5hWoeuwi?= =?us-ascii?Q?ASm2UXAi3BPJuRmUO9bWJF7YWWhmFGIe2+7H7Ad3bZdR1Z++MSMshUZk15rR?= =?us-ascii?Q?6We7UCN2gqBQ3uarhhZBiJOwF6Qijli4sZuA5DNV5woNQ3J8tMH0glWm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Y7bdmiJJuLVkYrxcEeOI2vZuSA=; 24:BbzrediYWHJZs+2mo6/A+eQwG1GI2KDzxuLjHcuySqVlpBVew9uLtp4KDwmsUwrPBhGBwJNcoBRLygQnzTDTcFNWL5f77BYwHsYd63giwJc= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2016 13:58:26.1413 (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: SN2PR03MB1887 Subject: [dpdk-dev] [PATCH v8 23/25] eal: call rte_eal_driver_register 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, 26 Aug 2016 13:58:29 -0000 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 308c2a9..2c89530 100644 --- a/lib/librte_eal/common/eal_common_pci.c +++ b/lib/librte_eal/common/eal_common_pci.c @@ -470,11 +470,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 83f8ea8..9fff0cb 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