get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 112840,
    "url": "http://patchwork.dpdk.org/api/patches/112840/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20220616070743.30658-5-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": "<20220616070743.30658-5-ndabilpuram@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220616070743.30658-5-ndabilpuram@marvell.com",
    "date": "2022-06-16T07:07:36",
    "name": "[05/12] common/cnxk: enhance CPT parse header dump",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "b104759199505d6d75ecf493ec223af7246c9d07",
    "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/20220616070743.30658-5-ndabilpuram@marvell.com/mbox/",
    "series": [
        {
            "id": 23552,
            "url": "http://patchwork.dpdk.org/api/series/23552/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=23552",
            "date": "2022-06-16T07:07:32",
            "name": "[01/12] common/cnxk: use computed value for wqe skip",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/23552/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/112840/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/112840/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 7671EA00C3;\n\tThu, 16 Jun 2022 09:10:10 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id BF56242BCA;\n\tThu, 16 Jun 2022 09:10:07 +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 3840742BBE\n for <dev@dpdk.org>; Thu, 16 Jun 2022 09:10:06 +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 25G2AMlu013083\n for <dev@dpdk.org>; Thu, 16 Jun 2022 00:10:05 -0700",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3gq83yx522-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Thu, 16 Jun 2022 00:10:05 -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.18;\n Thu, 16 Jun 2022 00:09: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.2 via Frontend\n Transport; Thu, 16 Jun 2022 00:09:44 -0700",
            "from hyd1588t430.marvell.com (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id 2B6823F7075;\n Thu, 16 Jun 2022 00:09:41 -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-type; s=pfpt0220; bh=bY1GWMwY9KtMji3c8ASSPLeIJgVMOBmDQMotX9C4EmM=;\n b=ZY2ZZOqzh97Oyvb6weJc9WdMD5A9R0U0Rb9RJGM5ZBtxLGCJEpU6W5UNMuZBkAYy8iUW\n 2TWtTF0lKbiM+YNH2A2DL2lzF5I9S/PXY6yJbhzjxCLFUsamBPmL8aozkHYbgXNeSSyA\n dNUNRwUWeFH8owc0Acl5uSqNznfPRhzSNN9indtDQRTCBmIQGpgvczl1YYXp2TewF+Z6\n d6laVQkM5vKGjA0BNP4TbAE/zyKm85S3Y5OdHzPSqRurh8PUiw9LQ33XVmS+WuatvU8W\n gVyUJgSHq0MnzTsLnmUZw0XuQ8ub0gCwd1k9TJXS6zWRTAbuyYz5vTAf9sLZJV3ijdCs tA==",
        "From": "Nithin Dabilpuram <ndabilpuram@marvell.com>",
        "To": "<jerinj@marvell.com>, Nithin Dabilpuram <ndabilpuram@marvell.com>, \"Kiran\n Kumar K\" <kirankumark@marvell.com>, Sunil Kumar Kori <skori@marvell.com>,\n Satha Rao <skoteshwar@marvell.com>",
        "CC": "<dev@dpdk.org>",
        "Subject": "[PATCH 05/12] common/cnxk: enhance CPT parse header dump",
        "Date": "Thu, 16 Jun 2022 12:37:36 +0530",
        "Message-ID": "<20220616070743.30658-5-ndabilpuram@marvell.com>",
        "X-Mailer": "git-send-email 2.8.4",
        "In-Reply-To": "<20220616070743.30658-1-ndabilpuram@marvell.com>",
        "References": "<20220616070743.30658-1-ndabilpuram@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "dLBw_rm8IibLg3K0hCKa1w_po2xcXYN_",
        "X-Proofpoint-GUID": "dLBw_rm8IibLg3K0hCKa1w_po2xcXYN_",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.517,FMLib:17.11.64.514\n definitions=2022-06-16_03,2022-06-15_01,2022-02-23_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": "Enhance CPT parse header dump to dump fragment info\nand swap pointers before printing.\n\nSigned-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>\n---\n drivers/common/cnxk/roc_cpt_debug.c | 33 +++++++++++++++++++++++++++++++--\n 1 file changed, 31 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/common/cnxk/roc_cpt_debug.c b/drivers/common/cnxk/roc_cpt_debug.c\nindex be6ddb5..5602e53 100644\n--- a/drivers/common/cnxk/roc_cpt_debug.c\n+++ b/drivers/common/cnxk/roc_cpt_debug.c\n@@ -8,6 +8,10 @@\n void\n roc_cpt_parse_hdr_dump(const struct cpt_parse_hdr_s *cpth)\n {\n+\tstruct cpt_frag_info_s *frag_info;\n+\tuint32_t offset;\n+\tuint64_t *slot;\n+\n \tplt_print(\"CPT_PARSE \\t0x%p:\", cpth);\n \n \t/* W0 */\n@@ -19,7 +23,7 @@ roc_cpt_parse_hdr_dump(const struct cpt_parse_hdr_s *cpth)\n \t\t  cpth->w0.pad_len, cpth->w0.num_frags, cpth->w0.pkt_out);\n \n \t/* W1 */\n-\tplt_print(\"W1: wqe_ptr \\t0x%016lx\\t\", cpth->wqe_ptr);\n+\tplt_print(\"W1: wqe_ptr \\t0x%016lx\\t\", plt_be_to_cpu_64(cpth->wqe_ptr));\n \n \t/* W2 */\n \tplt_print(\"W2: frag_age \\t0x%x\\t\\torig_pf_func \\t0x%04x\",\n@@ -33,7 +37,32 @@ roc_cpt_parse_hdr_dump(const struct cpt_parse_hdr_s *cpth)\n \n \t/* W4 */\n \tplt_print(\"W4: esn \\t%\" PRIx64 \" \\t OR frag1_wqe_ptr \\t0x%\" PRIx64,\n-\t\t  cpth->esn, cpth->frag1_wqe_ptr);\n+\t\t  cpth->esn, plt_be_to_cpu_64(cpth->frag1_wqe_ptr));\n+\n+\t/* offset of 0 implies 256B, otherwise it implies offset*8B */\n+\toffset = cpth->w2.fi_offset;\n+\toffset = (((offset - 1) & 0x1f) + 1) * 8;\n+\tfrag_info = PLT_PTR_ADD(cpth, offset);\n+\n+\tplt_print(\"CPT Fraginfo \\t0x%p:\", frag_info);\n+\n+\t/* W0 */\n+\tplt_print(\"W0: f0.info \\t0x%x\", frag_info->w0.f0.info);\n+\tplt_print(\"W0: f1.info \\t0x%x\", frag_info->w0.f1.info);\n+\tplt_print(\"W0: f2.info \\t0x%x\", frag_info->w0.f2.info);\n+\tplt_print(\"W0: f3.info \\t0x%x\", frag_info->w0.f3.info);\n+\n+\t/* W1 */\n+\tplt_print(\"W1: frag_size0 \\t0x%x\", frag_info->w1.frag_size0);\n+\tplt_print(\"W1: frag_size1 \\t0x%x\", frag_info->w1.frag_size1);\n+\tplt_print(\"W1: frag_size2 \\t0x%x\", frag_info->w1.frag_size2);\n+\tplt_print(\"W1: frag_size3 \\t0x%x\", frag_info->w1.frag_size3);\n+\n+\tslot = (uint64_t *)(frag_info + 1);\n+\tplt_print(\"Frag Slot2:  WQE ptr \\t%p\",\n+\t\t  (void *)plt_be_to_cpu_64(slot[0]));\n+\tplt_print(\"Frag Slot3:  WQE ptr \\t%p\",\n+\t\t  (void *)plt_be_to_cpu_64(slot[1]));\n }\n \n static int\n",
    "prefixes": [
        "05/12"
    ]
}