[v2,16/16] net/mlx5/hws: fix action template only term param dump print
Checks
Commit Message
From: Hamdan Igbaria <hamdani@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: stable@dpdk.org
Signed-off-by: Hamdan Igbaria <hamdani@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
---
drivers/net/mlx5/hws/mlx5dr_debug.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -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) {