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 7B6E6A2F for ; Wed, 15 Feb 2017 11:02:28 +0100 (CET) Received: by mail-wr0-f196.google.com with SMTP id c4so5043212wrd.1 for ; Wed, 15 Feb 2017 02:02:28 -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; bh=x8KLw3UChcVK0fo5zuRlH/OU0MxAY2Nt+uAqb2Tv4+0=; b=sCdUEiP5tFvGgJH5lmPGvPZarCaWrjEG5rfe2zdanwXfhUWAEVNgPvt75MpT1Rmhju dSSL19SVBFKNQzxmvkH36IOcTu3ds5cPpKjNLl9c7CqTTiK3MrJLLvc4jo9Dzp6wnmPa SDowok7FoGAHQS7ZVobvgAtnyKYHjGLfhxP0y2yzz6TFKoJf3JZuAaf4Ugd+o9Tyo7MF BnPkqi0qOhxjCKCCnhYFi8KQqkix7ATulssipfUiwimWe3j6l46y8hwijP8FkdRu2fQQ 1dhgPapEDjIHZBV5wh2ErADV8zphhhNs+wA6fuhorNXh8FR+YpcOWfsg3jxDh7YoJDOm 3ZNg== 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; bh=x8KLw3UChcVK0fo5zuRlH/OU0MxAY2Nt+uAqb2Tv4+0=; b=VB8HSGG+CdTQGYzEFijzgNqZcyBTkWPe77fnL10CNJm4S43zbnUzBYKxBMIFsOVDfy H62g1MzwQFrQmy0J8zWGp8IulHnbnnyEIEEjaa//2sT6TE+lZSBwWPx77uZEMva9aqHm 5EPuL0eh+QNOm7vx8j/cIgfROBN+h+TxRzrBrL2/Nfk1/SR4k8RtR9W2f4zTfOJmaKRS olGVfz0QmI0eTBUnpufPB93NzZCJZl9et5x8I80jTQg339JDiSbTu8YBuJccCxd52+Px tfRYlwGP8AvAtwRd67sjQF4SqVqw4+/ntSNdqQjyWUbOgsAN1KQDA5736wVkCcH2t3w/ 35Gg== X-Gm-Message-State: AMke39l2DygU/b+23YPPv6dDS4rkfmwKFB6Issk+BJdaLNGxvYkzFDDrBhGERuv8vWGJEw== X-Received: by 10.223.163.26 with SMTP id c26mr27515998wrb.68.1487152948047; Wed, 15 Feb 2017 02:02:28 -0800 (PST) Received: from weierstrass.local.net ([91.200.109.169]) by smtp.gmail.com with ESMTPSA id k195sm4716061wmd.7.2017.02.15.02.02.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Feb 2017 02:02:27 -0800 (PST) Sender: Jan Blunck From: Jan Blunck To: dev@dpdk.org Cc: shreyansh.jain@nxp.com Date: Wed, 15 Feb 2017 11:02:06 +0100 Message-Id: <1487152929-23627-5-git-send-email-jblunck@infradead.org> X-Mailer: git-send-email 2.7.4 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 4/7] 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: Wed, 15 Feb 2017 10:02:28 -0000 Signed-off-by: Jan Blunck --- lib/librte_eal/bsdapp/eal/eal.c | 3 --- 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 --- 4 files changed, 17 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/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; -- 2.7.4