[dpdk-dev,v6,07/23] eventtimer: add adapter get info function definition
Checks
Commit Message
Add a definition to the default software implementation for the entry
point that can fill out driver-specific information in the info struct.
Signed-off-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
---
lib/librte_eventdev/rte_event_timer_adapter.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
@@ -582,8 +582,9 @@ static void
sw_event_timer_adapter_get_info(const struct rte_event_timer_adapter *adapter,
struct rte_event_timer_adapter_info *adapter_info)
{
- RTE_SET_USED(adapter);
- RTE_SET_USED(adapter_info);
+ struct rte_event_timer_adapter_sw_data *sw_data;
+ sw_data = adapter->data->adapter_priv;
+ adapter_info->service_id = sw_data->service_id;
}
static int