> -----Original Message-----
> From: Jiawei Wang <jiaw...@nvidia.com>
> Sent: Friday, April 9, 2021 15:33
> To: Matan Azrad <ma...@nvidia.com>; Shahaf Shuler
> <shah...@nvidia.com>; Slava Ovsiienko <viachesl...@nvidia.com>;
> Jiawei(Jonny) Wang <jiaw...@nvidia.com>
> Cc: dev@dpdk.org; sta...@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: sta...@dpdk.org
> 
> Signed-off-by: Jiawei Wang <jiaw...@nvidia.com>
> Reviewed-by: Suanming Mou <suanmi...@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viachesl...@nvidia.com>

Reply via email to