[dpdk-dev,1/2] vdev: get name from embedded device
Checks
Commit Message
Instead of getting the name from the devargs lets take it from the
rte_device.
Signed-off-by: Jan Blunck <jblunck@infradead.org>
---
lib/librte_eal/common/include/rte_vdev.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -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;
}