get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 121078,
    "url": "http://patches.dpdk.org/api/patches/121078/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20221220143232.2519650-5-ktejasree@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": "<20221220143232.2519650-5-ktejasree@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20221220143232.2519650-5-ktejasree@marvell.com",
    "date": "2022-12-20T14:32:19",
    "name": "[04/17] crypto/cnxk: add context to passthrough instruction",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "99e3b718e887214964eac73a4804f927e5fa8166",
    "submitter": {
        "id": 1789,
        "url": "http://patches.dpdk.org/api/people/1789/?format=api",
        "name": "Tejasree Kondoj",
        "email": "ktejasree@marvell.com"
    },
    "delegate": {
        "id": 6690,
        "url": "http://patches.dpdk.org/api/users/6690/?format=api",
        "username": "akhil",
        "first_name": "akhil",
        "last_name": "goyal",
        "email": "gakhil@marvell.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20221220143232.2519650-5-ktejasree@marvell.com/mbox/",
    "series": [
        {
            "id": 26195,
            "url": "http://patches.dpdk.org/api/series/26195/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=26195",
            "date": "2022-12-20T14:32:15",
            "name": "fixes and improvements to cnxk crytpo PMD",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/26195/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/121078/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/121078/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 56897A0545;\n\tTue, 20 Dec 2022 15:33:09 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C2F2142D23;\n\tTue, 20 Dec 2022 15:32:51 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id 3EA5640395\n for <dev@dpdk.org>; Tue, 20 Dec 2022 15:32:50 +0100 (CET)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 2BKEOVhH019007 for <dev@dpdk.org>; Tue, 20 Dec 2022 06:32:49 -0800",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3mhe5rnb59-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Tue, 20 Dec 2022 06:32:49 -0800",
            "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.42;\n Tue, 20 Dec 2022 06:32:47 -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.42 via Frontend\n Transport; Tue, 20 Dec 2022 06:32:47 -0800",
            "from hyd1554.marvell.com (unknown [10.29.57.11])\n by maili.marvell.com (Postfix) with ESMTP id 2FDAA3F7063;\n Tue, 20 Dec 2022 06:32:44 -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=vLntYojYCRS2Nys1rx/DU0VE/9Qx73zW7fJyKIzpB6o=;\n b=TmIsflsYXOr0yiPAa0Ez3pstoXOAWrI24Clh40XzvXM+VPTRlAg6VQmuWz69njJlVFbe\n 6yP3tI/9Vp4Jzybtc6QwSuHHGu8hLl9N96qhpITEuKkJqYZeqfyTzK/ujOayvwwVqpuu\n DRG2okUAjvx0yiCw2AtWlKsEyysK/p41LdFi1yfKTw+F/CSC4iwTq90b4VV4JfYmjVvy\n CK+M7zFfObDFvZlYH9Zu6ftNNFQmslsqySL5fm89wG95z6XA9mPQTAb9xNzn1SninUwM\n tWxZEfh3NCLz9rjQHfJaEiB9us9GVZVpDlRELE+GvcaKYz3Gdail2azb4rQUTZgyNduI Dw==",
        "From": "Tejasree Kondoj <ktejasree@marvell.com>",
        "To": "Akhil Goyal <gakhil@marvell.com>",
        "CC": "Volodymyr Fialko <vfialko@marvell.com>, Anoob Joseph <anoobj@marvell.com>,\n Vidya Sagar Velumuri <vvelumuri@marvell.com>, Gowrishankar Muthukrishnan\n <gmuthukrishn@marvell.com>,\n Aakash Sasidharan <asasidharan@marvell.com>, <dev@dpdk.org>",
        "Subject": "[PATCH 04/17] crypto/cnxk: add context to passthrough instruction",
        "Date": "Tue, 20 Dec 2022 20:02:19 +0530",
        "Message-ID": "<20221220143232.2519650-5-ktejasree@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20221220143232.2519650-1-ktejasree@marvell.com>",
        "References": "<20221220143232.2519650-1-ktejasree@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "yVWRuGmcJ2ZbZv1i67LrKXiefoneCvXl",
        "X-Proofpoint-ORIG-GUID": "yVWRuGmcJ2ZbZv1i67LrKXiefoneCvXl",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1\n definitions=2022-12-20_05,2022-12-20_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": "From: Volodymyr Fialko <vfialko@marvell.com>\n\nAttach valid context of last packet instruction to the passthrough\ninstruction to match hardware requirements.\n\nSigned-off-by: Volodymyr Fialko <vfialko@marvell.com>\n---\n drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 13 ++++++++++---\n 1 file changed, 10 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/crypto/cnxk/cn10k_cryptodev_ops.c b/drivers/crypto/cnxk/cn10k_cryptodev_ops.c\nindex 7dad370047..2c750d19bf 100644\n--- a/drivers/crypto/cnxk/cn10k_cryptodev_ops.c\n+++ b/drivers/crypto/cnxk/cn10k_cryptodev_ops.c\n@@ -36,6 +36,7 @@ struct ops_burst {\n struct vec_request {\n \tstruct cpt_inflight_req *req;\n \tstruct rte_event_vector *vec;\n+\tunion cpt_inst_w7 w7;\n \tuint64_t w2;\n };\n \n@@ -387,7 +388,7 @@ cn10k_ca_meta_info_extract(struct rte_crypto_op *op, struct cnxk_cpt_qp **qp, ui\n \n static inline void\n cn10k_cpt_vec_inst_fill(struct vec_request *vec_req, struct cpt_inst_s *inst,\n-\t\t\tstruct cnxk_cpt_qp *qp)\n+\t\t\tstruct cnxk_cpt_qp *qp, union cpt_inst_w7 w7)\n {\n \tconst union cpt_res_s res = {.cn10k.compcode = CPT_COMP_NOT_DONE};\n \tstruct cpt_inflight_req *infl_req = vec_req->req;\n@@ -400,6 +401,8 @@ cn10k_cpt_vec_inst_fill(struct vec_request *vec_req, struct cpt_inst_s *inst,\n \t\t.s.dlen = 0,\n \t};\n \n+\tw7.s.egrp = ROC_CPT_DFLT_ENG_GRP_SE;\n+\n \tinfl_req->vec = vec_req->vec;\n \tinfl_req->qp = qp;\n \n@@ -410,7 +413,7 @@ cn10k_cpt_vec_inst_fill(struct vec_request *vec_req, struct cpt_inst_s *inst,\n \tinst->w2.u64 = vec_req->w2;\n \tinst->w3.u64 = CNXK_CPT_INST_W3(1, infl_req);\n \tinst->w4.u64 = w4.u64;\n-\tinst->w7.u64 = ROC_CPT_DFLT_ENG_GRP_SE << 61;\n+\tinst->w7.u64 = w7.u64;\n }\n \n static void\n@@ -451,7 +454,7 @@ cn10k_cpt_vec_submit(struct vec_request vec_tbl[], uint16_t vec_tbl_len, struct\n again:\n \tburst_size = RTE_MIN(PKTS_PER_STEORL, vec_tbl_len);\n \tfor (i = 0; i < burst_size; i++)\n-\t\tcn10k_cpt_vec_inst_fill(&vec_tbl[i], &inst[i * 2], qp);\n+\t\tcn10k_cpt_vec_inst_fill(&vec_tbl[i], &inst[i * 2], qp, vec_tbl[0].w7);\n \n \tdo {\n \t\tfc.u64[0] = __atomic_load_n(fc_addr, __ATOMIC_RELAXED);\n@@ -590,6 +593,10 @@ next_op:;\n \t\troc_lmt_submit_steorl(lmt_arg, io_addr);\n \t}\n \n+\t/* Store w7 of last successfully filled instruction */\n+\tinst = &inst_base[2 * (i - 1)];\n+\tvec_tbl[0].w7 = inst->w7;\n+\n \trte_io_wmb();\n \n put:\n",
    "prefixes": [
        "04/17"
    ]
}