net/mlx5: fix tunnel flow destroy
authorGregory Etelson <getelson@nvidia.com>
Wed, 28 Oct 2020 04:58:06 +0000 (06:58 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:08 +0000 (23:35 +0100)
commit64ed71d59a3ee98f0d2498d0fbdd9edd78662b89
treee68c19d88fd9124d7818088f65c13fd79479dd4e
parent71094ae3ceeab84a5486996d1dfb2448f210ce58
net/mlx5: fix tunnel flow destroy

Flow destructor tired to access flow related resources after the
flow object memory was already released and crashed dpdk process.

The patch moves flow memory release to the end of destructor.

Fixes: 4ec6360de37d ("net/mlx5: implement tunnel offload")

Signed-off-by: Gregory Etelson <getelson@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_flow.c