get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 131933,
    "url": "http://patchwork.dpdk.org/api/patches/131933/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230926055847.2707473-15-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-15-ktejasree@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230926055847.2707473-15-ktejasree@marvell.com",
    "date": "2023-09-26T05:58:46",
    "name": "[v2,14/15] crypto/cnxk: update the iv from proper param for gmac",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "5e03643d0a5330350a763fb680d50d69f197b022",
    "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-15-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/131933/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/131933/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 77D874263E;\n\tTue, 26 Sep 2023 08:00:42 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 2F03240ED3;\n\tTue, 26 Sep 2023 07:59:30 +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 B1EC840ED3\n for <dev@dpdk.org>; Tue, 26 Sep 2023 07:59:28 +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 38PKQ3Vv003945 for <dev@dpdk.org>; Mon, 25 Sep 2023 22:59:27 -0700",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3t9wcqr1vf-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:27 -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:26 -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:26 -0700",
            "from hyd1554.marvell.com (unknown [10.29.57.11])\n by maili.marvell.com (Postfix) with ESMTP id 1EDA73F7070;\n Mon, 25 Sep 2023 22:59:23 -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=Zr+0qqZ7PmkSuAhYc/bvSyUNWlvdmvl9Ftl/GLFf0rI=;\n b=eIH+O34LMmW8jg2xtTo7m0uNvLxX147jWSj2ieSq9Di/VBzx4gNrqvKCH1VWfAPLvHdW\n WfkBo2265Kj6Pwm4vlpPPetIzo9rcJ5ntKj6UFa5PYP82KoiGMjrF1cd3QKpw/rR3lq2\n MteapV4J3S88nO1tk6EAtmwsnb1+xjbNM20HnezJoF+b2Ri8wWRs1z0IcJxmy/QSoq/w\n jdN7tyrxBCQRb8WVQsPTNPIOzkvVvLFz3vOcrTbBA9L+I0emwIxmVsVcV7Qi6PLbbaRJ\n MeJv5QyUH8AK61ouqEpnXv7/ficqNqgT/cnQ/Pc8DRmzgNbxp3wGJPHbDiGYT5VVvh+K MA==",
        "From": "Tejasree Kondoj <ktejasree@marvell.com>",
        "To": "Akhil Goyal <gakhil@marvell.com>",
        "CC": "Vidya Sagar Velumuri <vvelumuri@marvell.com>, Anoob Joseph\n <anoobj@marvell.com>, Aakash Sasidharan <asasidharan@marvell.com>,\n Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>, <dev@dpdk.org>",
        "Subject": "[PATCH v2 14/15] crypto/cnxk: update the iv from proper param for\n gmac",
        "Date": "Tue, 26 Sep 2023 11:28:46 +0530",
        "Message-ID": "<20230926055847.2707473-15-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": "j1n72dcbnNMb6kzYizEMRoeNdL5I0aag",
        "X-Proofpoint-GUID": "j1n72dcbnNMb6kzYizEMRoeNdL5I0aag",
        "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: Vidya Sagar Velumuri <vvelumuri@marvell.com>\n\nIn raw crypto, aad and auth iv are provided in same param.\nUpdate the auth_iv from proper param in case of GMAC.\nSkip the raw for SM ciphers and auths\n\nSigned-off-by: Vidya Sagar Velumuri <vvelumuri@marvell.com>\n---\n drivers/crypto/cnxk/cn10k_cryptodev_ops.c |  6 +++---\n drivers/crypto/cnxk/cnxk_se.h             | 21 +++++++++++++++------\n 2 files changed, 18 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/drivers/crypto/cnxk/cn10k_cryptodev_ops.c b/drivers/crypto/cnxk/cn10k_cryptodev_ops.c\nindex 4b0becce0e..5f181e8839 100644\n--- a/drivers/crypto/cnxk/cn10k_cryptodev_ops.c\n+++ b/drivers/crypto/cnxk/cn10k_cryptodev_ops.c\n@@ -1485,7 +1485,8 @@ cn10k_sym_configure_raw_dp_ctx(struct rte_cryptodev *dev, uint16_t qp_id,\n \n \tif ((sess->dp_thr_type == CPT_DP_THREAD_TYPE_PDCP) ||\n \t    (sess->dp_thr_type == CPT_DP_THREAD_TYPE_PDCP_CHAIN) ||\n-\t    (sess->dp_thr_type == CPT_DP_THREAD_TYPE_KASUMI))\n+\t    (sess->dp_thr_type == CPT_DP_THREAD_TYPE_KASUMI) ||\n+\t    (sess->dp_thr_type == CPT_DP_THREAD_TYPE_SM))\n \t\treturn -ENOTSUP;\n \n \tif ((sess->dp_thr_type == CPT_DP_THREAD_AUTH_ONLY) &&\n@@ -1493,8 +1494,7 @@ cn10k_sym_configure_raw_dp_ctx(struct rte_cryptodev *dev, uint16_t qp_id,\n \t     (sess->roc_se_ctx.fc_type == ROC_SE_PDCP)))\n \t\treturn -ENOTSUP;\n \n-\tif ((sess->roc_se_ctx.hash_type == ROC_SE_GMAC_TYPE) ||\n-\t    (sess->roc_se_ctx.hash_type == ROC_SE_SHA1_TYPE))\n+\tif (sess->roc_se_ctx.hash_type == ROC_SE_SHA1_TYPE)\n \t\treturn -ENOTSUP;\n \n \tdp_ctx = (struct cnxk_sym_dp_ctx *)raw_dp_ctx->drv_ctx_data;\ndiff --git a/drivers/crypto/cnxk/cnxk_se.h b/drivers/crypto/cnxk/cnxk_se.h\nindex f05c5078d6..5d138163f0 100644\n--- a/drivers/crypto/cnxk/cnxk_se.h\n+++ b/drivers/crypto/cnxk/cnxk_se.h\n@@ -3499,14 +3499,23 @@ fill_raw_fc_params(struct cnxk_iov *iov, struct cnxk_se_sess *sess, struct cpt_q\n \tfc_params.mac_buf.vaddr = 0;\n \tfc_params.iv_buf = NULL;\n \n-\tif (likely(is_kasumi || sess->iv_length)) {\n+\tif (likely(sess->iv_length)) {\n \t\tflags |= ROC_SE_VALID_IV_BUF;\n-\t\tfc_params.iv_buf = iov->iv_buf;\n \n-\t\tif (sess->short_iv) {\n-\t\t\tmemcpy((uint8_t *)iv_buf, iov->iv_buf, 12);\n-\t\t\tiv_buf[3] = rte_cpu_to_be_32(0x1);\n-\t\t\tfc_params.iv_buf = iv_buf;\n+\t\tif (sess->is_gmac) {\n+\t\t\tfc_params.iv_buf = iov->aad_buf;\n+\t\t\tif (sess->short_iv) {\n+\t\t\t\tmemcpy((void *)iv_buf, iov->aad_buf, 12);\n+\t\t\t\tiv_buf[3] = rte_cpu_to_be_32(0x1);\n+\t\t\t\tfc_params.iv_buf = iv_buf;\n+\t\t\t}\n+\t\t} else {\n+\t\t\tfc_params.iv_buf = iov->iv_buf;\n+\t\t\tif (sess->short_iv) {\n+\t\t\t\tmemcpy((void *)iv_buf, iov->iv_buf, 12);\n+\t\t\t\tiv_buf[3] = rte_cpu_to_be_32(0x1);\n+\t\t\t\tfc_params.iv_buf = iv_buf;\n+\t\t\t}\n \t\t}\n \n \t\tif (sess->aes_ccm) {\n",
    "prefixes": [
        "v2",
        "14/15"
    ]
}