From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Blunck Subject: [PATCH v2 15/15] devargs: remove bus field Date: Fri, 14 Jul 2017 17:12:13 -0400 Message-ID: <20170714211213.34436-16-jblunck@infradead.org> References: <20170711232512.54641-1-jblunck@infradead.org> <20170714211213.34436-1-jblunck@infradead.org> To: dev@dpdk.org Return-path: Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by dpdk.org (Postfix) with ESMTP id 2A67D7CBA for ; Fri, 14 Jul 2017 23:12:50 +0200 (CEST) Received: by mail-wm0-f68.google.com with SMTP id 15so936970wmm.3 for ; Fri, 14 Jul 2017 14:12:50 -0700 (PDT) Received: from localhost.localdomain ([37.228.147.16]) by smtp.gmail.com with ESMTPSA id c11sm4892223eda.0.2017.07.14.14.12.48 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 14 Jul 2017 14:12:48 -0700 (PDT) In-Reply-To: <20170714211213.34436-1-jblunck@infradead.org> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This removes the enum rte_bus field ``bus`` from struct rte_devargs. Signed-off-by: Jan Blunck --- lib/librte_eal/common/eal_common_devargs.c | 3 +-- lib/librte_eal/common/eal_common_vdev.c | 1 - lib/librte_eal/common/include/rte_devargs.h | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/librte_eal/common/eal_common_devargs.c b/lib/librte_eal/common/eal_common_devargs.c index 44a8d8562..191f53607 100644 --- a/lib/librte_eal/common/eal_common_devargs.c +++ b/lib/librte_eal/common/eal_common_devargs.c @@ -87,8 +87,7 @@ rte_eal_devargs_parse(const char *busname, const char *dev, if (busname == NULL || dev == NULL || da == NULL) return -EINVAL; /* Retrieve eventual bus info */ - da->bus = rte_bus_find_by_name(busname); - if (da->bus == NULL) { + if (rte_bus_find_by_name(busname) == NULL) { RTE_LOG(ERR, EAL, "Bus not found: \"%s\"\n", busname); return -EFAULT; } diff --git a/lib/librte_eal/common/eal_common_vdev.c b/lib/librte_eal/common/eal_common_vdev.c index c785fcc79..b33f15b03 100644 --- a/lib/librte_eal/common/eal_common_vdev.c +++ b/lib/librte_eal/common/eal_common_vdev.c @@ -141,7 +141,6 @@ alloc_devargs(const char *name, const char *args) if (!devargs) return NULL; - devargs->bus = &rte_vdev_bus; if (args) devargs->args = strdup(args); else diff --git a/lib/librte_eal/common/include/rte_devargs.h b/lib/librte_eal/common/include/rte_devargs.h index e3722ca28..943a4ee98 100644 --- a/lib/librte_eal/common/include/rte_devargs.h +++ b/lib/librte_eal/common/include/rte_devargs.h @@ -75,8 +75,6 @@ enum rte_devtype { struct rte_devargs { /** Next in list. */ TAILQ_ENTRY(rte_devargs) next; - /** Bus handle for the device. */ - struct rte_bus *bus; /** Name of the bus the device belongs to. */ char busname[RTE_DEV_NAME_MAX_LEN]; /** Name of the device. */ -- 2.13.2