get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 93806,
    "url": "https://patches.dpdk.org/api/patches/93806/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1622649385-22652-11-git-send-email-anoobj@marvell.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<1622649385-22652-11-git-send-email-anoobj@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1622649385-22652-11-git-send-email-anoobj@marvell.com",
    "date": "2021-06-02T15:56:24",
    "name": "[10/11] common/cnxk: add lmtline init",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "b8461b1d5cbd1087a21936e5479fadf1bc0c9a23",
    "submitter": {
        "id": 1205,
        "url": "https://patches.dpdk.org/api/people/1205/?format=api",
        "name": "Anoob Joseph",
        "email": "anoobj@marvell.com"
    },
    "delegate": {
        "id": 6690,
        "url": "https://patches.dpdk.org/api/users/6690/?format=api",
        "username": "akhil",
        "first_name": "akhil",
        "last_name": "goyal",
        "email": "gakhil@marvell.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1622649385-22652-11-git-send-email-anoobj@marvell.com/mbox/",
    "series": [
        {
            "id": 17212,
            "url": "https://patches.dpdk.org/api/series/17212/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=17212",
            "date": "2021-06-02T15:56:14",
            "name": "Add CPT in Marvell CNXK common driver",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/17212/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/93806/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/93806/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 2B468A0524;\n\tWed,  2 Jun 2021 17:58:00 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 9AD6B410E7;\n\tWed,  2 Jun 2021 17:57:37 +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 6FB644069F\n for <dev@dpdk.org>; Wed,  2 Jun 2021 17:57:36 +0200 (CEST)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id\n 152FpJHN019777; Wed, 2 Jun 2021 08:57:35 -0700",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0b-0016f401.pphosted.com with ESMTP id 38wufguhfp-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Wed, 02 Jun 2021 08:57:35 -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 Wed, 2 Jun 2021 08:57:33 -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; Wed, 2 Jun 2021 08:57:33 -0700",
            "from HY-LT1002.marvell.com (unknown [10.193.70.1])\n by maili.marvell.com (Postfix) with ESMTP id 991D13F703F;\n Wed,  2 Jun 2021 08:57:30 -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=NopQ+AgYD1Dy6DusyVRWPFojjsFtyreQXv0aupLBfEE=;\n b=c0UnSMT2kPs+9nEmKuynW7uaowWnhWk+1kZzY2fL3mM5kCphfkK9K4YbVHC/3TUPytDw\n Q+AB4r3iID8FBQDGnAHuiRLGqiLFIr3XKl9CfxB/q+cvGzHBYMzJEezCCi2Vd17ADOm2\n QTiOB/5JM+1y6UEy/CAmJZFN2isZx62QMkUEOQmXXnCLtXtUeABfsLZPFFl05/6gUSxN\n MxxYKlqWav947PssvukQlPF4tUNMdrwUcw/+2sn1fYRWVS0Vlm0yqiX9IyhJ3IfbAvKZ\n 3kCru6Q+eI6OYjTI7HbtTGcpTHyKi1QYaULKZ5C9wDcp4v2B2YceF23Ys8c+Ewl4T8t0 ag==",
        "From": "Anoob Joseph <anoobj@marvell.com>",
        "To": "Akhil Goyal <gakhil@marvell.com>, Thomas Monjalon <thomas@monjalon.net>",
        "CC": "Anoob Joseph <anoobj@marvell.com>, Jerin Jacob <jerinj@marvell.com>,\n \"Ankur Dwivedi\" <adwivedi@marvell.com>, Tejasree Kondoj\n <ktejasree@marvell.com>, <dev@dpdk.org>",
        "Date": "Wed, 2 Jun 2021 21:26:24 +0530",
        "Message-ID": "<1622649385-22652-11-git-send-email-anoobj@marvell.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1622649385-22652-1-git-send-email-anoobj@marvell.com>",
        "References": "<1622649385-22652-1-git-send-email-anoobj@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "MVxRweg-mcKpAdJl0Kv78boteXVJleE5",
        "X-Proofpoint-GUID": "MVxRweg-mcKpAdJl0Kv78boteXVJleE5",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.391, 18.0.761\n definitions=2021-06-02_08:2021-06-02,\n 2021-06-02 signatures=0",
        "Subject": "[dpdk-dev] [PATCH 10/11] common/cnxk: add lmtline init",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Add routine to initialize LMTLINE which facilitates instruction\nsubmission to CPT. Add common macros required in the enqueue\noperations.\n\nSigned-off-by: Anoob Joseph <anoobj@marvell.com>\nSigned-off-by: Ankur Dwivedi <adwivedi@marvell.com>\n\n---\n drivers/common/cnxk/roc_cpt.c   | 20 ++++++++++++++++++++\n drivers/common/cnxk/roc_cpt.h   | 31 +++++++++++++++++++++++++++++++\n drivers/common/cnxk/version.map |  1 +\n 3 files changed, 52 insertions(+)",
    "diff": "diff --git a/drivers/common/cnxk/roc_cpt.c b/drivers/common/cnxk/roc_cpt.c\nindex d95b94c..6f344ee 100644\n--- a/drivers/common/cnxk/roc_cpt.c\n+++ b/drivers/common/cnxk/roc_cpt.c\n@@ -760,3 +760,23 @@ roc_cpt_iq_disable(struct roc_cpt_lf *lf)\n \tlf_inprog.s.eena = 0x0;\n \tplt_write64(lf_inprog.u, lf->rbase + CPT_LF_INPROG);\n }\n+\n+int\n+roc_cpt_lmtline_init(struct roc_cpt *roc_cpt, struct roc_cpt_lmtline *lmtline,\n+\t\t     int lf_id)\n+{\n+\tstruct roc_cpt_lf *lf;\n+\n+\tlf = roc_cpt->lf[lf_id];\n+\tif (lf == NULL)\n+\t\treturn -ENOTSUP;\n+\n+\tlmtline->io_addr = lf->io_addr;\n+\tif (roc_model_is_cn10k())\n+\t\tlmtline->io_addr |= ROC_CN10K_CPT_INST_DW_M1 << 4;\n+\n+\tlmtline->fc_addr = lf->fc_addr;\n+\tlmtline->lmt_base = lf->lmt_base;\n+\n+\treturn 0;\n+}\ndiff --git a/drivers/common/cnxk/roc_cpt.h b/drivers/common/cnxk/roc_cpt.h\nindex 1e7a208..885c84d 100644\n--- a/drivers/common/cnxk/roc_cpt.h\n+++ b/drivers/common/cnxk/roc_cpt.h\n@@ -11,6 +11,34 @@\n #define ROC_AE_CPT_BLOCK_TYPE2 1\n \n #define ROC_CPT_MAX_LFS 64\n+#define ROC_CN10K_CPT_INST_DW_M1                                               \\\n+\t((uint64_t)(((sizeof(struct cpt_inst_s) / 16) - 1) & 0x7))\n+\n+/* Vector of sizes in the burst of 16 CPT inst except first in 63:19 of\n+ * APT_LMT_ARG_S\n+ */\n+#define ROC_CN10K_CPT_LMT_ARG                                                  \\\n+\t(ROC_CN10K_CPT_INST_DW_M1 << (19 + 3 * 0) |                            \\\n+\t ROC_CN10K_CPT_INST_DW_M1 << (19 + 3 * 1) |                            \\\n+\t ROC_CN10K_CPT_INST_DW_M1 << (19 + 3 * 2) |                            \\\n+\t ROC_CN10K_CPT_INST_DW_M1 << (19 + 3 * 3) |                            \\\n+\t ROC_CN10K_CPT_INST_DW_M1 << (19 + 3 * 4) |                            \\\n+\t ROC_CN10K_CPT_INST_DW_M1 << (19 + 3 * 5) |                            \\\n+\t ROC_CN10K_CPT_INST_DW_M1 << (19 + 3 * 6) |                            \\\n+\t ROC_CN10K_CPT_INST_DW_M1 << (19 + 3 * 7) |                            \\\n+\t ROC_CN10K_CPT_INST_DW_M1 << (19 + 3 * 8) |                            \\\n+\t ROC_CN10K_CPT_INST_DW_M1 << (19 + 3 * 9) |                            \\\n+\t ROC_CN10K_CPT_INST_DW_M1 << (19 + 3 * 10) |                           \\\n+\t ROC_CN10K_CPT_INST_DW_M1 << (19 + 3 * 11) |                           \\\n+\t ROC_CN10K_CPT_INST_DW_M1 << (19 + 3 * 12) |                           \\\n+\t ROC_CN10K_CPT_INST_DW_M1 << (19 + 3 * 13) |                           \\\n+\t ROC_CN10K_CPT_INST_DW_M1 << (19 + 3 * 14))\n+\n+struct roc_cpt_lmtline {\n+\tuint64_t io_addr;\n+\tuint64_t *fc_addr;\n+\tuintptr_t lmt_base;\n+};\n \n struct roc_cpt_lf {\n \t/* Input parameters */\n@@ -65,4 +93,7 @@ int __roc_api roc_cpt_lf_ctx_flush(struct roc_cpt_lf *lf, uint64_t cptr);\n int __roc_api roc_cpt_afs_print(struct roc_cpt *roc_cpt);\n int __roc_api roc_cpt_lfs_print(struct roc_cpt *roc_cpt);\n void __roc_api roc_cpt_iq_disable(struct roc_cpt_lf *lf);\n+int __roc_api roc_cpt_lmtline_init(struct roc_cpt *roc_cpt,\n+\t\t\t\t   struct roc_cpt_lmtline *lmtline, int lf_id);\n+\n #endif /* _ROC_CPT_H_ */\ndiff --git a/drivers/common/cnxk/version.map b/drivers/common/cnxk/version.map\nindex ad559a4..1fa01f1 100644\n--- a/drivers/common/cnxk/version.map\n+++ b/drivers/common/cnxk/version.map\n@@ -22,6 +22,7 @@ INTERNAL {\n \troc_cpt_lf_init;\n \troc_cpt_lf_fini;\n \troc_cpt_lfs_print;\n+\troc_cpt_lmtline_init;\n \troc_cpt_rxc_time_cfg;\n \troc_error_msg_get;\n \troc_idev_lmt_base_addr_get;\n",
    "prefixes": [
        "10/11"
    ]
}