From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=y2PYkXhPwXJNA+8nza60YgXXqHw0FnvGTLEF0uayfzE=; b=rQlD8rLtLOwB+zmDLJvlHp0/aaRWUC+/sfE1PRL3sD4r5VfINUJmwFgOb0gpqcMZwr pVXUgBlzsbOKx7srUFUpk8igEX86a109kOT2axrmuQwOs+5rbCuI4afM5+u5Q24e54l3 tJN1lz2NJfGwsNLSw+K1uhoVA77Do2kUfcSUQKBmR8jkc/7wktn/PAFaaIk7TMA1ZIJ8 0GXv/q9kqw/ICLG8C3io4QkE0tVPSMacI4wA4SHfl8f4VtJ/ZxChRGB51k2rgFUHeUH/ jf1rHQC5nxOPk9ozfJELjMjrD5+Rkn6t3GlkTIF5tq4aThXtCa5kwrbFO+4FgaeVEQCF 6QaQ== 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:subject:date:message-id :in-reply-to:references; bh=y2PYkXhPwXJNA+8nza60YgXXqHw0FnvGTLEF0uayfzE=; b=diKjS3IFH8HNTWWjpe8Zw6XAX6XAoAkpPrYwvZ+YQ6xl18FxhehwyW5dBxKZI40d1f juurKRUxKakUPYA/76I9UJnp0P3nFmZDIqzqJM6CvJbeOQGI3XRwHAd3FC1zprz9XR6M j9AozEfA6t1Q8wvOyBqrRCN9ZBKlEj9e/OeViijqihIiH3bqG3prd8CSD7t2o1oO4RnK iTCIl8KH56BRwhaJnq++M0yIJUcEmvZ0Yca91WzDH3oH/QR/YuIy+LQ07z2dqotXhx0l KUXF8E198nTwSSpFB27wy8sTly6Cpc9kCFFEqqUm6hN01BPJQYUjfbz9A2iJxHbi/tK0 ug7A== X-Gm-Message-State: AIVw113z9YEJAMGaxYK1luaZNWApHQZVnyOc47Ifg47bwhkJiRZCASqW 4C7vFaJfjRaALkL4 X-Received: by 10.80.137.173 with SMTP id g42mr7988203edg.125.1500066769724; Fri, 14 Jul 2017 14:12:49 -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) Sender: Jan Blunck From: Jan Blunck To: dev@dpdk.org Date: Fri, 14 Jul 2017 17:12:13 -0400 Message-Id: <20170714211213.34436-16-jblunck@infradead.org> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170714211213.34436-1-jblunck@infradead.org> References: <20170711232512.54641-1-jblunck@infradead.org> <20170714211213.34436-1-jblunck@infradead.org> Subject: [dpdk-dev] [PATCH v2 15/15] devargs: remove bus field 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: Fri, 14 Jul 2017 21:12:50 -0000 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