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

David Marchand david.marchand at redhat.com
Tue Oct 15 10:38:47 CEST 2024


On Mon, Oct 14, 2024 at 9:33 PM Robin Jarry <rjarry at redhat.com> 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: stable at dpdk.org
>
> Signed-off-by: Robin Jarry <rjarry at redhat.com>
> Acked-by: Bruce Richardson <bruce.richardson at intel.com>

Thanks for the fix Robin, series applied.


-- 
David Marchand



More information about the dev mailing list