[dpdk-dev] [PATCH] net/mlx5: fix resource release issue for mirror flow
Raslan Darawsheh
rasland at nvidia.com
Mon Apr 12 14:57:16 CEST 2021
Hi,
> -----Original Message-----
> From: dev <dev-bounces at dpdk.org> On Behalf Of Jiawei Wang
> Sent: Friday, April 9, 2021 3:33 PM
> To: Matan Azrad <matan at nvidia.com>; Shahaf Shuler
> <shahafs at nvidia.com>; Slava Ovsiienko <viacheslavo at nvidia.com>;
> Jiawei(Jonny) Wang <jiaweiw at nvidia.com>
> Cc: dev at dpdk.org; stable at dpdk.org
> Subject: [dpdk-dev] [PATCH] net/mlx5: fix resource release issue for mirror
> flow
>
> The mlx5 PMD allocated the resources of the sample actions, and then
> moved these ones to the destination actions array. The original indices
> were not cleared and the resources were referenced twice in the
> flow object - as the fate actions and in the destination actions array.
>
> This causes the failure on flow destroy because PMD tried to release the
> same objects twice.
>
> The patch clears the original indices, add the missed checking for zero
> and eliminates multiple object releasing.
>
> Fixes: 00c10c22118a ("net/mlx5: update translate function for mirroring")
> Cc: stable at dpdk.org
>
> Signed-off-by: Jiawei Wang <jiaweiw at nvidia.com>
> Reviewed-by: Suanming Mou <suanmingm at nvidia.com>
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh
More information about the dev
mailing list