From: Jan Blunck Date: Tue, 11 Apr 2017 15:44:07 +0000 (+0200) Subject: eal: remove unused device init function X-Git-Tag: spdx-start~3663 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9721b4d543a32bf5af598eaf34fa16ff8f6ae72e;p=dpdk.git eal: remove unused device init function Signed-off-by: Jan Blunck Tested-by: Ferruh Yigit Acked-by: Shreyansh Jain --- diff --git a/lib/librte_eal/bsdapp/eal/eal.c b/lib/librte_eal/bsdapp/eal/eal.c index ee06fe9866..3b66da6cdc 100644 --- a/lib/librte_eal/bsdapp/eal/eal.c +++ b/lib/librte_eal/bsdapp/eal/eal.c @@ -660,9 +660,6 @@ rte_eal_init(int argc, char **argv) return -1; } - if (rte_eal_dev_init() < 0) - rte_eal_init_alert("Cannot init pmd devices\n"); - rte_eal_mcfg_complete(); return fctret; diff --git a/lib/librte_eal/bsdapp/eal/rte_eal_version.map b/lib/librte_eal/bsdapp/eal/rte_eal_version.map index ca12d89c30..1bb3c9ed76 100644 --- a/lib/librte_eal/bsdapp/eal/rte_eal_version.map +++ b/lib/librte_eal/bsdapp/eal/rte_eal_version.map @@ -20,7 +20,6 @@ DPDK_2.0 { rte_dump_tailq; rte_eal_alarm_cancel; rte_eal_alarm_set; - rte_eal_dev_init; 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 1ce90f660a..4bde430f90 100644 --- a/lib/librte_eal/common/eal_common_dev.c +++ b/lib/librte_eal/common/eal_common_dev.c @@ -76,12 +76,6 @@ void rte_eal_device_remove(struct rte_device *dev) TAILQ_REMOVE(&dev_device_list, dev, next); } -int -rte_eal_dev_init(void) -{ - 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/include/rte_dev.h b/lib/librte_eal/common/include/rte_dev.h index b17791f5de..42510998dc 100644 --- a/lib/librte_eal/common/include/rte_dev.h +++ b/lib/librte_eal/common/include/rte_dev.h @@ -170,11 +170,6 @@ 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 - */ -int rte_eal_dev_init(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 f4b1284588..f3fbeb9c77 100644 --- a/lib/librte_eal/linuxapp/eal/eal.c +++ b/lib/librte_eal/linuxapp/eal/eal.c @@ -939,9 +939,6 @@ rte_eal_init(int argc, char **argv) return -1; } - if (rte_eal_dev_init() < 0) - rte_eal_init_alert("Cannot init pmd devices\n"); - rte_eal_mcfg_complete(); return fctret; diff --git a/lib/librte_eal/linuxapp/eal/rte_eal_version.map b/lib/librte_eal/linuxapp/eal/rte_eal_version.map index 94da1e7b71..dbc419b719 100644 --- a/lib/librte_eal/linuxapp/eal/rte_eal_version.map +++ b/lib/librte_eal/linuxapp/eal/rte_eal_version.map @@ -20,7 +20,6 @@ DPDK_2.0 { rte_dump_tailq; rte_eal_alarm_cancel; rte_eal_alarm_set; - rte_eal_dev_init; rte_eal_devargs_add; rte_eal_devargs_dump; rte_eal_devargs_type_count;