[dpdk-dev,v6,07/23] eventtimer: add adapter get info function definition

Message ID 1515630074-29020-8-git-send-email-erik.g.carrillo@intel.com (mailing list archive)
State Superseded, archived
Delegated to: Jerin Jacob


Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation fail Compilation issues

Commit Message

Carrillo, Erik G Jan. 11, 2018, 12:20 a.m. UTC
  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(-)


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