From: Dekel Peled Date: Wed, 18 Dec 2019 15:09:55 +0000 (+0200) Subject: net/mlx5: fix item flag on GENEVE item validation X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=953c00f763b8689f01c8d3f528abcfb243c1aa8c;p=dpdk.git net/mlx5: fix item flag on GENEVE item validation On validation of GENEVE item, the wrong flag is used. This patch sets the correct bit in item_flags bitmap. Fixes: e59a5dbcfd07 ("net/mlx5: add flow match on GENEVE item") Cc: stable@dpdk.org Signed-off-by: Dekel Peled Acked-by: Matan Azrad --- diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c index 12cbf17200..4c162816e4 100644 --- a/drivers/net/mlx5/mlx5_flow_dv.c +++ b/drivers/net/mlx5/mlx5_flow_dv.c @@ -4418,7 +4418,7 @@ flow_dv_validate(struct rte_eth_dev *dev, const struct rte_flow_attr *attr, error); if (ret < 0) return ret; - last_item = MLX5_FLOW_LAYER_VXLAN_GPE; + last_item = MLX5_FLOW_LAYER_GENEVE; break; case RTE_FLOW_ITEM_TYPE_MPLS: ret = mlx5_flow_validate_item_mpls(dev, items,