net/mlx5: fix VXLAN decap on non-VXLAN flow
authorShiri Kuzin <shirik@nvidia.com>
Thu, 31 Dec 2020 09:33:28 +0000 (11:33 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:34:52 +0000 (16:34 +0100)
commitd362e6f6ac6d90c02dc773bd0e39ec0c05db2925
treed6cb089b6d69a689965a7a1702d339e32e1e851b
parent8e61555657b227d967a91b8964c8d1e4e9d17695
net/mlx5: fix VXLAN decap on non-VXLAN flow

The vxlan_decap action performs decapsulation of the VXLAN tunnel.

Currently we can create a flow with vxlan_decap without
matching on VXLAN header.

To solve this issue this patch adds validation verifying
that the VXLAN item was detected when specifying
vxlan_decap action.

Fixes: 49d6465af3e1 ("net/mlx5: add VXLAN decap action to Direct Verbs")
Cc: stable@dpdk.org
Signed-off-by: Shiri Kuzin <shirik@nvidia.com>
Reviewed-by: Suanming Mou <suanmingm@nvidia.com>
drivers/net/mlx5/mlx5_flow_dv.c