[dpdk-dev] [PATCH 1/2] vdev: get name from embedded device

Jan Blunck jblunck at infradead.org
Tue Jul 11 20:56:48 CEST 2017


Instead of getting the name from the devargs lets take it from the
rte_device.

Signed-off-by: Jan Blunck <jblunck at infradead.org>
---
 lib/librte_eal/common/include/rte_vdev.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/librte_eal/common/include/rte_vdev.h b/lib/librte_eal/common/include/rte_vdev.h
index 3c07b76a0..fc24298f2 100644
--- a/lib/librte_eal/common/include/rte_vdev.h
+++ b/lib/librte_eal/common/include/rte_vdev.h
@@ -49,8 +49,8 @@ struct rte_vdev_device {
 static inline const char *
 rte_vdev_device_name(const struct rte_vdev_device *dev)
 {
-	if (dev && dev->device.devargs)
-		return dev->device.devargs->name;
+	if (dev && dev->device.name)
+		return dev->device.name;
 	return NULL;
 }
 
-- 
2.13.2



More information about the dev mailing list