Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/127407/?format=api
http://patches.dpdk.org/api/patches/127407/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230525095904.3967080-9-ndabilpuram@marvell.com/", "project": { "id": 1, "url": "http://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": "<20230525095904.3967080-9-ndabilpuram@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230525095904.3967080-9-ndabilpuram@marvell.com", "date": "2023-05-25T09:58:41", "name": "[v3,09/32] common/cnxk: update age drop statistics", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "cee3365429c2cb89486ea4ae289a7c2fdb06690a", "submitter": { "id": 1202, "url": "http://patches.dpdk.org/api/people/1202/?format=api", "name": "Nithin Dabilpuram", "email": "ndabilpuram@marvell.com" }, "delegate": { "id": 310, "url": "http://patches.dpdk.org/api/users/310/?format=api", "username": "jerin", "first_name": "Jerin", "last_name": "Jacob", "email": "jerinj@marvell.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20230525095904.3967080-9-ndabilpuram@marvell.com/mbox/", "series": [ { "id": 28180, "url": "http://patches.dpdk.org/api/series/28180/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=28180", "date": "2023-05-25T09:58:36", "name": "[v3,01/32] common/cnxk: allocate dynamic BPIDs", "version": 3, "mbox": "http://patches.dpdk.org/series/28180/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/127407/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/127407/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 3926C42B9A;\n\tThu, 25 May 2023 12:10:20 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C836842D43;\n\tThu, 25 May 2023 12:10:02 +0200 (CEST)", "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id 4F884410F9\n for <dev@dpdk.org>; Thu, 25 May 2023 12:09:55 +0200 (CEST)", "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 34PA2UjM020269 for <dev@dpdk.org>; Thu, 25 May 2023 03:09:54 -0700", "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3qt5jng0kq-8\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Thu, 25 May 2023 03:09:54 -0700", "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48;\n Thu, 25 May 2023 03:09: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.48 via Frontend\n Transport; Thu, 25 May 2023 03:09:40 -0700", "from hyd1588t430.caveonetworks.com (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id BB15F5B6BC2;\n Thu, 25 May 2023 02:59:44 -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=GiWDkVGqXr1djwwuHwXqbhBeFNhAu2LyoER252C6Q5U=;\n b=RVM/m52Y7hxTITvEiDTFbdcnXRAusinuOpZ8vDE0wyQ3DUSB+BkbxglXSUubB+OmwARI\n mixI7fIFKPobOlCI8jS6fCudlx8J24Vsw9Kqj2Ms6ZRonah2w6gmOiqL+ZAFd7GP4TJG\n km2ZBbEi1Qhw+jnvhxK80togGrXBRJ3G9ywY2PfKqlfxQnTtjPA0E3nMYglNjY5wT7Mi\n 2dhzVyzF1cGCjNJl+CrpmGBFsMa2Y64uCjQyz5T9YDiXYVuL8siNfEFi/nYp/hGlMqCy\n 0mXbqSTK3Naz7ZVMEWqLNyour7mdWneghPvYzKwJMGTRSL7aNej9iTfMB3tIndUZqba0 VQ==", "From": "Nithin Dabilpuram <ndabilpuram@marvell.com>", "To": "Nithin Kumar Dabilpuram <ndabilpuram@marvell.com>, Kiran Kumar K\n <kirankumark@marvell.com>, Sunil Kumar Kori <skori@marvell.com>, Satha Rao\n <skoteshwar@marvell.com>", "CC": "<jerinj@marvell.com>, <dev@dpdk.org>", "Subject": "[PATCH v3 09/32] common/cnxk: update age drop statistics", "Date": "Thu, 25 May 2023 15:28:41 +0530", "Message-ID": "<20230525095904.3967080-9-ndabilpuram@marvell.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20230525095904.3967080-1-ndabilpuram@marvell.com>", "References": "<20230411091144.1087887-1-ndabilpuram@marvell.com>\n <20230525095904.3967080-1-ndabilpuram@marvell.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-ORIG-GUID": "0CHHovpkV_Sp-UT_anh27aQD74HAqLEu", "X-Proofpoint-GUID": "0CHHovpkV_Sp-UT_anh27aQD74HAqLEu", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26\n definitions=2023-05-25_06,2023-05-24_01,2023-05-22_02", "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: Satha Rao <skoteshwar@marvell.com>\n\nUpdate age drop statistics. Added telemetry statistics for age drops.\n\nSigned-off-by: Satha Rao <skoteshwar@marvell.com>\n---\n drivers/common/cnxk/cnxk_telemetry_nix.c | 4 ++++\n drivers/common/cnxk/hw/nix.h | 2 ++\n drivers/common/cnxk/roc_features.h | 6 ++++++\n drivers/common/cnxk/roc_nix.h | 2 ++\n drivers/common/cnxk/roc_nix_stats.c | 4 ++++\n 5 files changed, 18 insertions(+)", "diff": "diff --git a/drivers/common/cnxk/cnxk_telemetry_nix.c b/drivers/common/cnxk/cnxk_telemetry_nix.c\nindex b7285cf137..ccae5d7853 100644\n--- a/drivers/common/cnxk/cnxk_telemetry_nix.c\n+++ b/drivers/common/cnxk/cnxk_telemetry_nix.c\n@@ -680,6 +680,10 @@ nix_sq_ctx(volatile void *qctx, struct plt_tel_data *d)\n \t/* W12 */\n \tCNXK_TEL_DICT_BF_PTR(d, ctx, pkts, w12_);\n \n+\t/* W13 */\n+\tCNXK_TEL_DICT_INT(d, ctx, aged_drop_octs, w13_);\n+\tCNXK_TEL_DICT_INT(d, ctx, aged_drop_pkts, w13_);\n+\n \t/* W14 */\n \tCNXK_TEL_DICT_BF_PTR(d, ctx, drop_octs, w14_);\n \ndiff --git a/drivers/common/cnxk/hw/nix.h b/drivers/common/cnxk/hw/nix.h\nindex 0d8f2a5e9b..fbdf1b64f6 100644\n--- a/drivers/common/cnxk/hw/nix.h\n+++ b/drivers/common/cnxk/hw/nix.h\n@@ -363,6 +363,8 @@\n #define NIX_LF_SQ_OP_STATUS\t (0xa30ull)\n #define NIX_LF_SQ_OP_DROP_OCTS\t (0xa40ull)\n #define NIX_LF_SQ_OP_DROP_PKTS\t (0xa50ull)\n+#define NIX_LF_SQ_OP_AGE_DROP_OCTS (0xa60ull) /* [CN10K, .) */\n+#define NIX_LF_SQ_OP_AGE_DROP_PKTS (0xa70ull) /* [CN10K, .) */\n #define NIX_LF_CQ_OP_INT\t (0xb00ull)\n #define NIX_LF_CQ_OP_DOOR\t (0xb30ull)\n #define NIX_LF_CQ_OP_STATUS\t (0xb40ull)\ndiff --git a/drivers/common/cnxk/roc_features.h b/drivers/common/cnxk/roc_features.h\nindex c2893faa65..6fe01015d8 100644\n--- a/drivers/common/cnxk/roc_features.h\n+++ b/drivers/common/cnxk/roc_features.h\n@@ -47,4 +47,10 @@ roc_feature_nix_has_rxchan_multi_bpid(void)\n \t\treturn true;\n \treturn false;\n }\n+\n+static inline bool\n+roc_feature_nix_has_age_drop_stats(void)\n+{\n+\treturn (roc_model_is_cn10kb() || roc_model_is_cn10ka_b0());\n+}\n #endif\ndiff --git a/drivers/common/cnxk/roc_nix.h b/drivers/common/cnxk/roc_nix.h\nindex 2b576f0891..f84e473db6 100644\n--- a/drivers/common/cnxk/roc_nix.h\n+++ b/drivers/common/cnxk/roc_nix.h\n@@ -293,6 +293,8 @@ struct roc_nix_stats_queue {\n \t\t\tuint64_t tx_octs;\n \t\t\tuint64_t tx_drop_pkts;\n \t\t\tuint64_t tx_drop_octs;\n+\t\t\tuint64_t tx_age_drop_pkts;\n+\t\t\tuint64_t tx_age_drop_octs;\n \t\t};\n \t};\n };\ndiff --git a/drivers/common/cnxk/roc_nix_stats.c b/drivers/common/cnxk/roc_nix_stats.c\nindex ca0e8ccb4f..1e93191a07 100644\n--- a/drivers/common/cnxk/roc_nix_stats.c\n+++ b/drivers/common/cnxk/roc_nix_stats.c\n@@ -137,6 +137,10 @@ nix_stat_tx_queue_get(struct nix *nix, uint16_t qid,\n \tqstats->tx_octs = qstat_read(nix, qid, NIX_LF_SQ_OP_OCTS);\n \tqstats->tx_drop_pkts = qstat_read(nix, qid, NIX_LF_SQ_OP_DROP_PKTS);\n \tqstats->tx_drop_octs = qstat_read(nix, qid, NIX_LF_SQ_OP_DROP_OCTS);\n+\tif (roc_feature_nix_has_age_drop_stats()) {\n+\t\tqstats->tx_age_drop_pkts = qstat_read(nix, qid, NIX_LF_SQ_OP_AGE_DROP_PKTS);\n+\t\tqstats->tx_age_drop_octs = qstat_read(nix, qid, NIX_LF_SQ_OP_AGE_DROP_OCTS);\n+\t}\n }\n \n static int\n", "prefixes": [ "v3", "09/32" ] }{ "id": 127407, "url": "