Instead of getting the name from the devargs lets take it from the rte_device.
Signed-off-by: Jan Blunck <jblu...@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