From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0076.outbound.protection.outlook.com [104.47.38.76]) by dpdk.org (Postfix) with ESMTP id E08CC559C for ; Sat, 3 Dec 2016 21:56:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=RV6FSdHqors+aIpkv6WgTIp62h++YsECobYBB7Wc9Ac=; b=b+LwfQbdwIHlYX3/0IwR1zaUOtRhsJprf7C5Toe4cm4INRILumrYsXSd5tvlw5bJ4P8elV+19l4+gVTkYyJOFG7gp44yg3L+G4y+u/9uELq/+ECM66csKcND18vTTbPImyPHh1cG72pQCEM7aEYL7LjU2Aop1Jh5Odlkbw1XYlQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.net (50.254.132.37) by BN3PR0701MB1717.namprd07.prod.outlook.com (10.163.39.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.693.12; Sat, 3 Dec 2016 20:55:58 +0000 From: Jerin Jacob To: CC: , , , , Jerin Jacob Date: Sun, 4 Dec 2016 02:25:39 +0530 Message-ID: <1480798539-13360-3-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1480798539-13360-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1479628850-27202-1-git-send-email-jerin.jacob@caviumnetworks.com> <1480798539-13360-1-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [50.254.132.37] X-ClientProxiedBy: SN2PR10CA0035.namprd10.prod.outlook.com (10.160.12.173) To BN3PR0701MB1717.namprd07.prod.outlook.com (10.163.39.16) X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1717; 2:PCYBw8HxRDCjQT9IwockoYhptBRFvZ4qMMlcexe604esN9Gtgq5rvKfblhugpcvM52eD3USdmyWNyYt5tltoOAWy6JxSKGz4mtL37SuIn4wYaRvauTiesjPypQOvvLrjAiJaMnFty0HWJXjWh+a3WXwKwVx/q974FcdCSgQboxs=; 3:qD6fBpnLVQk2lcb4aEWQ6NfYqJSnp1U3tIezPCn6npR7dyi2hoZGvs4Qb44lGEVOvbnirY06TBWRKdnQYVo5QykiVQnrI0cpk83RrEvpuLmsS5Sfcwd5XKoEFcREaO7FxMnIECrXMCKc0pGOogLf8CSnBIET2yS6yquMpJZCwOE= X-MS-Office365-Filtering-Correlation-Id: 64ad79e1-cdf6-4b57-3e83-08d41bbec8d8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BN3PR0701MB1717; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1717; 25:1eBeBvX7Zcrd5o6HcNVMOR1xstNP8boK40l0wgUVSAKO5XeuOzpSH51qe/9rZ5K/RNLj5JFGOG/bQtgSEona+UyFU94910k91xZJVA7SHi9oAZleFFOqbUeswBqyij1gThMlbDVda8MJpPkuiLi2HwPxg2iBZBfR2XX+Tvlwyy+U6FWa4t7ux5sl+kAwfvVbFRm/J3ArbP3qxjEO+olEfBJloAFeSNIwsersPsgNztUldTae8hxlsOkRU+M6Rb+FHagdNc6u2s9Xz2YTFEFlRTb+o46IrlnDFvv+F1Wivff0Ia2yyTsX2WU5S9ELcq5nQ4lUmwUsr4JV/aWFGRD5OaHm8SvREshkgR2DngLS5JVlg+T23+kAEzX3bv7/nvBuAVcA/uqDMhnulDAlvoJuulNRP7uvubzDl4KfPN7n3TJV1KPuTK5NhCUuHta4qKoMynpx8sW3mTnzwOWj6Aau+8QFWusPqCY/CiTbTtkS4LdbTngm7JVx8E4ioiG8E/Oe6F1Ad27xSrdgGjLFNfrJYvk+gsCW6OK3n335ksMYnB4knmjvIOq02cM5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z8ioWOchmdBTQr2rzhCPy28N2qNAgsJmbCMq5rarZXd5LfzmZcQ2mtKCZIbRspwDF8uHKO73kVcu7iWo6S8OhaEpK7xRgGO0iIrqBfmqdbewx5uIBHvjkZJkHK3sWghSEvQDL5A/h2FJc4ls= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6041248)(20161123560025)(20161123562025)(20161123555025)(20161123564025)(6072148); SRVR:BN3PR0701MB1717; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1717; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1717; 4:jy7JUz15KTwx4i21s/0ay9DDZTEAlAVLH1gPAg+FkKDWx7kntmoQRak/U6RBQcMORpC4+/myfec5lSeTA5n3M15kzemRmMZ9k2AG5z1mtF3uM5MfpuAEXEVMZgCmkKd7Fi6REr3CWCY6y0xqwgdPDNOQpZRzZWN4zaRIv64ab9CuJS+5MqWNTbRBxrc/Hgyx70qmrZr6lTI2GY9vJrOrr2unROD3c9wow8mUotnUsiC7ASpUKPZl8Y2IwxsrgpvhlXBSElDK3ugluTXI4J1jjScj1Enn/VLwPiL7i45wLFwjdnY0DExb6J0hPesrIXOo8OilVv4lFvGqa3ix7hs2bubLa0KZGUYoa2GVDvZu1nsfo7cOAcKpBy5aPCO8h/Ky7gxTsasbyHSCpGBl4jnYlBJB62jI1AgTm3E1CkVdapePNefJaMvRivMrrpmbu6JvKEDD1GALVuTMtg+ZlM4j+s8VTQrJU40dfoE5H3NMb0+lh5QMkapT2ijcV5GTJzESeaTC+Dg57CH14Mbv7SXA3jctvFgD69bd2rRwx9QW5kPXFc66DR1HLl1ubLgXcU28ijEjyvcJ0LSFgP0ZA8oSG34vGg8yHldqwRtIj9Mwcij3deY9wqggDIYTMGIHsEnO X-Forefront-PRVS: 0145758B1D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(199003)(189002)(97736004)(81166006)(8676002)(2950100002)(5660300001)(38730400001)(733004)(7846002)(4326007)(39450400002)(110136003)(5890100001)(33026002)(21086003)(6506006)(36756003)(33646002)(2906002)(8666005)(42882006)(81156014)(305945005)(69596002)(101416001)(5003940100001)(66066001)(50226002)(47776003)(2351001)(7736002)(6512006)(6486002)(4001430100002)(92566002)(6916009)(50986999)(39410400001)(76506005)(106356001)(189998001)(3846002)(105586002)(48376002)(68736007)(42186005)(6116002)(107886002)(76176999)(50466002)(6666003)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1717; H:localhost.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0701MB1717; 23:do41CF8TrlktUAoRRV6kvM7efXQAxbdJPYSVCER?= =?us-ascii?Q?Zpf1p5gfrX2vXhWGoa7X+ruubMdMQ3vAlNZJpXszP7zkWKWQeK4lKv93DfNR?= =?us-ascii?Q?nELSsbXM+Er3te2OO7SfyGZbF2zPZiGn+qHUiNCJt9qxzysm3Ur9rM8yIFUa?= =?us-ascii?Q?v5V6m3WEEA3AmMHNJYXt+Xk0N7MvxEbiZEmokPfdUrSS8gCmkZYtktGppT2H?= =?us-ascii?Q?61rZX3MesWAdJSi+kpujo5cLj84ZvkBiB3psS3f16/PgobRSmAxOf99+9Weo?= =?us-ascii?Q?iKT0i7xg0VU7jzEz5eg915D3cjKrZEBzad+5wJinzf2z+DDG5oeX47OELMPv?= =?us-ascii?Q?cKT/Yp+YkHuUPYpAsf6/enWgIH/MRqAkkENAI2IpqPxUcfp5B4UQMXKC0bkl?= =?us-ascii?Q?gPdp5uYCN+VVsHQIF21ymGrhtddqUHgFdjsNciw5lkzxguH/DeDBgNEs8uWf?= =?us-ascii?Q?Rf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c2?= =?us-ascii?Q?cWl2H4ENk8jNW4E0EJdG5JuFPYH9fsAjdrWUy9cMq6E727k4b?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1717; 6:+8gMv2+dIx11UUFppEkquZqLoDSSV4XKn217ijASiuc7rq4bNhAetom6h/IOdq/jH3FF85D3xuCgdpSeQyYxRTLK9aT6+BjCz4HWqWZyXWnRUq3JyGhsq06qfiKYnNkuBAs3KgdZ0w6Z2dxalwhgVTX1c7j9Y+oQR5FGR6FrjdaT1gBtuDlitKL7lEwC0LHqHI7q168BNLAJ6TE8iTXtPOJ4hdUW6Cq+VHZEvwvOQI31MNlsGMHG0I94Se7pDuWOz7Lg7+VyjagI32tN6lTL7Px2lgpf6lAbwBgu+Q6Umd3DVEdaUdD+KN0Av2C2pd5X8JReIke2B/+oHCUR6DadEWjdhDL6kRHL61VmBimdXUI=; 5:fZIAWJcdtfmegtrbkr+H7n3CgOgSC20w42KFDO72Eac69exMYihdwJ8qKEsub458fLUebIb3ZfRrkpUV35pL6USKsdixQalIipP8+AXRF8SihVH/M98Qmq6G5yq4vetoO21fJtCKCNPGCgDCPqZy/pVBu6Vj3xz+XQjbtgWzddc=; 24:A9Xx942VDNcZ5oSsjZtOLS3abaBhkFh9sxeuNDPvHu1uWxeMA6MHdqbcH1EzIwEdlq93karjtiVGYt39a2JeBrglqSCEjbU41mkr1YipepM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1717; 7:SAeBOvA35O4TcO4JazuGslu6N96LaWUaTZQq3ZgJodr+QSGtDLgN18+HckSbjaV0wIYoo9dajf1KoYGjbeaH7NPd6oLJ2ym3Bl1vOWVECS+5Nt9i/4SA+5uWs92kNwiMQ1seCXdjOO39jy6l/mvV2ZjsoktTnVwo2yTdZdUTNo0kO3+AzXfoVv915956mQjxwXIQWOLkwZ83HONPTZ1Q6YNRFEI8pywjc5XfNBhVtmk+H7Z1ji45JdvXQNLyYRTrOuVLrs1qwp3fNRBYrFB8mO1ywpv4IkGlip3iy68qQgwoIGbh7AuRdX3IIqfFW+L1JOMXuRJdwyui2nplmyW8Y/4Sxd3us+pLRiCy/Yvc5yU= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Dec 2016 20:55:58.6888 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1717 Subject: [dpdk-dev] [PATCH v2 2/2] eal: rename dev init API for consistency X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2016 20:56:04 -0000 rte_eal_dev_init() is a misleading name. It actually performs the driver->probe for vdev, which is parallel to rte_eal_pci_probe. Changed to rte_eal_vdev_probe for consistency and moved the vdev specific probe to eal_common_vdev.c Suggested-by: Shreyansh Jain Signed-off-by: Jerin Jacob --- drivers/net/virtio/virtio_user_ethdev.c | 2 +- lib/librte_eal/bsdapp/eal/eal.c | 4 ++-- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 2 +- lib/librte_eal/common/eal_common_dev.c | 29 ------------------------- lib/librte_eal/common/eal_common_vdev.c | 29 +++++++++++++++++++++++++ lib/librte_eal/common/include/rte_dev.h | 4 ++-- lib/librte_eal/linuxapp/eal/eal.c | 4 ++-- lib/librte_eal/linuxapp/eal/rte_eal_version.map | 2 +- 8 files changed, 38 insertions(+), 38 deletions(-) diff --git a/drivers/net/virtio/virtio_user_ethdev.c b/drivers/net/virtio/virtio_user_ethdev.c index 406beea..3b8f111 100644 --- a/drivers/net/virtio/virtio_user_ethdev.c +++ b/drivers/net/virtio/virtio_user_ethdev.c @@ -327,7 +327,7 @@ virtio_user_eth_dev_free(struct rte_eth_dev *eth_dev) } /* Dev initialization routine. Invoked once for each virtio vdev at - * EAL init time, see rte_eal_dev_init(). + * EAL init time, see rte_eal_vdev_probe(). * Returns 0 on success. */ static int diff --git a/lib/librte_eal/bsdapp/eal/eal.c b/lib/librte_eal/bsdapp/eal/eal.c index 2206277..62245f3 100644 --- a/lib/librte_eal/bsdapp/eal/eal.c +++ b/lib/librte_eal/bsdapp/eal/eal.c @@ -613,8 +613,8 @@ rte_eal_init(int argc, char **argv) if (rte_eal_pci_probe()) rte_panic("Cannot probe PCI\n"); - if (rte_eal_dev_init() < 0) - rte_panic("Cannot init pmd devices\n"); + if (rte_eal_vdev_probe() < 0) + rte_panic("Cannot probe vdev drivers\n"); rte_eal_mcfg_complete(); diff --git a/lib/librte_eal/bsdapp/eal/rte_eal_version.map b/lib/librte_eal/bsdapp/eal/rte_eal_version.map index 2f81f7c..f90bde9 100644 --- a/lib/librte_eal/bsdapp/eal/rte_eal_version.map +++ b/lib/librte_eal/bsdapp/eal/rte_eal_version.map @@ -22,7 +22,7 @@ DPDK_2.0 { rte_dump_tailq; rte_eal_alarm_cancel; rte_eal_alarm_set; - rte_eal_dev_init; + rte_eal_vdev_probe; rte_eal_devargs_add; rte_eal_devargs_dump; rte_eal_devargs_type_count; diff --git a/lib/librte_eal/common/eal_common_dev.c b/lib/librte_eal/common/eal_common_dev.c index 4f3b493..6d6868f 100644 --- a/lib/librte_eal/common/eal_common_dev.c +++ b/lib/librte_eal/common/eal_common_dev.c @@ -38,7 +38,6 @@ #include #include -#include #include #include #include @@ -76,34 +75,6 @@ void rte_eal_device_remove(struct rte_device *dev) TAILQ_REMOVE(&dev_device_list, dev, next); } -int -rte_eal_dev_init(void) -{ - struct rte_devargs *devargs; - - /* - * Note that the dev_driver_list is populated here - * from calls made to rte_eal_driver_register from constructor functions - * embedded into PMD modules via the RTE_PMD_REGISTER_VDEV macro - */ - - /* call the init function for each virtual device */ - TAILQ_FOREACH(devargs, &devargs_list, next) { - - if (devargs->type != RTE_DEVTYPE_VIRTUAL) - continue; - - if (rte_eal_vdev_init(devargs->virt.drv_name, - devargs->args)) { - RTE_LOG(ERR, EAL, "failed to initialize %s device\n", - devargs->virt.drv_name); - return -1; - } - } - - return 0; -} - int rte_eal_dev_attach(const char *name, const char *devargs) { struct rte_pci_addr addr; diff --git a/lib/librte_eal/common/eal_common_vdev.c b/lib/librte_eal/common/eal_common_vdev.c index 0ff2377..ed6a751 100644 --- a/lib/librte_eal/common/eal_common_vdev.c +++ b/lib/librte_eal/common/eal_common_vdev.c @@ -37,6 +37,7 @@ #include #include +#include #include #include @@ -114,3 +115,31 @@ rte_eal_vdev_uninit(const char *name) RTE_LOG(ERR, EAL, "no driver found for %s\n", name); return -EINVAL; } + +int +rte_eal_vdev_probe(void) +{ + struct rte_devargs *devargs; + + /* + * Note that the dev_driver_list is populated here + * from calls made to rte_eal_driver_register from constructor functions + * embedded into PMD modules via the RTE_PMD_REGISTER_VDEV macro + */ + + /* call the init function for each virtual device */ + TAILQ_FOREACH(devargs, &devargs_list, next) { + + if (devargs->type != RTE_DEVTYPE_VIRTUAL) + continue; + + if (rte_eal_vdev_init(devargs->virt.drv_name, + devargs->args)) { + RTE_LOG(ERR, EAL, "failed to initialize %s device\n", + devargs->virt.drv_name); + return -1; + } + } + + return 0; +} diff --git a/lib/librte_eal/common/include/rte_dev.h b/lib/librte_eal/common/include/rte_dev.h index 8840380..146f505 100644 --- a/lib/librte_eal/common/include/rte_dev.h +++ b/lib/librte_eal/common/include/rte_dev.h @@ -171,9 +171,9 @@ void rte_eal_driver_register(struct rte_driver *driver); void rte_eal_driver_unregister(struct rte_driver *driver); /** - * Initalize all the registered drivers in this process + * Probe all the registered vdev drivers in this process */ -int rte_eal_dev_init(void); +int rte_eal_vdev_probe(void); /** * Initialize a driver specified by name. diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c index 16dd5b9..faf75cf 100644 --- a/lib/librte_eal/linuxapp/eal/eal.c +++ b/lib/librte_eal/linuxapp/eal/eal.c @@ -884,8 +884,8 @@ rte_eal_init(int argc, char **argv) if (rte_eal_pci_probe()) rte_panic("Cannot probe PCI\n"); - if (rte_eal_dev_init() < 0) - rte_panic("Cannot init pmd devices\n"); + if (rte_eal_vdev_probe() < 0) + rte_panic("Cannot probe vdev drivers\n"); rte_eal_mcfg_complete(); diff --git a/lib/librte_eal/linuxapp/eal/rte_eal_version.map b/lib/librte_eal/linuxapp/eal/rte_eal_version.map index 83721ba..67fc95b 100644 --- a/lib/librte_eal/linuxapp/eal/rte_eal_version.map +++ b/lib/librte_eal/linuxapp/eal/rte_eal_version.map @@ -22,7 +22,7 @@ DPDK_2.0 { rte_dump_tailq; rte_eal_alarm_cancel; rte_eal_alarm_set; - rte_eal_dev_init; + rte_eal_vdev_probe; rte_eal_devargs_add; rte_eal_devargs_dump; rte_eal_devargs_type_count; -- 2.5.5