From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by dpdk.org (Postfix) with ESMTP id B41A25599 for ; Mon, 6 Mar 2017 11:57:07 +0100 (CET) Received: by mail-wr0-f196.google.com with SMTP id l37so21179473wrc.3 for ; Mon, 06 Mar 2017 02:57:07 -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=o5R5agr835BCg6sCchbT3OvPuEODC/VqKtI8whydYzPLBHEKw5oKUSguhFubE2Nt5a 2J3JVSZ6VPARaspsUjp1BSxRr1wkkWsKAfijTAjQjPjTIPdLjrUnyeTfEwD7qiBmBFWp yGTWpG/f7MzXE93+97iTL1IcA0RRlkPFKSaDpYFp+7/mvSHTCcb3NUOWZIzFBaKLTROT fdyOpY+Jbu4/v12Lld3aT23xLBbez61zCXQyp6jJN4BL1L4Rezu2hTAZUkH3F5vKIoU1 DtwEXOu+InSoMIGuT3pEtTSFbYeyLr5FBIkDO6lcEPkvmu/rmGz6E5WRqqc/O7fZdAU1 3Law== 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=CvYdZ21eKtY6HUhcdCPmMyBlRjQX5oCNanKWHcT5bvCsDqZIxIQhkQ1SLBDDAwT9Cj BC53iFjsgJ1/Td3vKhrqmO2uoSBzIBIstufR77N+B8ZXDDFQjnBB7S61YKPyXLWBXTmR 0r3Q15FZlyRBWfZTBAbL+LMmGnBdfshJw06JT3hASS/+audoK6NnmJkCNg0n1Ob6S5PW SI59rTk2bH6DfcxfDgQK+QXyeBL8H/Pqu0totVBagmzF1bHaJ8gHuXEQNIz77lQSqPuk ShYF7jg8B1qhGpxuLXYvvuxiVIrZNCn1kPHRmpWaiuCBs+4l3+tNEECSeef1KxI5/b2q qIlg== X-Gm-Message-State: AMke39kd+mM6UBrBIu50E/lNfgIeJSB7FHo+I4lCdLtzM0hWxMc/sUHnAGx8PW0ChSaaFQ== X-Received: by 10.223.138.252 with SMTP id z57mr13315260wrz.110.1488797827526; Mon, 06 Mar 2017 02:57:07 -0800 (PST) Received: from weierstrass.local.net ([91.200.109.169]) by smtp.gmail.com with ESMTPSA id o63sm14277896wmo.30.2017.03.06.02.57.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Mar 2017 02:57:06 -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: Mon, 6 Mar 2017 11:56:43 +0100 Message-Id: <1488797809-12917-5-git-send-email-jblunck@infradead.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1488797809-12917-1-git-send-email-jblunck@infradead.org> References: <1488797809-12917-1-git-send-email-jblunck@infradead.org> In-Reply-To: <1488018496-995-1-git-send-email-jblunck@infradead.org> References: <1488018496-995-1-git-send-email-jblunck@infradead.org> Subject: [dpdk-dev] [PATCH v4 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: Mon, 06 Mar 2017 10:57:07 -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