eal: limit telemetry to primary processes
Telemetry interface should be exposed for primary processes only, since secondary processes will conflict on socket creation, and since all data in secondary process is generally available to primary. For example, all device stats for ethdevs, cryptodevs, etc. will all be common across processes. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Ciara Power <ciara.power@intel.com> Tested-by: Conor Walsh <conor.walsh@intel.com>
This commit is contained in:
parent
7501968808
commit
e89463a366
@ -950,7 +950,7 @@ rte_eal_init(int argc, char **argv)
|
|||||||
rte_eal_init_alert("Cannot clear runtime directory");
|
rte_eal_init_alert("Cannot clear runtime directory");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (!internal_conf->no_telemetry) {
|
if (rte_eal_process_type() == RTE_PROC_PRIMARY && !internal_conf->no_telemetry) {
|
||||||
int tlog = rte_log_register_type_and_pick_level(
|
int tlog = rte_log_register_type_and_pick_level(
|
||||||
"lib.telemetry", RTE_LOG_WARNING);
|
"lib.telemetry", RTE_LOG_WARNING);
|
||||||
if (tlog < 0)
|
if (tlog < 0)
|
||||||
|
@ -1320,7 +1320,7 @@ rte_eal_init(int argc, char **argv)
|
|||||||
rte_eal_init_alert("Cannot clear runtime directory");
|
rte_eal_init_alert("Cannot clear runtime directory");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (!internal_conf->no_telemetry) {
|
if (rte_eal_process_type() == RTE_PROC_PRIMARY && !internal_conf->no_telemetry) {
|
||||||
int tlog = rte_log_register_type_and_pick_level(
|
int tlog = rte_log_register_type_and_pick_level(
|
||||||
"lib.telemetry", RTE_LOG_WARNING);
|
"lib.telemetry", RTE_LOG_WARNING);
|
||||||
if (tlog < 0)
|
if (tlog < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user