From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by dpdk.org (Postfix) with ESMTP id 07EBA69C5 for ; Sat, 25 Feb 2017 11:28:34 +0100 (CET) Received: by mail-wr0-f194.google.com with SMTP id o22so3976996wro.3 for ; Sat, 25 Feb 2017 02:28:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=eXLCJjB6N323zjetlAKR9/ZYldBXMNnpDzIMx0WXSeo=; b=Zk7b9EzfQazhRJTdMiTfKxOBhVpajZj0lKfS/OZ5UF+5UC7o4vnkmaa4vq/U2HL4xx SkCpT6k66W4tIG/2vzqedq7BSv6KGHmz3frfFPUOPKmbk4wZhUVcN1Wf3L1p1WwCxz8w wx7SteAwU2XAR9nVazWzv1U0DoYJagx8hHLGmt5Oko58PniouysMFoEWUbaok1mf2u+K WIh9Ro/wrpIO0w4bCN8nxh6+zNpIdBUbCkzNZiEoNwHu8szc7TVQ2cUcANq0lebUmH8y 9OWzard3Fkj9G2nZ+OjEr8s5wfRxDaxc7DQAB0aax3feonxqe9jrGOOI/l0wQlLkWb9a ZBbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references; bh=eXLCJjB6N323zjetlAKR9/ZYldBXMNnpDzIMx0WXSeo=; b=gFA73MDNKWqgNmPrvSlypJYcAUDeT7eFnUq2g1xnvpf7IWkVV4I34O4Jv+BgeithQZ L+X/2BFja07B/DpfQoVV9WR45ZWqQ0uZ85xLTAxG9YyDc2gTHCFPya8RFy6sfqM/gASk yJBH/z/tBb5gJDpoRIWQTEs1FHOaika/R6Tr6woD0CkX9fJqE6vrVCF31T9fcQ+3wkQZ CY7M5Nv9Yf+mqlUdmN0lByJlMfrY+njsk68Z0hZE4lYe98lgjckkIAmyuY1ji8z3fFu7 KoUyhigWBNljmrv1W8kmSofS/+ytrpuPr0Mc+dZYOn41Qmkl8ICgv8s5hMQIlCnnJOlG AB6g== X-Gm-Message-State: AMke39motye4hAWTv44o8ss0nlZOHb5/7jJgrGEtMvUfZnJ07L8tpdSb7KZQ8bDioLnKdA== X-Received: by 10.223.160.114 with SMTP id l47mr6207771wrl.73.1488018513834; Sat, 25 Feb 2017 02:28:33 -0800 (PST) Received: from weierstrass.local.net ([91.200.109.169]) by smtp.gmail.com with ESMTPSA id e72sm5830893wma.16.2017.02.25.02.28.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Feb 2017 02:28:32 -0800 (PST) Sender: Jan Blunck From: Jan Blunck To: dev@dpdk.org Cc: david.marchand@6wind.com, shreyansh.jain@nxp.com, ferruh.yigit@intel.com Date: Sat, 25 Feb 2017 11:28:10 +0100 Message-Id: <1488018496-995-5-git-send-email-jblunck@infradead.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1488018496-995-1-git-send-email-jblunck@infradead.org> References: <1488018496-995-1-git-send-email-jblunck@infradead.org> In-Reply-To: <1487600262-14382-1-git-send-email-jblunck@infradead.org> References: <1487600262-14382-1-git-send-email-jblunck@infradead.org> Subject: [dpdk-dev] [PATCH v3 04/10] eal: remove unused rte_eal_dev_init() 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, 25 Feb 2017 10:28:34 -0000 Signed-off-by: Jan Blunck Tested-by: Ferruh Yigit Acked-by: Shreyansh Jain --- lib/librte_eal/bsdapp/eal/eal.c | 3 --- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 1 - lib/librte_eal/common/eal_common_dev.c | 6 ------ lib/librte_eal/common/include/rte_dev.h | 5 ----- lib/librte_eal/linuxapp/eal/eal.c | 3 --- lib/librte_eal/linuxapp/eal/rte_eal_version.map | 1 - 6 files changed, 19 deletions(-) diff --git a/lib/librte_eal/bsdapp/eal/eal.c b/lib/librte_eal/bsdapp/eal/eal.c index a584447..3d29fcb 100644 --- a/lib/librte_eal/bsdapp/eal/eal.c +++ b/lib/librte_eal/bsdapp/eal/eal.c @@ -621,9 +621,6 @@ rte_eal_init(int argc, char **argv) if (rte_bus_probe()) rte_panic("Cannot probe devices\n"); - if (rte_eal_dev_init() < 0) - rte_panic("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 67f2ffb..b1996e0 100644 --- a/lib/librte_eal/bsdapp/eal/rte_eal_version.map +++ b/lib/librte_eal/bsdapp/eal/rte_eal_version.map @@ -22,7 +22,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 1ce90f6..4bde430 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 b17791f..4251099 100644 --- a/lib/librte_eal/common/include/rte_dev.h +++ b/lib/librte_eal/common/include/rte_dev.h @@ -171,11 +171,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. * * @param name diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c index f77ff5c..88479de 100644 --- a/lib/librte_eal/linuxapp/eal/eal.c +++ b/lib/librte_eal/linuxapp/eal/eal.c @@ -892,9 +892,6 @@ rte_eal_init(int argc, char **argv) if (rte_bus_probe()) rte_panic("Cannot probe devices\n"); - if (rte_eal_dev_init() < 0) - rte_panic("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 9c134b4..2ada2f0 100644 --- a/lib/librte_eal/linuxapp/eal/rte_eal_version.map +++ b/lib/librte_eal/linuxapp/eal/rte_eal_version.map @@ -22,7 +22,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; -- 2.7.4