get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 118579,
    "url": "http://patchwork.dpdk.org/api/patches/118579/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20221019141513.1969052-8-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": "<20221019141513.1969052-8-ktejasree@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20221019141513.1969052-8-ktejasree@marvell.com",
    "date": "2022-10-19T14:15:07",
    "name": "[07/13] crypto/cnxk: add support for DES and MD5",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "75a2b092670847590bda63336fbf322f36cba173",
    "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/20221019141513.1969052-8-ktejasree@marvell.com/mbox/",
    "series": [
        {
            "id": 25309,
            "url": "http://patchwork.dpdk.org/api/series/25309/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=25309",
            "date": "2022-10-19T14:15:02",
            "name": "[01/13] crypto/cnxk: fix length of AES-CMAC algo",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/25309/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/118579/comments/",
    "check": "warning",
    "checks": "http://patchwork.dpdk.org/api/patches/118579/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 44BD0A06C8;\n\tWed, 19 Oct 2022 16:15:59 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id CD8EC42BEE;\n\tWed, 19 Oct 2022 16:15:36 +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 5D96242BE2\n for <dev@dpdk.org>; Wed, 19 Oct 2022 16:15:33 +0200 (CEST)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id\n 29J8Ao51010370\n for <dev@dpdk.org>; Wed, 19 Oct 2022 07:15:32 -0700",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3kadg59caf-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Wed, 19 Oct 2022 07:15:32 -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 Wed, 19 Oct 2022 07:15:30 -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; Wed, 19 Oct 2022 07:15:30 -0700",
            "from hyd1554.marvell.com (unknown [10.29.57.11])\n by maili.marvell.com (Postfix) with ESMTP id 55C8E3F7041;\n Wed, 19 Oct 2022 07:15:29 -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=qdVfDZus7xQMi09zZz2VrsVkOMdcNqxBKh5jFkYe12Q=;\n b=UdwIBBa3JFPFqHAMy7oTF18FhgDczH8PapB1T3bhgV89BQ9hE0oorDJDkcMHacaSGFkG\n lnYzPiM868gJC6DpLgZ8Z7ugJ1wI9yZ5P5BjqfdKblhMXpfUt0WBtWDd+AYilcjKtWDR\n 2ei+34XQrgg3P4sb/+GhHnc5cPokaGWIz++RYvIdNTA385FwTVHBJVSIDo2OOOlygzKg\n mq3G/KikLVQgnrJJUbegY1503wiHsHw1UIY7X4kXJO4oxD1DuJgY7weku+1TgGScbz7f\n JKKY9q50aPuFyjSdTyKtaaDtyZ9tQ9f+lDFFNfoIp0uhfrXXDx5EoBiR1NnamaDYvljX zg==",
        "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>, <dev@dpdk.org>",
        "Subject": "[PATCH 07/13] crypto/cnxk: add support for DES and MD5",
        "Date": "Wed, 19 Oct 2022 19:45:07 +0530",
        "Message-ID": "<20221019141513.1969052-8-ktejasree@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20221019141513.1969052-1-ktejasree@marvell.com>",
        "References": "<20221019141513.1969052-1-ktejasree@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "6OnJ-1KMVUEzeLxG4DVnFGb6ct6oxtON",
        "X-Proofpoint-ORIG-GUID": "6OnJ-1KMVUEzeLxG4DVnFGb6ct6oxtON",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1\n definitions=2022-10-19_08,2022-10-19_03,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: Vidya Sagar Velumuri <vvelumuri@marvell.com>\n\nAdd supoort for cipher DES and auth MD5 for IPsec offload\n\nSigned-off-by: Vidya Sagar Velumuri <vvelumuri@marvell.com>\n---\n drivers/crypto/cnxk/cnxk_cryptodev.h          |  2 +-\n .../crypto/cnxk/cnxk_cryptodev_capabilities.c | 42 ++++++++++++++++++-\n drivers/crypto/cnxk/cnxk_ipsec.h              |  9 ++++\n 3 files changed, 51 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/crypto/cnxk/cnxk_cryptodev.h b/drivers/crypto/cnxk/cnxk_cryptodev.h\nindex 588760cfb0..48bd6e144c 100644\n--- a/drivers/crypto/cnxk/cnxk_cryptodev.h\n+++ b/drivers/crypto/cnxk/cnxk_cryptodev.h\n@@ -11,7 +11,7 @@\n #include \"roc_cpt.h\"\n \n #define CNXK_CPT_MAX_CAPS\t 37\n-#define CNXK_SEC_CRYPTO_MAX_CAPS 14\n+#define CNXK_SEC_CRYPTO_MAX_CAPS 16\n #define CNXK_SEC_MAX_CAPS\t 9\n #define CNXK_AE_EC_ID_MAX\t 8\n /**\ndiff --git a/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c b/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c\nindex 6a15154607..6c28f8942e 100644\n--- a/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c\n+++ b/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c\n@@ -946,6 +946,26 @@ static const struct rte_cryptodev_capabilities sec_caps_aes[] = {\n };\n \n static const struct rte_cryptodev_capabilities sec_caps_des[] = {\n+\t{\t/* DES  */\n+\t\t.op = RTE_CRYPTO_OP_TYPE_SYMMETRIC,\n+\t\t{.sym = {\n+\t\t\t.xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER,\n+\t\t\t{.cipher = {\n+\t\t\t\t.algo = RTE_CRYPTO_CIPHER_DES_CBC,\n+\t\t\t\t.block_size = 8,\n+\t\t\t\t.key_size = {\n+\t\t\t\t\t.min = 8,\n+\t\t\t\t\t.max = 8,\n+\t\t\t\t\t.increment = 0\n+\t\t\t\t},\n+\t\t\t\t.iv_size = {\n+\t\t\t\t\t.min = 8,\n+\t\t\t\t\t.max = 8,\n+\t\t\t\t\t.increment = 0\n+\t\t\t\t}\n+\t\t\t}, },\n+\t\t}, }\n+\t},\n \t{\t/* 3DES CBC */\n \t\t.op = RTE_CRYPTO_OP_TYPE_SYMMETRIC,\n \t\t{.sym = {\n@@ -965,7 +985,7 @@ static const struct rte_cryptodev_capabilities sec_caps_des[] = {\n \t\t\t\t}\n \t\t\t}, }\n \t\t}, }\n-\t}\n+\t},\n };\n \n static const struct rte_cryptodev_capabilities sec_caps_sha1_sha2[] = {\n@@ -1049,6 +1069,26 @@ static const struct rte_cryptodev_capabilities sec_caps_sha1_sha2[] = {\n \t\t\t}, }\n \t\t}, }\n \t},\n+\t{\t/* MD5 HMAC */\n+\t\t.op = RTE_CRYPTO_OP_TYPE_SYMMETRIC,\n+\t\t{.sym = {\n+\t\t\t.xform_type = RTE_CRYPTO_SYM_XFORM_AUTH,\n+\t\t\t{.auth = {\n+\t\t\t\t.algo = RTE_CRYPTO_AUTH_MD5_HMAC,\n+\t\t\t\t.block_size = 64,\n+\t\t\t\t.key_size = {\n+\t\t\t\t\t.min = 16,\n+\t\t\t\t\t.max = 16,\n+\t\t\t\t\t.increment = 0\n+\t\t\t\t},\n+\t\t\t\t.digest_size = {\n+\t\t\t\t\t.min = 12,\n+\t\t\t\t\t.max = 12,\n+\t\t\t\t\t.increment = 0\n+\t\t\t\t},\n+\t\t\t}, }\n+\t\t}, }\n+\t},\n };\n \n static const struct rte_cryptodev_capabilities sec_caps_null[] = {\ndiff --git a/drivers/crypto/cnxk/cnxk_ipsec.h b/drivers/crypto/cnxk/cnxk_ipsec.h\nindex 00873ca6ac..0c471b2cfe 100644\n--- a/drivers/crypto/cnxk/cnxk_ipsec.h\n+++ b/drivers/crypto/cnxk/cnxk_ipsec.h\n@@ -23,6 +23,10 @@ ipsec_xform_cipher_verify(struct rte_crypto_sym_xform *crypto_xform)\n \tif (crypto_xform->cipher.algo == RTE_CRYPTO_CIPHER_NULL)\n \t\treturn 0;\n \n+\tif (crypto_xform->cipher.algo == RTE_CRYPTO_CIPHER_DES_CBC &&\n+\t    crypto_xform->cipher.key.length == 8)\n+\t\treturn 0;\n+\n \tif (crypto_xform->cipher.algo == RTE_CRYPTO_CIPHER_AES_CBC ||\n \t    crypto_xform->cipher.algo == RTE_CRYPTO_CIPHER_AES_CTR) {\n \t\tswitch (crypto_xform->cipher.key.length) {\n@@ -51,6 +55,11 @@ ipsec_xform_auth_verify(struct rte_crypto_sym_xform *crypto_xform)\n \tif (crypto_xform->auth.algo == RTE_CRYPTO_AUTH_NULL)\n \t\treturn 0;\n \n+\tif (crypto_xform->auth.algo == RTE_CRYPTO_AUTH_MD5_HMAC) {\n+\t\tif (keylen == 16)\n+\t\t\treturn 0;\n+\t}\n+\n \tif (crypto_xform->auth.algo == RTE_CRYPTO_AUTH_SHA1_HMAC) {\n \t\tif (keylen >= 20 && keylen <= 64)\n \t\t\treturn 0;\n",
    "prefixes": [
        "07/13"
    ]
}