From: Erez Shitrit <ere...@nvidia.com>

When the user tries to create a matcher and if failed  with specific
errno (E2BIG) the message will be in debug level and not in warning.
It is a part of a feature when the user re-try to insert a new matching
depends on that errno, no need the annoying message.

Fixes: c55c2bf3533 ("net/mlx5/hws: net/mlx5/hws: add definer layer")

Signed-off-by: Erez Shitrit <ere...@nvidia.com>
Acked-by: Matan Azrad <ma...@nvidia.com>
---
 drivers/net/mlx5/hws/mlx5dr_definer.c | 6 +++---
 drivers/net/mlx5/hws/mlx5dr_matcher.c | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/net/mlx5/hws/mlx5dr_definer.c 
b/drivers/net/mlx5/hws/mlx5dr_definer.c
index 35a2ed2048..81d0e0e6df 100644
--- a/drivers/net/mlx5/hws/mlx5dr_definer.c
+++ b/drivers/net/mlx5/hws/mlx5dr_definer.c
@@ -3534,7 +3534,7 @@ mlx5dr_definer_find_best_match_fit(struct mlx5dr_context 
*ctx,
                return 0;
        }
 
-       DR_LOG(ERR, "Unable to find supporting match/jumbo definer 
combination");
+       DR_LOG(DEBUG, "Unable to find supporting match/jumbo definer 
combination");
        rte_errno = E2BIG;
        return rte_errno;
 }
@@ -3689,7 +3689,7 @@ mlx5dr_definer_calc_layout(struct mlx5dr_matcher *matcher,
        /* Find the match definer layout for header layout match union */
        ret = mlx5dr_definer_find_best_match_fit(ctx, match_definer, match_hl);
        if (ret) {
-               DR_LOG(ERR, "Failed to create match definer from header 
layout");
+               DR_LOG(DEBUG, "Failed to create match definer from header 
layout");
                goto free_fc;
        }
 
@@ -4041,7 +4041,7 @@ int mlx5dr_definer_matcher_init(struct mlx5dr_context 
*ctx,
 
        ret = mlx5dr_definer_calc_layout(matcher, &match_layout, &range_layout);
        if (ret) {
-               DR_LOG(ERR, "Failed to calculate matcher definer layout");
+               DR_LOG(DEBUG, "Failed to calculate matcher definer layout");
                return ret;
        }
 
diff --git a/drivers/net/mlx5/hws/mlx5dr_matcher.c 
b/drivers/net/mlx5/hws/mlx5dr_matcher.c
index 1c64abfa57..1213e7f0ad 100644
--- a/drivers/net/mlx5/hws/mlx5dr_matcher.c
+++ b/drivers/net/mlx5/hws/mlx5dr_matcher.c
@@ -877,7 +877,7 @@ static int mlx5dr_matcher_bind_mt(struct mlx5dr_matcher 
*matcher)
        /* Calculate match, range and hash definers */
        ret = mlx5dr_definer_matcher_init(ctx, matcher);
        if (ret) {
-               DR_LOG(ERR, "Failed to set matcher templates with match 
definers");
+               DR_LOG(DEBUG, "Failed to set matcher templates with match 
definers");
                return ret;
        }
 
-- 
2.39.3

Reply via email to