]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/include/rte_service.h
service: add count per lcore
[dpdk.git] / lib / librte_eal / common / include / rte_service.h
index 7c6f7383a0a1b0bd0db2b73c7a6ff4866d5bc465..5ea81c4f6c9cc9ec8e247a3de1c7caef04dd0d63 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