From: Hamdan Igbaria <hamd...@nvidia.com>

The debug print of only_term param in the action template
was printed incorrectly.

Fixes: 78580cf4e796 ("net/mlx5/hws: add debug layer")
Cc: sta...@dpdk.org

Signed-off-by: Hamdan Igbaria <hamd...@nvidia.com>
Acked-by: Matan Azrad <ma...@nvidia.com>
---
 drivers/net/mlx5/hws/mlx5dr_debug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/mlx5/hws/mlx5dr_debug.c 
b/drivers/net/mlx5/hws/mlx5dr_debug.c
index 5ad4ca2da5..741a725842 100644
--- a/drivers/net/mlx5/hws/mlx5dr_debug.c
+++ b/drivers/net/mlx5/hws/mlx5dr_debug.c
@@ -153,7 +153,7 @@ mlx5dr_debug_dump_matcher_action_template(FILE *f, struct 
mlx5dr_matcher *matche
                              MLX5DR_DEBUG_RES_TYPE_MATCHER_ACTION_TEMPLATE,
                              (uint64_t)(uintptr_t)at,
                              (uint64_t)(uintptr_t)matcher,
-                             at->only_term ? 0 : 1,
+                             at->only_term,
                              is_root ? 0 : at->num_of_action_stes,
                              at->num_actions);
                if (ret < 0) {
-- 
2.39.3

Reply via email to