[dpdk-dev] [PATCH] net/mlx5: fix redundant use of directive

Dekel Peled dekelp at mellanox.com
Mon Aug 5 09:07:05 CEST 2019

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 redundant preprocessor directive.

Fixes: 4f84a19779ca ("net/mlx5: add Direct Rules API")

Signed-off-by: Dekel Peled <dekelp at mellanox.com>
 drivers/net/mlx5/mlx5_flow_dv.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c
index 9c0a261..582f644 100644
--- a/drivers/net/mlx5/mlx5_flow_dv.c
+++ b/drivers/net/mlx5/mlx5_flow_dv.c
@@ -4324,11 +4324,9 @@ struct field_modify_info modify_tcp[] = {
 	match_criteria_enable |=
 		(!HEADER_IS_ZERO(match_criteria, misc_parameters_2)) <<
-#ifdef HAVE_MLX5DV_DR
 	match_criteria_enable |=
 		(!HEADER_IS_ZERO(match_criteria, misc_parameters_3)) <<
 	return match_criteria_enable;

More information about the dev mailing list