summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDekel Peled <dekelp@mellanox.com>2019-08-05 10:07:05 +0300
committerRaslan Darawsheh <rasland@mellanox.com>2019-08-06 17:42:12 +0200
commit9b08de133e0118e8b4baa51885d5545865821bd9 (patch)
tree1e9116489fc60bb9cdf766bd61a01c179592f918
parenta3970d31e6fb0673611a4a0a4891b7109ae419cc (diff)
downloaddpdk-9b08de133e0118e8b4baa51885d5545865821bd9.zip
dpdk-9b08de133e0118e8b4baa51885d5545865821bd9.tar.gz
dpdk-9b08de133e0118e8b4baa51885d5545865821bd9.tar.xz
net/mlx5: fix flow rule configuration
Some flow rules were not configured. Part of the code in function flow_dv_matcher_enable() is enclosed in '#ifdef HAVE_MLX5DV_DR' preprocessor directive. Using this directive is not needed here, and prevents compilation of relevant code. This patch removes the unnecessary preprocessor directive. Fixes: 4f84a19779ca ("net/mlx5: add Direct Rules API") Cc: stable@dpdk.org Signed-off-by: Dekel Peled <dekelp@mellanox.com> Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
-rw-r--r--drivers/net/mlx5/mlx5_flow_dv.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c
index 14e70ed..536059d 100644
--- a/drivers/net/mlx5/mlx5_flow_dv.c
+++ b/drivers/net/mlx5/mlx5_flow_dv.c
@@ -4324,11 +4324,9 @@ flow_dv_matcher_enable(uint32_t *match_criteria)
match_criteria_enable |=
(!HEADER_IS_ZERO(match_criteria, misc_parameters_2)) <<
MLX5_MATCH_CRITERIA_ENABLE_MISC2_BIT;
-#ifdef HAVE_MLX5DV_DR
match_criteria_enable |=
(!HEADER_IS_ZERO(match_criteria, misc_parameters_3)) <<
MLX5_MATCH_CRITERIA_ENABLE_MISC3_BIT;
-#endif
return match_criteria_enable;
}