Re: [RFT 2/4] net/mlx5: fix counter leak in hairpin queue setup

Dariusz Sosnowski
2026-02-26T09:57:33Z

On Tue, Feb 17, 2026 at 07:05:00AM -0800, Stephen Hemminger wrote:
> When rxq_obj_modify_counter_set_id() fails in
> mlx5_enable_per_queue_hairpin_counter(), the freshly allocated DevX
> queue counter object is not destroyed before returning. Destroy it
> on the error path.
>
> Fixes: f0c0731b6d40 ("net/mlx5: add counters for hairpin drop")
> Cc: stable@dpdk.org
>
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>

Acked-by: Dariusz Sosnowski <dsosnowski@nvidia.com>