On 2023/2/6 16:22, Robin Jarry wrote: > fengchengwen, Feb 06, 2023 at 04:50: >> > + return rte_lcore_iterate(lcore_telemetry_info_cb, &info); >> >> lcore_iterate will iterate and find the lcore. >> >> How about add one new API e.g. rte_lcore_cb(xxx) ? > > Hi fengchengwen, > > what would that new API do?
Just invoke callback on one specific lcore. In this patch, the lcore_telemetry_info_cb() only valid on specific lcore, but it was implements by rte_lcore_iterate which will iterate all lcores. > > > .