Add definitions to the default software implementation for the functions that start and stop adapter instances.
Signed-off-by: Erik Gabriel Carrillo <erik.g.carri...@intel.com> --- lib/librte_eventdev/rte_event_timer_adapter.c | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/lib/librte_eventdev/rte_event_timer_adapter.c b/lib/librte_eventdev/rte_event_timer_adapter.c index 38f4dcf..27e6226 100644 --- a/lib/librte_eventdev/rte_event_timer_adapter.c +++ b/lib/librte_eventdev/rte_event_timer_adapter.c @@ -565,7 +565,18 @@ sw_event_timer_adapter_uninit(struct rte_event_timer_adapter *adapter) static int sw_event_timer_adapter_start(const struct rte_event_timer_adapter *adapter) { - RTE_SET_USED(adapter); + int ret; + struct rte_event_timer_adapter_sw_data *sw_data; + + sw_data = adapter->data->adapter_priv; + + ret = rte_service_component_runstate_set(sw_data->service_id, 1); + if (ret < 0) + return ret; + + /* If no service core is mapped to the service, fail */ + if (!rte_service_runstate_get(sw_data->service_id)) + return -ENOENT; return 0; } @@ -573,9 +584,9 @@ sw_event_timer_adapter_start(const struct rte_event_timer_adapter *adapter) static int sw_event_timer_adapter_stop(const struct rte_event_timer_adapter *adapter) { - RTE_SET_USED(adapter); - - return 0; + struct rte_event_timer_adapter_sw_data *sw_data; + sw_data = adapter->data->adapter_priv; + return rte_service_component_runstate_set(sw_data->service_id, 0); } static void -- 2.6.4