Extend the service capability of the sw event device by exposing service id
to the application.
The application can use service id to configure service cores to run event
scheduling.
Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
return -ENOEXEC;
}
+ ret = rte_service_component_runstate_set(sw->service_id, 1);
+ if (ret) {
+ SW_LOG_ERR("Unable to enable service component");
+ return -ENOEXEC;
+ }
+
+ dev->data->service_inited = 1;
+ dev->data->service_id = sw->service_id;
+
return 0;
}