From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0045.outbound.protection.outlook.com [104.47.41.45]) by dpdk.org (Postfix) with ESMTP id E770F9223 for ; Wed, 7 Sep 2016 16:10:27 +0200 (CEST) Received: from BN3PR0301CA0023.namprd03.prod.outlook.com (10.160.180.161) by SN1PR0301MB2013.namprd03.prod.outlook.com (10.163.225.30) 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:10:26 +0000 Received: from BN1AFFO11FD012.protection.gbl (2a01:111:f400:7c10::190) by BN3PR0301CA0023.outlook.office365.com (2a01:111:e400:4000::33) 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:10:26 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; rehivetech.com; dkim=none (message not signed) header.d=none;rehivetech.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 BN1AFFO11FD012.mail.protection.outlook.com (10.58.52.72) 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:10: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 u87E8BD8013556; Wed, 7 Sep 2016 07:10:23 -0700 From: Shreyansh Jain To: CC: , Shreyansh Jain , "Jan Viktorin" Date: Wed, 7 Sep 2016 19:38:15 +0530 Message-ID: <1473257297-7221-24-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: 131177310262146418; (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)(586003)(81156014)(87936001)(305945005)(2950100001)(68736007)(77096005)(189998001)(92566002)(85426001)(626004)(11100500001)(104016004)(50466002)(48376002)(5003940100001)(4326007)(2906002)(105606002)(356003)(97736004)(7846002)(229853001)(8676002)(110136002)(47776003)(8666005)(106466001)(2351001)(575784001)(33646002)(50986999)(86362001)(8936002)(19580395003)(19580405001)(76176999)(81166006)(36756003)(50226002)(5660300001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR0301MB2013; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD012; 1:VaTLVh6j3NMFnUXAynexN33nrJm/XsOBkw1gPILvxhyM5jkm1rn3D4PZprcCvkZnFzO9z4OPh+QXE24wXABgCdj3c3yXn6cZJeIqX6dmk1a6sMvjqiZBovCcKc858xr0EdWAh4qpTU8PyEK3n7PHrMIrr/faBXAQ6d051TGJhEPJKAqVd31EcFxRqPr5NifU9zMByKGdXxBedxWpWmee7HO2YflZSSjFNiy/WEFaqZiE1u+6AWiThOfAk2OUp3FEP8Rrur+XNA7fYCWkaMEJXgn+9mprLTpA+SS3Ijd9KDQNX9xJqXWCJcxYXgigZLgtA2g1FABWmqYlm6a7XtKos1hY9i/q+reCeE60CIx5WSd15+zBmS9+GzS6BlAuCqCuRPIOPxT42P7dOEgSn6599iwT4JIv1H6LiCccBpUfiOpQQd4s3FHJsxItC8HOQvRVGURU7I3j5UkZvA2gU3UNfvKWRjBHSs7Z0uECNv3xpxFouJGbzH4zFkx7DmqnEcp1t3lRq9c2tKr3IDdD7zdW7c3HmyVWwq6TV3FQLfsh4m6LdmGhWfoGVP9j/HqA+0gWbAMafdzwBWq/BxYlmvkwvhPzTF8REsdJ8oEgGU6N9+pL07kdxXTQ1JVu2BUBOny6 MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: f2051a6d-1735-4248-d411-08d3d728b738 X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB2013; 2:3PC83ofKob10v1sXsZy/nhEMLyeX5AZ7SZyNdleHRaIieR/vOUNtvdRVqmSs9fLCrTlbHCi/xs4vAGLKWizSVb+zVl0BHYB7eUqOguSjapwDRYwVEhczyY+mFjiRhXjjiHqwMrUMRVuuVnB6OFKDtsowwGIpSOl2AnsQHD/3wppBvs7+0uZGYwBipfSJfNb+; 3:x7GWbxRP7G8qJ3ysRjk4cnebysNt39wnbGR/sA2EO3oQ180maGsyQc+V+mOWXMbQE73b9QicXlDi+c7eykwYBAextqQ4ov3MqqP5ORgABwxCHwVULVsEdYAYIP12pCgNKZYxi+PKJULdaZEN+t9qnZmILcSXp0roVhTZ/JrD9CfFi2GaGXEqbwOXjk7wppgOc6d9FCPhozQ8dhGfpuoSSmik/MspCVmsygJg5AEQngk=; 25:azf/d1MXXphO16YAneoh77kWBdJ3h4295JJffdldWWPe3nbL9RX7XLAF0MhqXh171sQdAPc4IyIu29OrKexen823KBhl/+zBPVKoF3rIKLklZDksvIeUPXRfb4FZmpcX/Ca/q8BJpMIT86UFgj9v8Wo4Fga6jmgsAzDRon7nN2mK4mXdM1yfH0hdhWV1bX6RI7GieSHUbMufZ6zyCef3pWVsT3KLbaNKZi2tpFi3PTDd5zSED9IOt8kkfhPZGMukyEuxSMXTQtn6fNCM8Mng61ua1lFNHpbzaEzEpNwspRFiyKlwr6Zc09/V6yCN07qrhqw9+Iyd8wq7Y+rcYCnNsrpCRh4mBWPGiJ//8w/+jIg5E0xH27+iMeyFoi7h25UdBp9xkcVyM6feKMz0FmvL8L0uv3TYMeJfnZ5fDFIOcII= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN1PR0301MB2013; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB2013; 31:rTnooQwQycUYTCM+LrvTo4d3kSXCEZsCLoLKErkcDQ9BdbVkucH/VThAV8IeLRJYgLjqukDmal64+eyT5TIN9GUZzwi79mQDEHP/EmoSbUrmI4lagIGuHL8UjqyG/LvO+ZnQYMmndDW7xQoEN+a9NxdnsLSAJch8/8IQ1GxXJYHakP9SLSD5P+uHf90TKNN6ukdkJPrU6BdPo/4JDpRyrJpvagoZaTmvCvVgA/cAPeY=; 4:R1XykznrvPPl31UHHdL+a4BMpPNPAxytBCF2oTwgIg//8R18/oQxjKMFhlQ2xk5L39g1jYK3p+7ZZdn84PutRHVuhb/iMzfavSgfHSZ41EIbP2iobZTIRmgSSJMDkEWclaiV+12u4lYNiVNdYkPMRF4ha6FHLhTmJVUxORvo0Y+2bnN/jD1sd9LK0V4si+oaG/XBcRQbI6qFfpruSBdr2Q4A9v0aElj4sjRLT50PnW9PhV8HiN2umHcJdktciq1JPbK4sHO5vcfdgahIjsmjl/g12O17MGIvnl0OHflR14WE/CQdXmO/cf8IBqThi92pKGFQrOYap5UJvX5R39b39ceq01onsStiSVrXObMfGmcMnhoirbbpPZooRcELsOS5WVu5BkdeYW9Z6DFeORHb2egeFbrYwMUIvdEnGl1f9oPcLnA+Ge5QRPoHoQRtz+3YZnJDLdxxsDeenLgPy1XQW63qmrLkIIDQasJFiPOGT+1T9JnSXqEWhM8kmzqv2k6S1dxJ/fAkjK48P6oiVxBHhUXsJrxpSq2bdXSk7Jg3L8Y= 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)(13017025)(13015025)(13023025)(13024025)(13018025)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:SN1PR0301MB2013; BCL:0; PCL:0; RULEID:(400006); SRVR:SN1PR0301MB2013; X-Forefront-PRVS: 0058ABBBC7 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR0301MB2013; 23:TPNUKxupVasVRGDZ7TxKy970CpED8n1cNfDM4AN?= =?us-ascii?Q?bMfYRbqvCckuB8tEikeLizg/pvrv0gIO/xcCpo4Ts5FqpK8st6PSedH3fCz+?= =?us-ascii?Q?biuk2MS60p3tT4D9syq4tpSBZX1Wvkrrucui03YGS8Fepivln1v7eewUQSAm?= =?us-ascii?Q?GYHwwAd+lJE/tQNHuR/FvQ75bFlx2OfRJrF8dzS7NA7akbQywz00mNarExce?= =?us-ascii?Q?rl6iQcG5GoZCHj9lmpGQrqOo7r20bD/mCv+M8n9X1ngpI5EZ8u/TPrtKtilB?= =?us-ascii?Q?AOwPFQa6Vf3K2jgaNQSPyMNwamb9CKB8U0ysMp7YWC1XI7UG2CzsKtchF5mj?= =?us-ascii?Q?+hWOWY6+1FvvWPeTVq1rKVtnloXFVIV2Q4zl6gxnyDJMQEgiJ9PWs4L0hM87?= =?us-ascii?Q?JmhPXgJet5MzVfwhf/H/PsM69wMWawgb5F68O6HXFye/0b2thriAigL+OYqq?= =?us-ascii?Q?+D5hYxHMiOSVRrm3yD48CLbosOFSUDPgMWje/2GXfGHJ7Q+5MzGN5KTxsrK9?= =?us-ascii?Q?ikvMhwSjerwqK13h4VM+BWY5okbXaabxtvEbNA44Qf6jSIiSAElrUK7v+AOs?= =?us-ascii?Q?jg4hC2wWXnEc0VcD+4DdVxp1MwwnMqh+uBxAOzLp7W4B2gOBYrz3pvz+iLYJ?= =?us-ascii?Q?58Yuk+nkNRXFPKzy/OocLzD9wU85VEypBanQEv2Q6B3Ys77U0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AjyQ9PaOCeGREbxRF72tyl3JM9CnJpYgPv+k34QboH6TDy1R9DX87diDQavG7NInJmFp+BRwsCyfkgvqF8dYWlbcV0jkSHTmtnNX/L4YA=; 24:+7qlSvNjuDKv5jQW+3T3WY7B8c8zFYJCG45y/5E2XS7UKtSGAY15McbKHy94nC3vMm3bX7yyeU2k3Zq9c0zIcejaKqaOAHUyxxSyZvbyIOs=; 7:Rf8H1SvXAnlA7IUHGDQ32R/c2zHy8UxveGTFLR6uFojP2k01Gs3+QDqTLBXsoVC0QofctjwqlJFZGMzLK0vYJtjmTSZzbLLfaCkEA9NPrKEiPEXrA7IFTk/ekIBnV8N6GXpCAxrF0fQyvP4qBzs4vz29VEkhjQHjglSvRdaSForCI4OnARK0/f6G/D497I/nVZxwb52RxZCVKBB1HO5zosYPeW8lCNVBGk2tTM1aq8g3xekK7b7R+GTgYImrutgX SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Sep 2016 14:10:26.0118 (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: SN1PR0301MB2013 Subject: [dpdk-dev] [PATCH v9 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: Wed, 07 Sep 2016 14:10:28 -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