[dpdk-dev] [PATCH 13/13] devargs: remove bus field
Jan Blunck
jblunck at infradead.org
Wed Jul 12 01:25:12 CEST 2017
This removes the enum rte_bus field ``bus`` from struct rte_devargs.
Signed-off-by: Jan Blunck <jblunck at infradead.org>
---
lib/librte_eal/common/eal_common_vdev.c | 1 -
lib/librte_eal/common/include/rte_devargs.h | 2 --
2 files changed, 3 deletions(-)
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 6977c4fc4..db9b0eb74 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
More information about the dev
mailing list