get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 114784,
    "url": "http://patchwork.dpdk.org/api/patches/114784/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20220809184908.24030-3-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": "<20220809184908.24030-3-ndabilpuram@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220809184908.24030-3-ndabilpuram@marvell.com",
    "date": "2022-08-09T18:48:47",
    "name": "[03/23] common/cnxk: update inbound inline IPsec config mailbox",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "14f1cf7b337b30592277682bce747651a2f5a446",
    "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/20220809184908.24030-3-ndabilpuram@marvell.com/mbox/",
    "series": [
        {
            "id": 24239,
            "url": "http://patchwork.dpdk.org/api/series/24239/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=24239",
            "date": "2022-08-09T18:48:45",
            "name": "[01/23] common/cnxk: fix part value for cn10k",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/24239/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/114784/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/114784/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 57A2AA04FD;\n\tTue,  9 Aug 2022 20:52:00 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 42F3242BCB;\n\tTue,  9 Aug 2022 20:52:00 +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 B98D04113F\n for <dev@dpdk.org>; Tue,  9 Aug 2022 20:51:58 +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 279D8BCo017014;\n Tue, 9 Aug 2022 11:49:53 -0700",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3hudy6ujpy-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Tue, 09 Aug 2022 11:49:53 -0700",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Tue, 9 Aug 2022 11:49:51 -0700",
            "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; Tue, 9 Aug 2022 11:49:51 -0700",
            "from hyd1588t430.marvell.com (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id 160FE3F7085;\n Tue,  9 Aug 2022 11:49:48 -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=uDE0sCdPRek9xq25exzNTEi4Ptlz4rmPh8eC8skAES8=;\n b=I48jhw/FMSDCH1U6lxq+hIvaKDGLI9ZfFENllKTnwCWQim43EVE/Zxvk3h/sbT5eYV5p\n jFoxjGbvB6XnUd6XqF+w0IKAYWTfvnLTQAVbGRDtrRjX5EzWGB+L3Phzr+LqeeenjpSr\n CE8Qwa8L2HyKl66ibzwL8/l4Z4JeqL8Ltfsmgf4xFdGuOk44OllWEX3ZC45ejSZizV+Q\n ciDdNWUBJ+w5OPPhP3rj/OhMVAhQeb6tcRGmO761G1jEQf2483/7VcbRw5RKL66MAWbm\n Juml0yAC1T4kz8psS7AsQKU1+7eIX4T3SCpKLnwY0z/2rR1ylsQyiyB9yjkkxwpM7LHc Ow==",
        "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>, Ray Kinsella <mdr@ashroe.eu>",
        "CC": "<jerinj@marvell.com>, <dev@dpdk.org>, Srujana Challa <schalla@marvell.com>",
        "Subject": "[PATCH 03/23] common/cnxk: update inbound inline IPsec config mailbox",
        "Date": "Wed, 10 Aug 2022 00:18:47 +0530",
        "Message-ID": "<20220809184908.24030-3-ndabilpuram@marvell.com>",
        "X-Mailer": "git-send-email 2.8.4",
        "In-Reply-To": "<20220809184908.24030-1-ndabilpuram@marvell.com>",
        "References": "<20220809184908.24030-1-ndabilpuram@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "ZphHo3-QxAHnv12jzs-nV-h45Y3Wa0nj",
        "X-Proofpoint-ORIG-GUID": "ZphHo3-QxAHnv12jzs-nV-h45Y3Wa0nj",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1\n definitions=2022-08-09_05,2022-08-09_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: Srujana Challa <schalla@marvell.com>\n\nUpdates CPT inbound inline IPsec configuration mailbox\nto provide opcode and CPT credit from VF.\nThis patch also adds mailbox for reading inbound IPsec\nconfiguration.\n\nSigned-off-by: Srujana Challa <schalla@marvell.com>\n---\n drivers/common/cnxk/roc_cpt.c   | 15 +++++++++++++++\n drivers/common/cnxk/roc_cpt.h   |  2 ++\n drivers/common/cnxk/roc_mbox.h  | 12 +++++++++---\n drivers/common/cnxk/version.map |  1 +\n 4 files changed, 27 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/common/cnxk/roc_cpt.c b/drivers/common/cnxk/roc_cpt.c\nindex f1be6a3..d607bde 100644\n--- a/drivers/common/cnxk/roc_cpt.c\n+++ b/drivers/common/cnxk/roc_cpt.c\n@@ -261,6 +261,21 @@ roc_cpt_inline_ipsec_cfg(struct dev *cpt_dev, uint8_t lf_id,\n }\n \n int\n+roc_cpt_inline_ipsec_inb_cfg_read(struct roc_cpt *roc_cpt,\n+\t\t\t\t  struct nix_inline_ipsec_cfg *inb_cfg)\n+{\n+\tstruct cpt *cpt = roc_cpt_to_cpt_priv(roc_cpt);\n+\tstruct dev *dev = &cpt->dev;\n+\tstruct msg_req *req;\n+\n+\treq = mbox_alloc_msg_nix_read_inline_ipsec_cfg(dev->mbox);\n+\tif (req == NULL)\n+\t\treturn -EIO;\n+\n+\treturn mbox_process_msg(dev->mbox, (void *)&inb_cfg);\n+}\n+\n+int\n roc_cpt_inline_ipsec_inb_cfg(struct roc_cpt *roc_cpt, uint16_t param1,\n \t\t\t     uint16_t param2)\n {\ndiff --git a/drivers/common/cnxk/roc_cpt.h b/drivers/common/cnxk/roc_cpt.h\nindex a3a65f1..4e3a078 100644\n--- a/drivers/common/cnxk/roc_cpt.h\n+++ b/drivers/common/cnxk/roc_cpt.h\n@@ -158,6 +158,8 @@ int __roc_api roc_cpt_lf_ctx_flush(struct roc_cpt_lf *lf, void *cptr,\n int __roc_api roc_cpt_lf_ctx_reload(struct roc_cpt_lf *lf, void *cptr);\n int __roc_api roc_cpt_inline_ipsec_cfg(struct dev *dev, uint8_t slot,\n \t\t\t\t       struct roc_nix *nix);\n+int __roc_api roc_cpt_inline_ipsec_inb_cfg_read(\n+\tstruct roc_cpt *roc_cpt, struct nix_inline_ipsec_cfg *inb_cfg);\n int __roc_api roc_cpt_inline_ipsec_inb_cfg(struct roc_cpt *roc_cpt,\n \t\t\t\t\t   uint16_t param1, uint16_t param2);\n int __roc_api roc_cpt_afs_print(struct roc_cpt *roc_cpt);\ndiff --git a/drivers/common/cnxk/roc_mbox.h b/drivers/common/cnxk/roc_mbox.h\nindex 965c704..912de11 100644\n--- a/drivers/common/cnxk/roc_mbox.h\n+++ b/drivers/common/cnxk/roc_mbox.h\n@@ -263,7 +263,9 @@ struct mbox_msghdr {\n \t  nix_bp_cfg_rsp)                                                      \\\n \tM(NIX_CPT_BP_DISABLE, 0x8021, nix_cpt_bp_disable, nix_bp_cfg_req,      \\\n \t  msg_rsp)                                                             \\\n-\tM(NIX_RX_SW_SYNC, 0x8022, nix_rx_sw_sync, msg_req, msg_rsp)\n+\tM(NIX_RX_SW_SYNC, 0x8022, nix_rx_sw_sync, msg_req, msg_rsp)            \\\n+\tM(NIX_READ_INLINE_IPSEC_CFG, 0x8023, nix_read_inline_ipsec_cfg,        \\\n+\t  msg_req, nix_inline_ipsec_cfg)\n \n /* Messages initiated by AF (range 0xC00 - 0xDFF) */\n #define MBOX_UP_CGX_MESSAGES                                                   \\\n@@ -1161,7 +1163,9 @@ struct nix_inline_ipsec_cfg {\n \tuint32_t __io cpt_credit;\n \tstruct {\n \t\tuint8_t __io egrp;\n-\t\tuint8_t __io opcode;\n+\t\tuint16_t __io opcode;\n+\t\tuint16_t __io param1;\n+\t\tuint16_t __io param2;\n \t} gen_cfg;\n \tstruct {\n \t\tuint16_t __io cpt_pf_func;\n@@ -1465,7 +1469,9 @@ struct cpt_rx_inline_lf_cfg_msg {\n \tuint16_t __io sso_pf_func;\n \tuint16_t __io param1;\n \tuint16_t __io param2;\n-\tuint16_t __io reserved;\n+\tuint16_t __io opcode;\n+\tuint32_t __io credit;\n+\tuint32_t __io reserved;\n };\n \n enum cpt_eng_type {\ndiff --git a/drivers/common/cnxk/version.map b/drivers/common/cnxk/version.map\nindex 019f531..a2d99e1 100644\n--- a/drivers/common/cnxk/version.map\n+++ b/drivers/common/cnxk/version.map\n@@ -65,6 +65,7 @@ INTERNAL {\n \troc_cpt_dev_init;\n \troc_cpt_eng_grp_add;\n \troc_cpt_inline_ipsec_cfg;\n+\troc_cpt_inline_ipsec_inb_cfg_read;\n \troc_cpt_inline_ipsec_inb_cfg;\n \troc_cpt_iq_disable;\n \troc_cpt_iq_enable;\n",
    "prefixes": [
        "03/23"
    ]
}