common/cnxk: fix log level during MCAM allocation

Message ID 20220705061356.3664923-1-psatheesh@marvell.com (mailing list archive)
State Accepted, archived
Delegated to: Jerin Jacob
Headers
Series common/cnxk: fix log level during MCAM allocation |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK
ci/intel-Testing success Testing PASS
ci/github-robot: build success github build: passed
ci/iol-aarch64-unit-testing success Testing PASS
ci/iol-aarch64-compile-testing success Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-x86_64-compile-testing success Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-x86_64-unit-testing success Testing PASS
ci/iol-abi-testing success Testing PASS

Commit Message

Satheesh Paul Antonysamy July 5, 2022, 6:13 a.m. UTC
  From: Satheesh Paul <psatheesh@marvell.com>

Changed log level from info to debug for a log message
printed during MCAM allocation.

Fixes: 1f66919817ee ("common/cnxk: improve MCAM entries management")
Cc: stable@dpdk.org

Signed-off-by: Satheesh Paul <psatheesh@marvell.com>
Reviewed-by: Kiran Kumar Kokkilagadda <kirankumark@marvell.com>
---
 drivers/common/cnxk/roc_npc_utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Jerin Jacob Aug. 27, 2022, 12:47 p.m. UTC | #1
On Tue, Jul 5, 2022 at 11:44 AM <psatheesh@marvell.com> wrote:
>
> From: Satheesh Paul <psatheesh@marvell.com>
>
> Changed log level from info to debug for a log message
> printed during MCAM allocation.
>
> Fixes: 1f66919817ee ("common/cnxk: improve MCAM entries management")
> Cc: stable@dpdk.org
>
> Signed-off-by: Satheesh Paul <psatheesh@marvell.com>
> Reviewed-by: Kiran Kumar Kokkilagadda <kirankumark@marvell.com>

Applied to dpdk-next-net-mrvl/for-next-net. Thanks



> ---
>  drivers/common/cnxk/roc_npc_utils.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/common/cnxk/roc_npc_utils.c b/drivers/common/cnxk/roc_npc_utils.c
> index cbc6200fec..8bdabc116d 100644
> --- a/drivers/common/cnxk/roc_npc_utils.c
> +++ b/drivers/common/cnxk/roc_npc_utils.c
> @@ -635,7 +635,7 @@ npc_alloc_mcam_by_ref_entry(struct mbox *mbox, struct roc_npc_flow *flow,
>         npc_find_mcam_ref_entry(flow, npc, &prio, &ref_entry, dir);
>         rc = npc_allocate_mcam_entry(mbox, prio, rsp_local, ref_entry);
>         if (rc && !retry_done) {
> -               plt_info(
> +               plt_npc_dbg(
>                         "npc: Failed to allocate lower priority entry. Retrying for higher priority");
>
>                 dir = NPC_MCAM_HIGHER_PRIO;
> --
> 2.35.3
>
  

Patch

diff --git a/drivers/common/cnxk/roc_npc_utils.c b/drivers/common/cnxk/roc_npc_utils.c
index cbc6200fec..8bdabc116d 100644
--- a/drivers/common/cnxk/roc_npc_utils.c
+++ b/drivers/common/cnxk/roc_npc_utils.c
@@ -635,7 +635,7 @@  npc_alloc_mcam_by_ref_entry(struct mbox *mbox, struct roc_npc_flow *flow,
 	npc_find_mcam_ref_entry(flow, npc, &prio, &ref_entry, dir);
 	rc = npc_allocate_mcam_entry(mbox, prio, rsp_local, ref_entry);
 	if (rc && !retry_done) {
-		plt_info(
+		plt_npc_dbg(
 			"npc: Failed to allocate lower priority entry. Retrying for higher priority");
 
 		dir = NPC_MCAM_HIGHER_PRIO;