[PATCH dpdk v3 0/2] Fix race in ethdev telemetry
Robin Jarry
rjarry at redhat.com
Mon Oct 14 21:32:35 CEST 2024
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.
v3: reordered callback arguments.
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
doc/guides/rel_notes/release_24_11.rst | 5 ++
lib/ethdev/rte_ethdev_telemetry.c | 66 ++++++++++++++++++--------
lib/telemetry/rte_telemetry.h | 46 ++++++++++++++++++
lib/telemetry/telemetry.c | 38 +++++++++++----
lib/telemetry/version.map | 3 ++
5 files changed, 131 insertions(+), 27 deletions(-)
--
2.46.2
More information about the dev
mailing list