net/mlx5: fix tunnel offload validation
authorGregory Etelson <getelson@nvidia.com>
Wed, 3 Nov 2021 08:55:56 +0000 (10:55 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 10 Nov 2021 14:44:43 +0000 (15:44 +0100)
commitaaa6a7ec0f3e19388f1262b7af298e6668d401cf
treeff29432bc466e892f81d925c70db3c8460f0f43d
parent7297d2cdecce71aeaf33d915db1659d6dea0bad6
net/mlx5: fix tunnel offload validation

Tunnel offload API allows the application to restore packet to
its original form if the chain of flows is missed after DECAP action.

MLX5 PMD provides tunnel offload support only if DV API was enabled.

The patch verifies DV availability before processing with
tunnel offload tasks.

Fixes: 4ec6360de37d ("net/mlx5: implement tunnel offload")
Cc: stable@dpdk.org
Signed-off-by: Gregory Etelson <getelson@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_flow.c
drivers/net/mlx5/mlx5_flow_dv.c