[dpdk-dev] [PATCH] net/mlx5: fix DevX resources memory management.

Matan Azrad matan at nvidia.com
Tue Nov 24 11:15:47 CET 2020



From: Gregory Etelson
> Invalid memory release order of DevX resources caused PMD crash.
> 
> 1. SQ and CQ memory must be unregistered with DevX before it is freed.
> 2. SQ objects reference to a CQ ones. Hence, SQ should be destroyed in
>    advance of CQ it references to.
> 
> Fixes: 6deb19e1b2d2 ("net/mlx5: separate Rx queue object creations")
> Fixes: 88f2e3f18cc7 ("net/mlx5: rearrange SQ and CQ creation in DevX
> module")
> 
> Signed-off-by: Gregory Etelson <getelson at nvidia.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>
Acked-by: Matan Azrad <matan at nvidia.com>


More information about the dev mailing list