Following a discussion we had during the summit, here is one series to fix a race between an application thread and the telemetry thread handling requests on ethdev ports.
The problem may be generic to other device classes providing telemetry callbacks, but for now, this series goes with a simple and naive approach of putting locks in the ethdev layer. v2: added new telemetry api to register callbacks with a private arg. Robin Jarry (2): telemetry: add api to register command with private argument ethdev: fix potential race in telemetry endpoints lib/ethdev/rte_ethdev_telemetry.c | 66 ++++++++++++++++++++++--------- lib/telemetry/rte_telemetry.h | 46 +++++++++++++++++++++ lib/telemetry/telemetry.c | 38 ++++++++++++++---- lib/telemetry/version.map | 3 ++ 4 files changed, 126 insertions(+), 27 deletions(-) -- 2.46.2