net/mlx5: fix tunnel offload private items location
authorGregory Etelson <getelson@nvidia.com>
Thu, 6 May 2021 09:57:51 +0000 (12:57 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 11 May 2021 22:03:18 +0000 (00:03 +0200)
commit8c5a231bce3adb2088252fea73df70bf9d7fb329
treead5da3fdfba7e4fa49edf0337064e8e56500a16a
parent61c7b522d9062242d648d09b61d5137740bc2ebb
net/mlx5: fix tunnel offload private items location

Tunnel offload API requires application to query PMD for specific flow
items and actions. Application uses these PMD specific elements to
build flow rules according to the tunnel offload model.
The model does not restrict private elements location in a flow rule,
but the current MLX5 PMD implementation expects that tunnel offload
rule will begin with PMD specific elements.
The patch removes that placement limitation.

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.h
drivers/net/mlx5/mlx5_flow_dv.c