get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 130126,
    "url": "http://patchwork.dpdk.org/api/patches/130126/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230811085805.441256-12-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": "<20230811085805.441256-12-ndabilpuram@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230811085805.441256-12-ndabilpuram@marvell.com",
    "date": "2023-08-11T08:57:46",
    "name": "[12/31] common/cnxk: remove unnecessory ROC API calls",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "4f4cd50e3f8e3649e8b42b779e35e7a188cd1eaf",
    "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/20230811085805.441256-12-ndabilpuram@marvell.com/mbox/",
    "series": [
        {
            "id": 29177,
            "url": "http://patchwork.dpdk.org/api/series/29177/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29177",
            "date": "2023-08-11T08:57:35",
            "name": "[01/31] common/cnxk: add aura ref count mechanism",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/29177/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/130126/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/130126/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 4953843032;\n\tFri, 11 Aug 2023 10:59:24 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id BEADE4327D;\n\tFri, 11 Aug 2023 10:58:48 +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 8583C4327D\n for <dev@dpdk.org>; Fri, 11 Aug 2023 10:58:47 +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 37AMj86v014471 for <dev@dpdk.org>; Fri, 11 Aug 2023 01:58:47 -0700",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3sd8ya1g99-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Fri, 11 Aug 2023 01:58:46 -0700",
            "from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48;\n Fri, 11 Aug 2023 01:58:44 -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; Fri, 11 Aug 2023 01:58:44 -0700",
            "from hyd1588t430.caveonetworks.com (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id 708A53F706A;\n Fri, 11 Aug 2023 01:58:42 -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=bP8bmSUkKTCb806p3hJVR4+dQUbmgAF3OBavbArNFCo=;\n b=RiVcirto9ZQnsif9LDYfFseIgeLaoC1KliBXxoO0teXa7xobGufRBntes3j2u/WIn490\n DQjEbGhGPSLPYludHvJLRWnb8rwjisdb5edoWUP5RpLfiYRs1Vu8TO9HiVEQHIZ3qIHb\n I9pFojCyTTQQVIFh4RDVU7hWTjGxVpvN4Ohaz52uZXJlcDedGVssjyMti+c6AxC/sQx2\n yeXMaX5Ivshp+ESWL5op620uK237vlIb+AXsPNTBjBX4ZR9634spejB8QVqQ9touaVTj\n v23odUsgd3/16Es+hE0AITrPZe1HnCiHOi1xTAAwVDh9nCzWVQJll+KlS0Yp7AoP9+4n Dw==",
        "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>, Akhil Goyal <gakhil@marvell.com>",
        "Subject": "[PATCH 12/31] common/cnxk: remove unnecessory ROC API calls",
        "Date": "Fri, 11 Aug 2023 14:27:46 +0530",
        "Message-ID": "<20230811085805.441256-12-ndabilpuram@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20230811085805.441256-1-ndabilpuram@marvell.com>",
        "References": "<20230811085805.441256-1-ndabilpuram@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "dB5K_D72nl_vAVXeWVx62xi2-GTtBW1Q",
        "X-Proofpoint-GUID": "dB5K_D72nl_vAVXeWVx62xi2-GTtBW1Q",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26\n definitions=2023-08-10_20,2023-08-10_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: Akhil Goyal <gakhil@marvell.com>\n\nRemoved the calls to roc_nix_num_rx[tx]_xstats which\ndoes a model check again for cn9k/cn10k.\nThe model check is already done before the call in the\nsame leg, hence not needed to call these APIs.\n\nSigned-off-by: Akhil Goyal <gakhil@marvell.com>\n---\n drivers/common/cnxk/roc_nix_stats.c | 16 ++++++++--------\n 1 file changed, 8 insertions(+), 8 deletions(-)",
    "diff": "diff --git a/drivers/common/cnxk/roc_nix_stats.c b/drivers/common/cnxk/roc_nix_stats.c\nindex 1e93191a07..7a9619b39d 100644\n--- a/drivers/common/cnxk/roc_nix_stats.c\n+++ b/drivers/common/cnxk/roc_nix_stats.c\n@@ -400,14 +400,14 @@ roc_nix_xstats_get(struct roc_nix *roc_nix, struct roc_nix_xstat *xstats,\n \t\tif (rc)\n \t\t\tgoto exit;\n \n-\t\tfor (i = 0; i < roc_nix_num_rx_xstats(); i++) {\n+\t\tfor (i = 0; i < CNXK_NIX_NUM_RX_XSTATS_CGX; i++) {\n \t\t\txstats[count].value =\n \t\t\t\tcgx_resp->rx_stats[nix_rx_xstats_cgx[i].offset];\n \t\t\txstats[count].id = count;\n \t\t\tcount++;\n \t\t}\n \n-\t\tfor (i = 0; i < roc_nix_num_tx_xstats(); i++) {\n+\t\tfor (i = 0; i < CNXK_NIX_NUM_TX_XSTATS_CGX; i++) {\n \t\t\txstats[count].value =\n \t\t\t\tcgx_resp->tx_stats[nix_tx_xstats_cgx[i].offset];\n \t\t\txstats[count].id = count;\n@@ -426,14 +426,14 @@ roc_nix_xstats_get(struct roc_nix *roc_nix, struct roc_nix_xstat *xstats,\n \t\tif (rc)\n \t\t\tgoto exit;\n \n-\t\tfor (i = 0; i < roc_nix_num_rx_xstats(); i++) {\n+\t\tfor (i = 0; i < CNXK_NIX_NUM_RX_XSTATS_RPM; i++) {\n \t\t\txstats[count].value =\n \t\t\t\trpm_resp->rx_stats[nix_rx_xstats_rpm[i].offset];\n \t\t\txstats[count].id = count;\n \t\t\tcount++;\n \t\t}\n \n-\t\tfor (i = 0; i < roc_nix_num_tx_xstats(); i++) {\n+\t\tfor (i = 0; i < CNXK_NIX_NUM_TX_XSTATS_RPM; i++) {\n \t\t\txstats[count].value =\n \t\t\t\trpm_resp->tx_stats[nix_tx_xstats_rpm[i].offset];\n \t\t\txstats[count].id = count;\n@@ -504,26 +504,26 @@ roc_nix_xstats_names_get(struct roc_nix *roc_nix,\n \t\treturn count;\n \n \tif (roc_model_is_cn9k()) {\n-\t\tfor (i = 0; i < roc_nix_num_rx_xstats(); i++) {\n+\t\tfor (i = 0; i < CNXK_NIX_NUM_RX_XSTATS_CGX; i++) {\n \t\t\tNIX_XSTATS_NAME_PRINT(xstats_names, count,\n \t\t\t\t\t      nix_rx_xstats_cgx, i);\n \t\t\tcount++;\n \t\t}\n \n-\t\tfor (i = 0; i < roc_nix_num_tx_xstats(); i++) {\n+\t\tfor (i = 0; i < CNXK_NIX_NUM_TX_XSTATS_CGX; i++) {\n \t\t\tNIX_XSTATS_NAME_PRINT(xstats_names, count,\n \t\t\t\t\t      nix_tx_xstats_cgx, i);\n \t\t\tcount++;\n \t\t}\n \n \t} else {\n-\t\tfor (i = 0; i < roc_nix_num_rx_xstats(); i++) {\n+\t\tfor (i = 0; i < CNXK_NIX_NUM_RX_XSTATS_RPM; i++) {\n \t\t\tNIX_XSTATS_NAME_PRINT(xstats_names, count,\n \t\t\t\t\t      nix_rx_xstats_rpm, i);\n \t\t\tcount++;\n \t\t}\n \n-\t\tfor (i = 0; i < roc_nix_num_tx_xstats(); i++) {\n+\t\tfor (i = 0; i < CNXK_NIX_NUM_TX_XSTATS_RPM; i++) {\n \t\t\tNIX_XSTATS_NAME_PRINT(xstats_names, count,\n \t\t\t\t\t      nix_tx_xstats_rpm, i);\n \t\t\tcount++;\n",
    "prefixes": [
        "12/31"
    ]
}