Skip to content

Commit

Permalink
eventdev: fix missing driver names in info struct
Browse files Browse the repository at this point in the history
[ upstream commit cbbba8b87e03a028a2ac2f3542f1927ba4edc598 ]

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: bbbb929 ("event/skeleton: add skeleton eventdev driver")
Fixes: 0ce3ce7 ("event/dpaa2: add configuration functions")

Suggested-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
  • Loading branch information
bruce-richardson authored and kevintraynor committed Nov 15, 2023
1 parent 48ecb47 commit c900dcc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/eventdev/rte_eventdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,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;
return 0;
}

Expand Down

0 comments on commit c900dcc

Please sign in to comment.