net/mlx5: fix tunnel offload freeing
authorGregory Etelson <getelson@nvidia.com>
Wed, 25 Nov 2020 09:44:27 +0000 (11:44 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 25 Nov 2020 12:54:20 +0000 (13:54 +0100)
commitbb5d49c6165b0c6ac32499ddc3e7fee41cfda51d
tree535b462ced7a625edf6a09f38cf64dd2b3f1cca8
parente98f479df941e09984b54486f3286b0764846a88
net/mlx5: fix tunnel offload freeing

PMD did not remove tunnel offload object from tunnels database before
it released the object memory. As the result, the tunnels database
become corrupted and subsequent search operations triggered PMD crash.
The patch removes tunnel offload object from the tunnels database when
the object is not in-use by PMD any more.

Fixes: bc1d90a3cf6f ("net/mlx5: fix build with Direct Verbs disabled")

Signed-off-by: Gregory Etelson <getelson@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_flow.c