Re: [dpdk-dev] [PATCH] net/mlx5: fix VXLAN decap flow created without VXLAN item
From: Thomas Monjalon <hidden>
Date: 2021-01-06 21:28:14
From: Thomas Monjalon <hidden>
Date: 2021-01-06 21:28:14
31/12/2020 10:33, Shiri Kuzin:
The vxlan_decap action preforms 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 <redacted>
Reviewed-by: Suanming Mou <redacted>
---
+ return rte_flow_error_set(error, ENOTSUP,
+ RTE_FLOW_ERROR_TYPE_UNSPECIFIED, NULL,
+ "vxlan item should be present for vxlan decap");Changed "vxlan" to "VXLAN". Applied in next-net-mlx, thanks.