telemetry: keep threads separate from data plane
authorCiara Power <ciara.power@intel.com>
Tue, 12 May 2020 15:28:58 +0000 (16:28 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 19 May 2020 13:05:56 +0000 (15:05 +0200)
commitfebbebf7f25558ed9261416269d3b5e6358c6262
tree76ec7eae349ebd910f8929558e8870ee1965c416
parente90b9c52f8affc46ba41266ecdfe29bddaf62b0e
telemetry: keep threads separate from data plane

The threads for listening on the telemetry sockets are control threads
and should be separated from those on the data plane. Since telemetry
cannot use the rte_ctrl_thread_create() API, as it does not depend on
EAL, we pass the ctrl thread cpu_set to telemetry init and use it
directly to ensure that telemetry cannot interfere with the data plane
threads.

Signed-off-by: Ciara Power <ciara.power@intel.com>
Acked-by: Kevin Laatz <kevin.laatz@intel.com>
lib/librte_eal/freebsd/eal.c
lib/librte_eal/linux/eal.c
lib/librte_telemetry/rte_telemetry.h
lib/librte_telemetry/telemetry.c