Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/114475/?format=api
https://patches.dpdk.org/api/patches/114475/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220801061629.1862969-2-psatheesh@marvell.com/", "project": { "id": 1, "url": "https://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20220801061629.1862969-2-psatheesh@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220801061629.1862969-2-psatheesh@marvell.com", "date": "2022-08-01T06:16:28", "name": "[2/3] common/cnxk: print counters along with flow dump", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "c8d3e72cba8b5dda9ce917f13bf641288feafe51", "submitter": { "id": 1663, "url": "https://patches.dpdk.org/api/people/1663/?format=api", "name": "Satheesh Paul Antonysamy", "email": "psatheesh@marvell.com" }, "delegate": { "id": 310, "url": "https://patches.dpdk.org/api/users/310/?format=api", "username": "jerin", "first_name": "Jerin", "last_name": "Jacob", "email": "jerinj@marvell.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20220801061629.1862969-2-psatheesh@marvell.com/mbox/", "series": [ { "id": 24145, "url": "https://patches.dpdk.org/api/series/24145/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=24145", "date": "2022-08-01T06:16:27", "name": "[1/3] common/cnxk: fix printing disabled MKEX registers", "version": 1, "mbox": "https://patches.dpdk.org/series/24145/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/114475/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/114475/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 616E2A00C3;\n\tMon, 1 Aug 2022 08:16:50 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id A6EA742C79;\n\tMon, 1 Aug 2022 08:16:45 +0200 (CEST)", "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id 55A8241101\n for <dev@dpdk.org>; Mon, 1 Aug 2022 08:16:43 +0200 (CEST)", "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id\n 26VHTonx019459\n for <dev@dpdk.org>; Sun, 31 Jul 2022 23:16:42 -0700", "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3hn45m59h6-2\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Sun, 31 Jul 2022 23:16:42 -0700", "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Sun, 31 Jul 2022 23:16:40 -0700", "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend\n Transport; Sun, 31 Jul 2022 23:16:40 -0700", "from satheeshpaullabpc.. (unknown [10.28.34.33])\n by maili.marvell.com (Postfix) with ESMTP id BE90F3F70AA;\n Sun, 31 Jul 2022 23:16:37 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-transfer-encoding : content-type; s=pfpt0220;\n bh=Daoj3AEauuy5OsWDpOry2S/EPdv00d1/Lcoixglq4h4=;\n b=UaMyIvnshAENON+8IFZeD5dNcfL2NJSS0+mzRI+GkJIWy3BDz2RXsrZz3VHX8UYoQcBh\n caJF2xGrI8X1Nihe/soJRe5auXU3qMZZ0ftU6gECU2+zKSUDGEUlhpbnLXrcR7fm5lXe\n dxYgXdss9/szhlH8+o6pUxmBF5eGxGebH15tFgEbxFhX4DFLx2vPlpozxDjf2FsIegJF\n pjcyvnS5lUllB2Rn9CHOHdAE7qxI6EK7L9uvlQh24XfnnTnHL4BbEhn75SO/zqz96Bih\n xI+EL5P+//XV1FK02/aklaN++Upd0BddY3Y5MXBUuXuYIuhGhZ3u5c0tlq/0t9S5ml5i 1g==", "From": "<psatheesh@marvell.com>", "To": "Nithin Dabilpuram <ndabilpuram@marvell.com>, Kiran Kumar K\n <kirankumark@marvell.com>, Sunil Kumar Kori <skori@marvell.com>, Satha Rao\n <skoteshwar@marvell.com>", "CC": "<dev@dpdk.org>, Satheesh Paul <psatheesh@marvell.com>", "Subject": "[dpdk-dev] [PATCH 2/3] common/cnxk: print counters along with flow\n dump", "Date": "Mon, 1 Aug 2022 11:46:28 +0530", "Message-ID": "<20220801061629.1862969-2-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-GUID": "GwyVC-oub5s-o1ny_vuOebqS3fpVPlCH", "X-Proofpoint-ORIG-GUID": "GwyVC-oub5s-o1ny_vuOebqS3fpVPlCH", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1\n definitions=2022-08-01_01,2022-07-28_02,2022-06-22_01", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "From: Satheesh Paul <psatheesh@marvell.com>\n\nWhen dumping hardware flow data, print any counter\nconfigured on the flow as well.\n\nSigned-off-by: Satheesh Paul <psatheesh@marvell.com>\nReviewed-by: Kiran Kumar K <kirankumark@marvell.com>\n---\n drivers/common/cnxk/roc_npc_mcam_dump.c | 11 +++++++++--\n 1 file changed, 9 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/common/cnxk/roc_npc_mcam_dump.c b/drivers/common/cnxk/roc_npc_mcam_dump.c\nindex 16997bd38a..fe57811a84 100644\n--- a/drivers/common/cnxk/roc_npc_mcam_dump.c\n+++ b/drivers/common/cnxk/roc_npc_mcam_dump.c\n@@ -590,12 +590,19 @@ roc_npc_flow_mcam_dump(FILE *file, struct roc_npc *roc_npc,\n \tstruct npc *npc = roc_npc_to_npc_priv(roc_npc);\n \tstruct npc_mcam_read_entry_req *mcam_read_req;\n \tstruct npc_mcam_read_entry_rsp *mcam_read_rsp;\n+\tuint64_t count = 0;\n \tbool is_rx = 0;\n \tint i, rc = 0;\n \n \tfprintf(file, \"MCAM Index:%d\\n\", flow->mcam_id);\n-\tfprintf(file, \"Interface :%s (%d)\\n\", intf_str[flow->nix_intf],\n-\t\tflow->nix_intf);\n+\tif (flow->ctr_id != NPC_COUNTER_NONE && flow->use_ctr) {\n+\t\trc = roc_npc_mcam_read_counter(roc_npc, flow->ctr_id, &count);\n+\t\tif (rc)\n+\t\t\treturn;\n+\t\tfprintf(file, \"Hit count: %\" PRIu64 \"\\n\", count);\n+\t}\n+\n+\tfprintf(file, \"Interface :%s (%d)\\n\", intf_str[flow->nix_intf], flow->nix_intf);\n \tfprintf(file, \"Priority :%d\\n\", flow->priority);\n \n \tif (flow->nix_intf == NIX_INTF_RX)\n", "prefixes": [ "2/3" ] }{ "id": 114475, "url": "