X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_eal%2Fcommon%2Finclude%2Frte_service.h;h=5ea81c4f6c9cc9ec8e247a3de1c7caef04dd0d63;hb=9cdbd44ea94020f1b28b1407b73f2a34bc424a4f;hp=7c6f7383a0a1b0bd0db2b73c7a6ff4866d5bc465;hpb=0decf84217f1ef8af132948a0661559a96961495;p=dpdk.git diff --git a/lib/librte_eal/common/include/rte_service.h b/lib/librte_eal/common/include/rte_service.h index 7c6f7383a0..5ea81c4f6c 100644 --- a/lib/librte_eal/common/include/rte_service.h +++ b/lib/librte_eal/common/include/rte_service.h @@ -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