get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 120204,
    "url": "http://patchwork.dpdk.org/api/patches/120204/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20221128095442.3185112-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": "<20221128095442.3185112-8-ndabilpuram@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20221128095442.3185112-8-ndabilpuram@marvell.com",
    "date": "2022-11-28T09:54:39",
    "name": "[08/11] common/cnxk: use lcore LMT line for CPT context write",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "ea33e81765a975977708eb44b5f8971198a8f6fa",
    "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/20221128095442.3185112-8-ndabilpuram@marvell.com/mbox/",
    "series": [
        {
            "id": 25906,
            "url": "http://patchwork.dpdk.org/api/series/25906/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=25906",
            "date": "2022-11-28T09:54:32",
            "name": "[01/11] common/cnxk: free pending sqe buffers",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/25906/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/120204/comments/",
    "check": "warning",
    "checks": "http://patchwork.dpdk.org/api/patches/120204/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 87B2FA00C3;\n\tMon, 28 Nov 2022 10:55:39 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id B33B342D24;\n\tMon, 28 Nov 2022 10:55:14 +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 2C81242D24\n for <dev@dpdk.org>; Mon, 28 Nov 2022 10:55:13 +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 2AS5j8I0025921 for <dev@dpdk.org>; Mon, 28 Nov 2022 01:55:12 -0800",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3m4q3srsg4-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Mon, 28 Nov 2022 01:55:12 -0800",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Mon, 28 Nov 2022 01:55:10 -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.18 via Frontend\n Transport; Mon, 28 Nov 2022 01:55:10 -0800",
            "from hyd1588t430.caveonetworks.com (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id 8D8783F7064;\n Mon, 28 Nov 2022 01:55:08 -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=kbwopKTSnerPo6gkiwDtp4TV0/NU0qhmdwzx7gvjr24=;\n b=gQ1c9kPitbaGhw2C28DKrpxSAK87yVhxvHie8lJYTY2SM/aBl1rIsLrN2ASGdteYZIpj\n M6UpL5olS0UctohUdA+BM6Z6BLswrbfa3ft6HImIwl4PNHQqxmFB6yB3aqj+ZcEecmn3\n 0FClsRnG66lOil1TkLycT8PcjLZyrUDhdckiI2TAC+EUR+fErFYNVCQNR/sT3ekYfi2y\n aEW29uMBJBnAmJSlYFQ/kGZp3/xtXISnYQ+oDWjEHEdiyymRvE3GhDpy6R5DC+FR0Y+2\n gSxQALUHh4lX0g+dVMaVhMBWXvY18VA9j4umQnnNYtGeYYMJ4QuGr8OZrS4r03GGGqS5 ug==",
        "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>",
        "Subject": "[PATCH 08/11] common/cnxk: use lcore LMT line for CPT context write",
        "Date": "Mon, 28 Nov 2022 15:24:39 +0530",
        "Message-ID": "<20221128095442.3185112-8-ndabilpuram@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20221128095442.3185112-1-ndabilpuram@marvell.com>",
        "References": "<20221128095442.3185112-1-ndabilpuram@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "TDGQMe8AYhrVmtbRCd1YPR5SSa2yy_ty",
        "X-Proofpoint-GUID": "TDGQMe8AYhrVmtbRCd1YPR5SSa2yy_ty",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1\n definitions=2022-11-28_07,2022-11-25_01,2022-06-22_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": "Use lcore LMT line for CPT context write as no one else\nis using it.\n\nSigned-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>\n---\n drivers/common/cnxk/roc_cpt.c | 3 ++-\n drivers/common/cnxk/roc_io.h  | 5 +++++\n 2 files changed, 7 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/common/cnxk/roc_cpt.c b/drivers/common/cnxk/roc_cpt.c\nindex 9a90d4d853..e336edb77e 100644\n--- a/drivers/common/cnxk/roc_cpt.c\n+++ b/drivers/common/cnxk/roc_cpt.c\n@@ -1020,7 +1020,8 @@ roc_cpt_ctx_write(struct roc_cpt_lf *lf, void *sa_dptr, void *sa_cptr,\n \tuint64_t *dptr;\n \tint i;\n \n-\tROC_LMT_CPT_BASE_ID_GET(lmt_base, lmt_id);\n+\t/* Use this lcore's LMT line as no one else is using it */\n+\tROC_LMT_BASE_ID_GET(lmt_base, lmt_id);\n \tinst = (struct cpt_inst_s *)lmt_base;\n \n \tmemset(inst, 0, sizeof(struct cpt_inst_s));\ndiff --git a/drivers/common/cnxk/roc_io.h b/drivers/common/cnxk/roc_io.h\nindex 13f98ed549..1e5c1f8c04 100644\n--- a/drivers/common/cnxk/roc_io.h\n+++ b/drivers/common/cnxk/roc_io.h\n@@ -7,6 +7,7 @@\n \n #include \"roc_platform.h\" /* for __plt_always_inline macro */\n \n+#ifndef ROC_LMT_BASE_ID_GET\n #define ROC_LMT_BASE_ID_GET(lmt_addr, lmt_id)                                  \\\n \tdo {                                                                   \\\n \t\t/* 32 Lines per core */                                        \\\n@@ -14,7 +15,10 @@\n \t\t/* Each line is of 128B */                                     \\\n \t\t(lmt_addr) += ((uint64_t)lmt_id << ROC_LMT_LINE_SIZE_LOG2);    \\\n \t} while (0)\n+#endif\n \n+/* Define it if not defined in roc_platform.h */\n+#ifndef ROC_LMT_CPT_BASE_ID_GET\n #define ROC_LMT_CPT_BASE_ID_GET(lmt_addr, lmt_id)                              \\\n \tdo {                                                                   \\\n \t\t/* 16 Lines per core */                                        \\\n@@ -23,6 +27,7 @@\n \t\t/* Each line is of 128B */                                     \\\n \t\t(lmt_addr) += ((uint64_t)lmt_id << ROC_LMT_LINE_SIZE_LOG2);    \\\n \t} while (0)\n+#endif\n \n #define roc_load_pair(val0, val1, addr)                                        \\\n \t({                                                                     \\\n",
    "prefixes": [
        "08/11"
    ]
}