net/mlx5: fix drop action in tunnel offload mode
authorGregory Etelson <getelson@nvidia.com>
Wed, 20 Jan 2021 19:17:10 +0000 (21:17 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Jan 2021 17:16:08 +0000 (18:16 +0100)
commit49be011d3c87fd1b5d5d791744e9d969dff26bc1
treed32a015eeb58a2cbb37d0fbeb4a2f722cad55fc2
parent31cb857d092395026ee9274cca47ed3e0eb908fd
net/mlx5: fix drop action in tunnel offload mode

Tunnel offload mode allows application to restore partially offloaded
tunneled packets to its original state.
The mode was designed to optimize packet recovery. It must not
block flow actions that are allowed by MLX5 PMD.

The patch allows tunnel offload match rules to use drop flow action.

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_dv.c