From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by dpdk.org (Postfix) with ESMTP id E57DC58EC for ; Mon, 20 Feb 2017 15:18:35 +0100 (CET) Received: by mail-wr0-f193.google.com with SMTP id z61so11358677wrc.3 for ; Mon, 20 Feb 2017 06:18:35 -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=fHZWAl+StCzjFmBYfc7PPcIUD1IXZzCM4WZPdSSdUXM=; b=LN6znbfnM6ObB8m/+JuR+4yKKFNpZaeuhglwfooWczkxtq1tiRO6Zo0WHGtEXHHRQf PQOCPFp6SeY0td6zS4/aqxeZFvwSP2v7C2QlmaAqndLZIZIFok2K0t7w9fdX9yoOziyo iqJU1w1fHS/etqL9Vn6F8RescyXaUAfDQXol6ccGCtAA5r94A9Cp8UfEi+m6FWb9wPkq Ud6y7/jYJgIeRYNJl2IRHdN6U46DRzYOHunOuPxoN6pfD3SZllTMnpXUkDmIOspNkDTW 41utyr03h3BenflZT5CCeh6fXXFrYITXlQiYs+QjWPPfSoFO0hezPoKb99uBkI7KAitd ruMg== 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=fHZWAl+StCzjFmBYfc7PPcIUD1IXZzCM4WZPdSSdUXM=; b=Q3Lh/5VajaWiyQto6R9bxkcQsPZc1GsIMy6SCs0RN4gbAG16R4eoMybpl7WsB9Hczb oG1MBE5GmCI92PjXFsIQRTpaKQG34yMDzqxXEuWbs6XA2fYRQ8rn8R1OqskJrQriBS6O 23pqU6zSFphw7fiduobWkF91leJjthBF9DkBNDOR00AhV8J3cA5dLk9LGduhSqL/Nkrd PdwJY6y3sM/z6Ikr5Nu1bE410khUST14hDW1vEvrI8K3IItdioBgWhs7PSbr3aq37OuW q00ZI5+hKMZIv/drBkZHR1HBSda+LQ2LW8AM+e+z54bgQlssUOLbj+QO0rbCtNnuX7P1 6rUg== X-Gm-Message-State: AMke39kawUXmTzVfdllewNqQ0UxZepAIZcpRHZObkDwYRuFrYj/Il0bhPN0EsgNU9/vJug== X-Received: by 10.223.130.115 with SMTP id 106mr2954066wrb.59.1487600315745; Mon, 20 Feb 2017 06:18:35 -0800 (PST) Received: from weierstrass.local.net ([91.200.109.169]) by smtp.gmail.com with ESMTPSA id o2sm24932276wra.42.2017.02.20.06.18.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Feb 2017 06:18: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: Mon, 20 Feb 2017 15:17:38 +0100 Message-Id: <1487600262-14382-5-git-send-email-jblunck@infradead.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1487600262-14382-1-git-send-email-jblunck@infradead.org> References: <1487600262-14382-1-git-send-email-jblunck@infradead.org> In-Reply-To: <1487152929-23627-1-git-send-email-jblunck@infradead.org> References: <1487152929-23627-1-git-send-email-jblunck@infradead.org> Subject: [dpdk-dev] [PATCH v2 4/8] 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, 20 Feb 2017 14:18:36 -0000 Signed-off-by: Jan Blunck Tested-by: Ferruh Yigit --- 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 2cf1ac8..0116085 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 3c68ff5..41b0cb4 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