service: add count per lcore
[dpdk.git] / lib / librte_eal / common / include / rte_service.h
index 7c6f738..5ea81c4 100644 (file)
@@ -370,6 +370,19 @@ int32_t rte_service_set_stats_enable(struct rte_service_spec *service,
  */
 int32_t rte_service_lcore_list(uint32_t array[], uint32_t n);
 
+/**
+ * @warning
+ * @b EXPERIMENTAL: this API may change without prior notice
+ *
+ * Get the numer of services running on the supplied lcore.
+ *
+ * @param lcore Id of the service core.
+ * @retval >=0 Number of services registered to this core.
+ * @retval -EINVAL Invalid lcore provided
+ * @retval -ENOTSUP The provided lcore is not a service core.
+ */
+int32_t rte_service_lcore_count_services(uint32_t lcore);
+
 /**
  * @warning
  * @b EXPERIMENTAL: this API may change without prior notice