From 5693233823b09b527376e94ce24df71918632dfa Mon Sep 17 00:00:00 2001 From: Matan Azrad Date: Wed, 19 Feb 2020 06:52:11 +0000 Subject: [PATCH] net/mlx5: fix GENEVE tunnel flow validation The new Mellanox devices support GENEVE tunnel stateless offloads by native HW parsers, FW doesn't need to configure flex parser to support it. The FW capability for GENEVE flex parser is not set for the above devices, hence the GENEVE flow validation failed for them. Remove the flex parser validation for GENEVE, stay only with the direct FW capability for GENEVE support. Fixes: e59a5dbcfd07 ("net/mlx5: add flow match on GENEVE item") Cc: stable@dpdk.org Signed-off-by: Matan Azrad Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 25482010d8..eb6bd274e5 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -2135,9 +2135,7 @@ mlx5_flow_validate_item_geneve(const struct rte_flow_item *item, .protocol = RTE_BE16(UINT16_MAX), }; - if (!(priv->config.hca_attr.flex_parser_protocols & - MLX5_HCA_FLEX_GENEVE_ENABLED) || - !priv->config.hca_attr.tunnel_stateless_geneve_rx) + if (!priv->config.hca_attr.tunnel_stateless_geneve_rx) return rte_flow_error_set(error, ENOTSUP, RTE_FLOW_ERROR_TYPE_ITEM, item, "L3 Geneve is not enabled by device" -- 2.20.1