Rather than relying on the individual drivers to always populated the driver name field in the info structure - something missed by some drivers, we can do so in the eventdev rte_event_dev_info_get() function. This fixes issues
Fixes: bbbb929da5e6 ("event/skeleton: add skeleton eventdev driver") Fixes: 0ce3ce7c275c ("event/dpaa2: add configuration functions") Cc: sta...@dpdk.org Suggested-by: David Marchand <david.march...@redhat.com> Signed-off-by: Bruce Richardson <bruce.richard...@intel.com> --- lib/eventdev/rte_eventdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/eventdev/rte_eventdev.c b/lib/eventdev/rte_eventdev.c index 95373bbaad..0ca32d6721 100644 --- a/lib/eventdev/rte_eventdev.c +++ b/lib/eventdev/rte_eventdev.c @@ -104,6 +104,8 @@ rte_event_dev_info_get(uint8_t dev_id, struct rte_event_dev_info *dev_info) dev_info->dequeue_timeout_ns = dev->data->dev_conf.dequeue_timeout_ns; dev_info->dev = dev->dev; + if (dev->dev != NULL && dev->dev->driver != NULL) + dev_info->driver_name = dev->dev->driver->name; rte_eventdev_trace_info_get(dev_id, dev_info, dev_info->dev); -- 2.39.2