get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 115917,
    "url": "http://patches.dpdk.org/api/patches/115917/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220905133228.818616-13-ndabilpuram@marvell.com/",
    "project": {
        "id": 1,
        "url": "http://patches.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": "<20220905133228.818616-13-ndabilpuram@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220905133228.818616-13-ndabilpuram@marvell.com",
    "date": "2022-09-05T13:32:10",
    "name": "[v2,13/31] common/cnxk: avoid the use of platform specific APIs",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "cdf5fd8ca711697e2b639171460863bcc527907b",
    "submitter": {
        "id": 1202,
        "url": "http://patches.dpdk.org/api/people/1202/?format=api",
        "name": "Nithin Dabilpuram",
        "email": "ndabilpuram@marvell.com"
    },
    "delegate": {
        "id": 310,
        "url": "http://patches.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220905133228.818616-13-ndabilpuram@marvell.com/mbox/",
    "series": [
        {
            "id": 24540,
            "url": "http://patches.dpdk.org/api/series/24540/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=24540",
            "date": "2022-09-05T13:31:58",
            "name": "[v2,01/31] cnxk/net: add fc check in vector event Tx path",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/24540/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/115917/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/115917/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 0DC27A0558;\n\tMon,  5 Sep 2022 15:33:29 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 1E63E42B70;\n\tMon,  5 Sep 2022 15:33:14 +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 6CA63427F9\n for <dev@dpdk.org>; Mon,  5 Sep 2022 15:33:12 +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 285ChAdJ031978\n for <dev@dpdk.org>; Mon, 5 Sep 2022 06:33:11 -0700",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3jc6epngf8-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Mon, 05 Sep 2022 06:33:11 -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.2;\n Mon, 5 Sep 2022 06:33:09 -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; Mon, 5 Sep 2022 06:33:09 -0700",
            "from localhost.localdomain (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id BDD1E5E6870;\n Mon,  5 Sep 2022 06:33:06 -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=NZv4OKgkvAu5FdwnvTwASxcjQvPKOKKtBJxEhrhWizE=;\n b=NE0XvM0U/rFssGNRujyBKlj9Sqexv8L7fFnpPDETdnBQDUvk+IlqeIrbCRKHFE3Sk0fp\n CBdb3UsgJ6m62oqF/5pRUOLNo/ZYeAR6NbNZruTZYpuFHTtrl9KRtj3E0dg+W2rqBBwp\n w+ykwCRq/N/IvmkdoK5NH4XTFxoBQdIK0Ck48f0qYW35FJQzPLSAMIu0F5/JQU6YBsQU\n XN7f3WAMRbsO/SLGNLKIA4FmCxmWPJR235Krsnja+nzK4fkx5iWhi5w9oLNKwXQlrpXN\n Xi9UyfuHqByndymBTPZiA6s48F50XEaBZFvmpMISkRptUGIjoGDEF7yUJa2qOckdacXG JA==",
        "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>, Ankur Dwivedi <adwivedi@marvell.com>,\n Anoob Joseph <anoobj@marvell.com>, Tejasree Kondoj <ktejasree@marvell.com>",
        "CC": "<jerinj@marvell.com>, <dev@dpdk.org>, Vidya Sagar Velumuri\n <vvelumuri@marvell.com>",
        "Subject": "[PATCH v2 13/31] common/cnxk: avoid the use of platform specific APIs",
        "Date": "Mon, 5 Sep 2022 19:02:10 +0530",
        "Message-ID": "<20220905133228.818616-13-ndabilpuram@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20220905133228.818616-1-ndabilpuram@marvell.com>",
        "References": "<20220809184908.24030-1-ndabilpuram@marvell.com>\n <20220905133228.818616-1-ndabilpuram@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "WPuJozCSuA_uvT9aBIOCX5yfF5qNFrjn",
        "X-Proofpoint-GUID": "WPuJozCSuA_uvT9aBIOCX5yfF5qNFrjn",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.517,FMLib:17.11.122.1\n definitions=2022-09-05_09,2022-09-05_02,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": "From: Vidya Sagar Velumuri <vvelumuri@marvell.com>\n\nReplace the use of platform specific APIs with platform independent\nAPIs.\n\nSigned-off-by: Vidya Sagar Velumuri <vvelumuri@marvell.com>\n---\n drivers/common/cnxk/roc_cpt.c    | 8 ++++----\n drivers/common/cnxk/roc_cpt.h    | 2 +-\n drivers/crypto/cnxk/cn9k_ipsec.c | 8 ++++----\n 3 files changed, 9 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/drivers/common/cnxk/roc_cpt.c b/drivers/common/cnxk/roc_cpt.c\nindex d607bde3c4..6f0ee44b54 100644\n--- a/drivers/common/cnxk/roc_cpt.c\n+++ b/drivers/common/cnxk/roc_cpt.c\n@@ -998,7 +998,7 @@ roc_cpt_ctx_write(struct roc_cpt_lf *lf, void *sa_dptr, void *sa_cptr,\n }\n \n int\n-roc_on_cpt_ctx_write(struct roc_cpt_lf *lf, void *sa, uint8_t opcode,\n+roc_on_cpt_ctx_write(struct roc_cpt_lf *lf, uint64_t sa, uint8_t opcode,\n \t\t     uint16_t ctx_len, uint8_t egrp)\n {\n \tunion cpt_res_s res, *hw_res;\n@@ -1019,9 +1019,9 @@ roc_on_cpt_ctx_write(struct roc_cpt_lf *lf, void *sa, uint8_t opcode,\n \tinst.w4.s.param1 = 0;\n \tinst.w4.s.param2 = 0;\n \tinst.w4.s.dlen = ctx_len;\n-\tinst.dptr = rte_mempool_virt2iova(sa);\n+\tinst.dptr = sa;\n \tinst.rptr = 0;\n-\tinst.w7.s.cptr = rte_mempool_virt2iova(sa);\n+\tinst.w7.s.cptr = sa;\n \tinst.w7.s.egrp = egrp;\n \n \tinst.w0.u64 = 0;\n@@ -1029,7 +1029,7 @@ roc_on_cpt_ctx_write(struct roc_cpt_lf *lf, void *sa, uint8_t opcode,\n \tinst.w3.u64 = 0;\n \tinst.res_addr = (uintptr_t)hw_res;\n \n-\trte_io_wmb();\n+\tplt_io_wmb();\n \n \tdo {\n \t\t/* Copy CPT command to LMTLINE */\ndiff --git a/drivers/common/cnxk/roc_cpt.h b/drivers/common/cnxk/roc_cpt.h\nindex 4e3a078a90..6953f2bdd3 100644\n--- a/drivers/common/cnxk/roc_cpt.h\n+++ b/drivers/common/cnxk/roc_cpt.h\n@@ -173,7 +173,7 @@ void __roc_api roc_cpt_parse_hdr_dump(const struct cpt_parse_hdr_s *cpth);\n int __roc_api roc_cpt_ctx_write(struct roc_cpt_lf *lf, void *sa_dptr,\n \t\t\t\tvoid *sa_cptr, uint16_t sa_len);\n \n-int __roc_api roc_on_cpt_ctx_write(struct roc_cpt_lf *lf, void *sa,\n+int __roc_api roc_on_cpt_ctx_write(struct roc_cpt_lf *lf, uint64_t sa,\n \t\t\t\t   uint8_t opcode, uint16_t ctx_len,\n \t\t\t\t   uint8_t egrp);\n #endif /* _ROC_CPT_H_ */\ndiff --git a/drivers/crypto/cnxk/cn9k_ipsec.c b/drivers/crypto/cnxk/cn9k_ipsec.c\nindex 6d26b0cc01..78c181b4a4 100644\n--- a/drivers/crypto/cnxk/cn9k_ipsec.c\n+++ b/drivers/crypto/cnxk/cn9k_ipsec.c\n@@ -82,8 +82,8 @@ cn9k_ipsec_outb_sa_create(struct cnxk_cpt_qp *qp,\n \tctx_len = ret;\n \topcode = ROC_IE_ON_MAJOR_OP_WRITE_IPSEC_OUTBOUND;\n \tegrp = roc_cpt->eng_grp[CPT_ENG_TYPE_IE];\n-\tret = roc_on_cpt_ctx_write(&qp->lf, (void *)&sa->out_sa, opcode,\n-\t\t\t\t   ctx_len, egrp);\n+\tret = roc_on_cpt_ctx_write(&qp->lf, rte_mempool_virt2iova(&sa->out_sa),\n+\t\t\t\t   opcode, ctx_len, egrp);\n \n \tif (ret)\n \t\treturn ret;\n@@ -174,8 +174,8 @@ cn9k_ipsec_inb_sa_create(struct cnxk_cpt_qp *qp,\n \tctx_len = ret;\n \topcode = ROC_IE_ON_MAJOR_OP_WRITE_IPSEC_INBOUND;\n \tegrp = roc_cpt->eng_grp[CPT_ENG_TYPE_IE];\n-\tret = roc_on_cpt_ctx_write(&qp->lf, (void *)&sa->in_sa, opcode, ctx_len,\n-\t\t\t\t   egrp);\n+\tret = roc_on_cpt_ctx_write(&qp->lf, rte_mempool_virt2iova(&sa->in_sa),\n+\t\t\t\t   opcode, ctx_len, egrp);\n \tif (ret)\n \t\treturn ret;\n \n",
    "prefixes": [
        "v2",
        "13/31"
    ]
}