Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/125913/?format=api
http://patchwork.dpdk.org/api/patches/125913/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230411091144.1087887-8-ndabilpuram@marvell.com/", "project": { "id": 1, "url": "http://patchwork.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": "<20230411091144.1087887-8-ndabilpuram@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230411091144.1087887-8-ndabilpuram@marvell.com", "date": "2023-04-11T09:11:31", "name": "[08/21] common/cnxk: update age drop statistics", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "cee3365429c2cb89486ea4ae289a7c2fdb06690a", "submitter": { "id": 1202, "url": "http://patchwork.dpdk.org/api/people/1202/?format=api", "name": "Nithin Dabilpuram", "email": "ndabilpuram@marvell.com" }, "delegate": { "id": 310, "url": "http://patchwork.dpdk.org/api/users/310/?format=api", "username": "jerin", "first_name": "Jerin", "last_name": "Jacob", "email": "jerinj@marvell.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230411091144.1087887-8-ndabilpuram@marvell.com/mbox/", "series": [ { "id": 27660, "url": "http://patchwork.dpdk.org/api/series/27660/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=27660", "date": "2023-04-11T09:11:24", "name": "[01/21] common/cnxk: allocate dynamic BPIDs", "version": 1, "mbox": "http://patchwork.dpdk.org/series/27660/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/125913/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/125913/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 584034291B;\n\tTue, 11 Apr 2023 11:12:56 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5C43242D39;\n\tTue, 11 Apr 2023 11:12:28 +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 0802E42D33\n for <dev@dpdk.org>; Tue, 11 Apr 2023 11:12:26 +0200 (CEST)", "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 33B8g5LY014919 for <dev@dpdk.org>; Tue, 11 Apr 2023 02:12:26 -0700", "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3purfs94gh-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Tue, 11 Apr 2023 02:12:26 -0700", "from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48;\n Tue, 11 Apr 2023 02:12:24 -0700", "from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend\n Transport; Tue, 11 Apr 2023 02:12:24 -0700", "from hyd1588t430.caveonetworks.com (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id 10DB73F706F;\n Tue, 11 Apr 2023 02:12:21 -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=Wp8PMUROCn5pbR2OouH8hOf0JltzvgP5umnKaD565t9VPdxXQGXlv576/Tvr1ZwV3nOW\n WkKylrpVJmJV1P56umpwW0Pv/JH2gzMnrYSiNsbyBXay23ryY2U77GzDZIijmSMXopEl\n Mp+2YRhE9y9X0axXfxq6M7VHCU+fXhHv3n837AIcRp/F17fK6c5WzRpi7+NKk2erj/QU\n a3ZsAeJr6ymMqFmdWsbjTkJPHUO75mTYlgZKQWDkSUIilc8T95j3QDSM1zJMQ5YWLine\n 6g0LQd9WCXtsLJjzsInR5ga4MbboikZJXOTSAukvbDX/13Q+HVZYGZIq99dEBbIO+WcS Hg==", "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 08/21] common/cnxk: update age drop statistics", "Date": "Tue, 11 Apr 2023 14:41:31 +0530", "Message-ID": "<20230411091144.1087887-8-ndabilpuram@marvell.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20230411091144.1087887-1-ndabilpuram@marvell.com>", "References": "<20230411091144.1087887-1-ndabilpuram@marvell.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-ORIG-GUID": "qvoAksi3pzx_TB1s3FmBeBhtgdlrd7vY", "X-Proofpoint-GUID": "qvoAksi3pzx_TB1s3FmBeBhtgdlrd7vY", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22\n definitions=2023-04-11_05,2023-04-06_03,2023-02-09_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: 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": [ "08/21" ] }{ "id": 125913, "url": "