From f6713517521e8e367f51c6e364423b23a4f47eb4 Mon Sep 17 00:00:00 2001 From: Jan Blunck Date: Tue, 11 Jul 2017 19:15:46 -0400 Subject: [PATCH] bus/vdev: get name from embedded generic device Instead of getting the name from the devargs lets take it from the rte_device. Signed-off-by: Jan Blunck Acked-by: Gaetan Rivet --- 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 3c07b76a0b..fc24298f23 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.20.1