[PATCH] net/mlx5: fix Rx Hash queue resource release in sample flow

Dariusz Sosnowski dsosnowski at nvidia.com
Tue May 21 13:22:48 CEST 2024


> -----Original Message-----
> From: Jiawei(Jonny) Wang <jiaweiw at nvidia.com>
> Sent: Monday, May 20, 2024 17:07
> To: Bing Zhao <bingz at nvidia.com>; Suanming Mou <suanmingm at nvidia.com>;
> Dariusz Sosnowski <dsosnowski at nvidia.com>; Slava Ovsiienko
> <viacheslavo at nvidia.com>; Ori Kam <orika at nvidia.com>; Matan Azrad
> <matan at nvidia.com>
> Cc: dev at dpdk.org; Raslan Darawsheh <rasland at nvidia.com>; stable at dpdk.org
> Subject: [PATCH] net/mlx5: fix Rx Hash queue resource release in sample flow
> 
> While the queue/rss action was added to sample action lists, the rx hash queue
> resource was allocated in the sample action translation to create the sample DR
> action later.
> 
> While there's a failure in the flow creation, the Rx hash queue resource of the
> sample action list was destroyed in the wrong place.
> 
> This patch adds the checking to release the Rx hash queue resource after the
> sample action release, to avoid one more extra release if there's a failure.
> 
> Fixes: ca5eb60ecd5b ("net/mlx5: fix resource release for mirror flow")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Jiawei Wang <jiaweiw at nvidia.com>
> Reviewed-by: Bing Zhao <bingz at nvidia.com>

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

Best regards,
Dariusz Sosnowski


More information about the dev mailing list