get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 131931,
    "url": "http://patchwork.dpdk.org/api/patches/131931/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230926055847.2707473-13-ktejasree@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": "<20230926055847.2707473-13-ktejasree@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230926055847.2707473-13-ktejasree@marvell.com",
    "date": "2023-09-26T05:58:44",
    "name": "[v2,12/15] crypto/cnxk: add support for packets with cipher len zero",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "5ba4e778d744b0d721aaeb467259ae4a1f834be0",
    "submitter": {
        "id": 1789,
        "url": "http://patchwork.dpdk.org/api/people/1789/?format=api",
        "name": "Tejasree Kondoj",
        "email": "ktejasree@marvell.com"
    },
    "delegate": {
        "id": 6690,
        "url": "http://patchwork.dpdk.org/api/users/6690/?format=api",
        "username": "akhil",
        "first_name": "akhil",
        "last_name": "goyal",
        "email": "gakhil@marvell.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230926055847.2707473-13-ktejasree@marvell.com/mbox/",
    "series": [
        {
            "id": 29629,
            "url": "http://patchwork.dpdk.org/api/series/29629/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29629",
            "date": "2023-09-26T05:58:32",
            "name": "fixes and improvements to cnxk crypto PMD",
            "version": 2,
            "mbox": "http://patchwork.dpdk.org/series/29629/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/131931/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/131931/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 A89D34263E;\n\tTue, 26 Sep 2023 08:00:25 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6A71740E7C;\n\tTue, 26 Sep 2023 07:59:25 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id 9FD8140E64\n for <dev@dpdk.org>; Tue, 26 Sep 2023 07:59:23 +0200 (CEST)",
            "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 38Q5rcMO024020 for <dev@dpdk.org>; Mon, 25 Sep 2023 22:59:22 -0700",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3t9wcqr1va-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Mon, 25 Sep 2023 22:59:22 -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.48;\n Mon, 25 Sep 2023 22:59:21 -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.48 via Frontend\n Transport; Mon, 25 Sep 2023 22:59:21 -0700",
            "from hyd1554.marvell.com (unknown [10.29.57.11])\n by maili.marvell.com (Postfix) with ESMTP id 099913F708E;\n Mon, 25 Sep 2023 22:59:18 -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=n+VSn42UB+H6fK+Cl9VSWJe4E3HJX+7CqWqM2v+LKIc=;\n b=BJpXbO0ueJtdiMHMbUdjXTpPIz6NyTIrAR9DGsIuokQqCJvD7NvTIngWiC9vxTJnV6a6\n 5iudZt/mvD3eEdorUrR5qGwX9bm6B+3/3V5tBAvWq5ymcjnysJDw4a8CZXzofiOWs4ka\n joy3U593lHILYaF5YKUkibTjA2OzTjaGN3PUDutQS9aJh7zC9vvcvl1a6SAWh97AGdT6\n NA6XFzKeAyTHfWi/+X0ZMRbyCjLqZcUsUNkhNHmT5CuzANjk1dS9W5cEk9o5Vs7rAhzH\n 2AXu3T5STIsMrC4DIgjd5cOR3AlDZqasp4x1f+4WCLGql4ZXqqSUXeZgCigfSq5Iy5oq xA==",
        "From": "Tejasree Kondoj <ktejasree@marvell.com>",
        "To": "Akhil Goyal <gakhil@marvell.com>",
        "CC": "Aakash Sasidharan <asasidharan@marvell.com>, Anoob Joseph\n <anoobj@marvell.com>,\n Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>,\n Vidya Sagar Velumuri <vvelumuri@marvell.com>, <dev@dpdk.org>",
        "Subject": "[PATCH v2 12/15] crypto/cnxk: add support for packets with cipher len\n zero",
        "Date": "Tue, 26 Sep 2023 11:28:44 +0530",
        "Message-ID": "<20230926055847.2707473-13-ktejasree@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20230926055847.2707473-1-ktejasree@marvell.com>",
        "References": "<20230926055847.2707473-1-ktejasree@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "jfpN8sIrYrNxRGfnDqK0HFgBaKH8aCvo",
        "X-Proofpoint-GUID": "jfpN8sIrYrNxRGfnDqK0HFgBaKH8aCvo",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26\n definitions=2023-09-26_04,2023-09-25_01,2023-05-22_02",
        "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: Aakash Sasidharan <asasidharan@marvell.com>\n\nFor cipher only zero length packets, submit it to CPT with\npassthrough opcode.\n\nSigned-off-by: Aakash Sasidharan <asasidharan@marvell.com>\n---\n drivers/crypto/cnxk/cnxk_se.h | 16 ++++++++++++++--\n 1 file changed, 14 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/crypto/cnxk/cnxk_se.h b/drivers/crypto/cnxk/cnxk_se.h\nindex 1fbae54c76..f6884be5ad 100644\n--- a/drivers/crypto/cnxk/cnxk_se.h\n+++ b/drivers/crypto/cnxk/cnxk_se.h\n@@ -45,7 +45,8 @@ struct cnxk_se_sess {\n \tuint8_t is_sm3 : 1;\n \tuint8_t passthrough : 1;\n \tuint8_t is_sm4 : 1;\n-\tuint8_t rsvd : 2;\n+\tuint8_t cipher_only : 1;\n+\tuint8_t rsvd : 1;\n \tuint8_t cpt_op : 4;\n \tuint8_t zsk_flag : 4;\n \tuint8_t zs_cipher : 4;\n@@ -2192,6 +2193,7 @@ fill_sess_cipher(struct rte_crypto_sym_xform *xform, struct cnxk_se_sess *sess)\n \t\t}\n \t}\n \n+\tsess->cipher_only = 1;\n \tsess->zsk_flag = zsk_flag;\n \tsess->zs_cipher = zs_cipher;\n \tsess->aes_gcm = 0;\n@@ -3308,9 +3310,19 @@ static __rte_always_inline int __rte_hot\n cpt_sym_inst_fill(struct cnxk_cpt_qp *qp, struct rte_crypto_op *op, struct cnxk_se_sess *sess,\n \t\t  struct cpt_inflight_req *infl_req, struct cpt_inst_s *inst, const bool is_sg_ver2)\n {\n+\tenum cpt_dp_thread_type dp_thr_type;\n \tint ret;\n \n-\tswitch (sess->dp_thr_type) {\n+\tdp_thr_type = sess->dp_thr_type;\n+\n+\t/*\n+\t * With cipher only, microcode expects that cipher length is non-zero. To accept such\n+\t * instructions, send to CPT as passthrough.\n+\t */\n+\tif (unlikely(sess->cipher_only && op->sym->cipher.data.length == 0))\n+\t\tdp_thr_type = CPT_DP_THREAD_TYPE_PT;\n+\n+\tswitch (dp_thr_type) {\n \tcase CPT_DP_THREAD_TYPE_PT:\n \t\tret = fill_passthrough_params(op, inst);\n \t\tbreak;\n",
    "prefixes": [
        "v2",
        "12/15"
    ]
}