From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f182.google.com (mail-wr0-f182.google.com [209.85.128.182]) by dpdk.org (Postfix) with ESMTP id 4266E58EC for ; Tue, 11 Apr 2017 17:44:32 +0200 (CEST) Received: by mail-wr0-f182.google.com with SMTP id l28so737422wre.0 for ; Tue, 11 Apr 2017 08:44:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=RReBO17TEgLBYKw278anR8hSVD4zN1zmsK6OWIwGfMQ=; b=he/RNIZReS33jzMikTNVZ1vDV56H4dWvMP4q45LW/PlumuCJbxLZDUdzsz6sddO2hy dFhfwv4D5T99+Sn7sI6EnyWQbaxZ34+m+lnqSspqUEBaKkG9jPB5Ap+zhxG8kTMUjPnN OQ0M3FE+Mcx2d4XQGbYLjoAagPCUf+xJdU+Hl0F9VJmqOXW3KTya+M2u7e1TIahyi2Rz 1Fn/qOTSaZRCQpzBgqmPjsdZEjBkBwYNYwf94r61XP4ODkd0i9IVAlELmdRp6UyEqseP gIdLhtXECoSDPY7bLn0iMNyStVLT3dZzw2YHaY1cda6oEOBs/7z2t24Dc47VWUzwDJzQ sApw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=RReBO17TEgLBYKw278anR8hSVD4zN1zmsK6OWIwGfMQ=; b=m/x4xg2HSLvn7Woykttz8N4BwdoDJBg/RhI0z8XIYcfV1Rb5MTqb6Pf2+dMtEvSfah UKSaUrpCc/fZ5ld8hpWKhBR1DUi1EzqHpH2J8ziKywz0BBxxh1vUVYoaQPSN3x0yB4IK KAAUP93+ZZFWTYq0yw+2OETdY5V2IdDkb8giVk/CQIqxN4z6Fk5zTIftrrKZIJkUdtfo gaflGaozmTzCaSbcCl93781msDpWYpDFN3Hogx/PC3a20DZiuurmLCpb5bdYdBL7WzjL xjPml+kbT/uTJO+NoAYy2blRBp+4V0kP1VzXWMU13mlDH98xUpbVpPPBC/4o7+iXsAYA U0IQ== X-Gm-Message-State: AFeK/H0siqfz6sDjboHYSEcewBOUKNbGTJrtDIGdoZckEEnTDLgkXCMPwKnLovXVH13hcpAN X-Received: by 10.223.176.161 with SMTP id i30mr35628224wra.32.1491925471939; Tue, 11 Apr 2017 08:44:31 -0700 (PDT) Received: from bidouze.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id v14sm2936830wmv.24.2017.04.11.08.44.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 11 Apr 2017 08:44:30 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Jan Blunck Date: Tue, 11 Apr 2017 17:44:07 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: <1488797809-12917-1-git-send-email-jblunck@infradead.org> In-Reply-To: References: Subject: [dpdk-dev] [PATCH v5 03/12] 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: Tue, 11 Apr 2017 15:44:32 -0000 From: Jan Blunck 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 7321ac6..41aa0b5 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 ca12d89..1bb3c9e 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 522aad3..01e37c4 100644 --- a/lib/librte_eal/common/eal_common_dev.c +++ b/lib/librte_eal/common/eal_common_dev.c @@ -78,12 +78,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) { int ret = 1; 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 7cf33d6..a869ee3 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 94da1e7..dbc419b 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; -- 2.1.4