[dpdk-dev] [PATCH] net/mlx5: fix resource release issue for mirror flow
Slava Ovsiienko
viacheslavo at nvidia.com
Mon Apr 12 08:36:59 CEST 2021
> -----Original Message-----
> From: Jiawei Wang <jiaweiw at nvidia.com>
> Sent: Friday, April 9, 2021 15:33
> 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: [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>
Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>
More information about the dev
mailing list