Skip to content

Fix race in ethdev telemetry

Robin Jarry dpdk-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 4 repliesIn review
  2. v22 patches 4 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2telemetry: add api to register command with private argumentdoc/guides/rel_notes/release_24_11.rst lib/telemetry/rte_telemetry.h lib/telemetry/telemetry.c +1 more+84 -80 replies
2/2ethdev: fix potential race in telemetry endpointslib/ethdev/rte_ethdev_telemetry.c+47 -194 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchBruce RichardsonStephen Hemminger
1/2A-b
2/2A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH dpdk v3 0/2] Fix race in ethdev telemetry

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(-)
Signature · 1 line
2.46.2