From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id DC117A0542; Mon, 29 Aug 2022 08:24:55 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6515C40DF7; Mon, 29 Aug 2022 08:24:55 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 4F7074069F; Mon, 29 Aug 2022 08:24:53 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27T0R31p023901; Sun, 28 Aug 2022 23:24:52 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=zW1/R6AnMWLtlLCtBYi42o0Wq7nQ9GGYq72lZuFg+hw=; b=Vgrd/v297SzgG/HONceUg9Yv+yS2ePVKTR0HC0VC3nu3H7CdJ+huIVLVKJArhGehYTfi S+8Ghd01DkiDLfgPh7DeZJW/r+yNOoj3LvcdW9TD7JjLTOYl13IdXL0DG6Ar6bAQNoEj 8b8sxRHd6Lpk8t8pOC5iP8h8vF+egZuAoCjvAy6xv2loTyNg58Uu5yai6uGzqtErVQA5 wq6+VaG7rFdMR4MuA+vG05PRwbS4odv8lt3O9aunf4NG0IJScq0F3OpPJRZ7eonDHWF7 Kwy/GlSvoYPY8cXeMPLNSa+Axg7hHdakROkVOUUh/KZ/a2C0Tq2YFXc8ovPz04pAS7DX jw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3j7jsn5xhx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 28 Aug 2022 23:24:52 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Sun, 28 Aug 2022 23:24:48 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Sun, 28 Aug 2022 23:24:48 -0700 Received: from satheeshpaullabpc.. (unknown [10.28.34.33]) by maili.marvell.com (Postfix) with ESMTP id 3769C3F705D; Sun, 28 Aug 2022 23:24:45 -0700 (PDT) From: To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: , Satheesh Paul , Subject: [dpdk-dev] [PATCH v2 1/3] common/cnxk: fix printing disabled MKEX registers Date: Mon, 29 Aug 2022 11:54:40 +0530 Message-ID: <20220829062442.49728-1-psatheesh@marvell.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220801061629.1862969-1-psatheesh@marvell.com> References: <20220801061629.1862969-1-psatheesh@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: Ejho9wQUG94-o1a50qQRDDug95xTab9- X-Proofpoint-GUID: Ejho9wQUG94-o1a50qQRDDug95xTab9- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-29_03,2022-08-25_01,2022-06-22_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Satheesh Paul This patch skips printing disabled MKEX registers when dumping hardware flow MCAM entry data. Fixes: 9869c39918 ("common/cnxk: support flow entry dump") Cc: stable@dpdk.org Signed-off-by: Satheesh Paul Reviewed-by: Kiran Kumar K --- drivers/common/cnxk/roc_npc_mcam_dump.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/common/cnxk/roc_npc_mcam_dump.c b/drivers/common/cnxk/roc_npc_mcam_dump.c index 2aaf3ccd0b..16997bd38a 100644 --- a/drivers/common/cnxk/roc_npc_mcam_dump.c +++ b/drivers/common/cnxk/roc_npc_mcam_dump.c @@ -310,8 +310,10 @@ npc_flow_print_item(FILE *file, struct npc *npc, struct npc_xtract_info *xinfo, for (i = 0; i < NPC_MAX_LFL; i++) { lflags_info = npc->prx_fxcfg[intf][ld][i].xtract; - npc_flow_print_xtractinfo(file, lflags_info, flow, lid, - lt); + if (!lflags_info->enable) + continue; + + npc_flow_print_xtractinfo(file, lflags_info, flow, lid, lt); } } } @@ -620,7 +622,7 @@ roc_npc_flow_mcam_dump(FILE *file, struct roc_npc *roc_npc, mcam_read_req->entry = flow->mcam_id; rc = mbox_process_msg(npc->mbox, (void *)&mcam_read_rsp); if (rc) { - plt_err("Failed to fetch MCAM entry"); + plt_err("Failed to fetch MCAM entry:%d", flow->mcam_id); return; } -- 2.35.3