Re: [PATCH dpdk v2 2/2] ethdev: fix potential race in telemetry endpoints

2024-10-03 Thread Bruce Richardson
On Thu, Oct 03, 2024 at 01:24:42PM +0200, Robin Jarry wrote: > While invoking telemetry commands (which may happen at any time, out of > control of the application), an application thread may concurrently > add/remove ports. The telemetry callbacks may then access partially > initialized/uninitiali

[PATCH dpdk v2 2/2] ethdev: fix potential race in telemetry endpoints

2024-10-03 Thread Robin Jarry
While invoking telemetry commands (which may happen at any time, out of control of the application), an application thread may concurrently add/remove ports. The telemetry callbacks may then access partially initialized/uninitialised ethdev data. Reuse the ethdev lock that protects port allocation