On Mon, Oct 14, 2024 at 9:33 PM Robin Jarry <[email protected]> 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/uninitialised ethdev data. > > Reuse the ethdev lock that protects port allocation/destruction and the > new telemetry callback register api that takes an additional private > argument. Pass eth_dev_telemetry_do as the main callback and the actual > endpoint callbacks as private argument. > > Fixes: c190daedb9b1 ("ethdev: add telemetry callbacks") > Cc: [email protected] > > Signed-off-by: Robin Jarry <[email protected]> > Acked-by: Bruce Richardson <[email protected]>
Thanks for the fix Robin, series applied. -- David Marchand

