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.carri...@intel.com>
---
 lib/librte_eventdev/rte_event_timer_adapter.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/librte_eventdev/rte_event_timer_adapter.c 
b/lib/librte_eventdev/rte_event_timer_adapter.c
index 9c4ba1c..38f4dcf 100644
--- a/lib/librte_eventdev/rte_event_timer_adapter.c
+++ b/lib/librte_eventdev/rte_event_timer_adapter.c
@@ -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
-- 
2.6.4

Reply via email to