get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/124761/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 124761,
    "url": "http://patchwork.dpdk.org/api/patches/124761/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230303081013.589868-4-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": "<20230303081013.589868-4-ndabilpuram@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230303081013.589868-4-ndabilpuram@marvell.com",
    "date": "2023-03-03T08:10:02",
    "name": "[04/15] common/cnxk: add separate inline dev stats API",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "b0c18c5b0376420994ed4fc4a3a22b077e5d9c73",
    "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/20230303081013.589868-4-ndabilpuram@marvell.com/mbox/",
    "series": [
        {
            "id": 27237,
            "url": "http://patchwork.dpdk.org/api/series/27237/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=27237",
            "date": "2023-03-03T08:09:59",
            "name": "[01/15] net/cnxk: resolve sefgault caused during transmit completion",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/27237/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/124761/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/124761/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 A7F3B41DC3;\n\tFri,  3 Mar 2023 09:11:13 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id B081D42BD9;\n\tFri,  3 Mar 2023 09:11:03 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id 1596142BB1\n for <dev@dpdk.org>; Fri,  3 Mar 2023 09:11:01 +0100 (CET)",
            "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 32375Fm0026002 for <dev@dpdk.org>; Fri, 3 Mar 2023 00:11:01 -0800",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3p2vg53dtu-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Fri, 03 Mar 2023 00:11:00 -0800",
            "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.42;\n Fri, 3 Mar 2023 00:10:59 -0800",
            "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.42 via Frontend\n Transport; Fri, 3 Mar 2023 00:10:59 -0800",
            "from hyd1588t430.caveonetworks.com (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id AD5743F705E;\n Fri,  3 Mar 2023 00:10:55 -0800 (PST)"
        ],
        "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=WBBhS/aPmco+PzbDCJ6Ux4yaiS/a30B2+5qirFRhDa8=;\n b=Vfi3xB+mIaMvdkSRzPfJk4a+unarllBk48bi4xl5SP+dngiE7FLmbZI7F6gHqDpUPgCR\n 5PkJt2aQuqbSiml6MzOSa2msUcaWqkYsrqvH0JkMcFKBxPEx0p14hu8J+hfKMUMcBbKS\n UQlVLN4od51wF1t3FNiDWahZmgZyQaXGjsJdoQCRZPI0vJ7+wQ+9dLep5AsHOTn9849/\n nOcXz8P1gNoL4OngHoWllcpAPFyhyUD0+5cjjuYTGhNybFgXg6Kh3Sv62q1+qohAfnKz\n 9oWtxfZvFkMN1iZylRHLmx92Fs/l+OtERQwRLVt7Qmf/praj/WPykV26SyH6EH8Do99l vA==",
        "From": "Nithin Dabilpuram <ndabilpuram@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": "<jerinj@marvell.com>, <dev@dpdk.org>, Kommula Shiva Shankar\n <kshankar@marvell.com>",
        "Subject": "[PATCH 04/15] common/cnxk: add separate inline dev stats API",
        "Date": "Fri, 3 Mar 2023 13:40:02 +0530",
        "Message-ID": "<20230303081013.589868-4-ndabilpuram@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20230303081013.589868-1-ndabilpuram@marvell.com>",
        "References": "<20230303081013.589868-1-ndabilpuram@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "zveVSO9jK-wZ554lU8BJbXDyvzH-OuKV",
        "X-Proofpoint-GUID": "zveVSO9jK-wZ554lU8BJbXDyvzH-OuKV",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.219,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22\n definitions=2023-03-03_01,2023-03-02_02,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: Kommula Shiva Shankar <kshankar@marvell.com>\n\nThis patch adds separate inline dev stats api,\nthus avoiding expensive nix xstats call\n\nSigned-off-by: Kommula Shiva Shankar <kshankar@marvell.com>\n---\n drivers/common/cnxk/roc_nix_inl.h     |  1 +\n drivers/common/cnxk/roc_nix_inl_dev.c | 33 +++++++++++++++++++++++++++\n drivers/common/cnxk/version.map       |  1 +\n 3 files changed, 35 insertions(+)",
    "diff": "diff --git a/drivers/common/cnxk/roc_nix_inl.h b/drivers/common/cnxk/roc_nix_inl.h\nindex 220663568e..3bb37ce225 100644\n--- a/drivers/common/cnxk/roc_nix_inl.h\n+++ b/drivers/common/cnxk/roc_nix_inl.h\n@@ -152,6 +152,7 @@ bool __roc_api roc_nix_inl_dev_is_probed(void);\n void __roc_api roc_nix_inl_dev_lock(void);\n void __roc_api roc_nix_inl_dev_unlock(void);\n int __roc_api roc_nix_inl_dev_xaq_realloc(uint64_t aura_handle);\n+int __roc_api roc_nix_inl_dev_stats_get(struct roc_nix_stats *stats);\n uint16_t __roc_api roc_nix_inl_dev_pffunc_get(void);\n \n /* NIX Inline Inbound API */\ndiff --git a/drivers/common/cnxk/roc_nix_inl_dev.c b/drivers/common/cnxk/roc_nix_inl_dev.c\nindex 6f60961bc7..196a04db09 100644\n--- a/drivers/common/cnxk/roc_nix_inl_dev.c\n+++ b/drivers/common/cnxk/roc_nix_inl_dev.c\n@@ -15,6 +15,8 @@\n \t ROC_NIX_LF_RX_CFG_IP6_UDP_OPT | ROC_NIX_LF_RX_CFG_DIS_APAD |          \\\n \t ROC_NIX_LF_RX_CFG_LEN_IL3 | ROC_NIX_LF_RX_CFG_LEN_OL3)\n \n+#define INL_NIX_RX_STATS(val) plt_read64(inl_dev->nix_base + NIX_LF_RX_STATX(val))\n+\n extern uint32_t soft_exp_consumer_cnt;\n static bool soft_exp_poll_thread_exit = true;\n \n@@ -832,6 +834,37 @@ nix_inl_outb_poll_thread_setup(struct nix_inl_dev *inl_dev)\n \treturn rc;\n }\n \n+int\n+roc_nix_inl_dev_stats_get(struct roc_nix_stats *stats)\n+{\n+\tstruct idev_cfg *idev = idev_get_cfg();\n+\tstruct nix_inl_dev *inl_dev = NULL;\n+\n+\tif (stats == NULL)\n+\t\treturn NIX_ERR_PARAM;\n+\n+\tif (!idev && idev->nix_inl_dev)\n+\t\tinl_dev = idev->nix_inl_dev;\n+\n+\tif (!inl_dev)\n+\t\treturn -EINVAL;\n+\n+\tstats->rx_octs = INL_NIX_RX_STATS(NIX_STAT_LF_RX_RX_OCTS);\n+\tstats->rx_ucast = INL_NIX_RX_STATS(NIX_STAT_LF_RX_RX_UCAST);\n+\tstats->rx_bcast = INL_NIX_RX_STATS(NIX_STAT_LF_RX_RX_BCAST);\n+\tstats->rx_mcast = INL_NIX_RX_STATS(NIX_STAT_LF_RX_RX_MCAST);\n+\tstats->rx_drop = INL_NIX_RX_STATS(NIX_STAT_LF_RX_RX_DROP);\n+\tstats->rx_drop_octs = INL_NIX_RX_STATS(NIX_STAT_LF_RX_RX_DROP_OCTS);\n+\tstats->rx_fcs = INL_NIX_RX_STATS(NIX_STAT_LF_RX_RX_FCS);\n+\tstats->rx_err = INL_NIX_RX_STATS(NIX_STAT_LF_RX_RX_ERR);\n+\tstats->rx_drop_bcast = INL_NIX_RX_STATS(NIX_STAT_LF_RX_RX_DRP_BCAST);\n+\tstats->rx_drop_mcast = INL_NIX_RX_STATS(NIX_STAT_LF_RX_RX_DRP_MCAST);\n+\tstats->rx_drop_l3_bcast = INL_NIX_RX_STATS(NIX_STAT_LF_RX_RX_DRP_L3BCAST);\n+\tstats->rx_drop_l3_mcast = INL_NIX_RX_STATS(NIX_STAT_LF_RX_RX_DRP_L3MCAST);\n+\n+\treturn 0;\n+}\n+\n int\n roc_nix_inl_dev_init(struct roc_nix_inl_dev *roc_inl_dev)\n {\ndiff --git a/drivers/common/cnxk/version.map b/drivers/common/cnxk/version.map\nindex 5d2b75fb5a..6c69c425df 100644\n--- a/drivers/common/cnxk/version.map\n+++ b/drivers/common/cnxk/version.map\n@@ -146,6 +146,7 @@ INTERNAL {\n \troc_nix_inl_dev_fini;\n \troc_nix_inl_dev_init;\n \troc_nix_inl_dev_is_probed;\n+\troc_nix_inl_dev_stats_get;\n \troc_nix_inl_dev_lock;\n \troc_nix_inl_dev_pffunc_get;\n \troc_nix_inl_dev_rq;\n",
    "prefixes": [
        "04/15"
    ]
}