get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 130066,
    "url": "http://patchwork.dpdk.org/api/patches/130066/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/507635c898972097ebf9bccb8cf761903a8bd0c3.1691658879.git.gmuthukrishn@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": "<507635c898972097ebf9bccb8cf761903a8bd0c3.1691658879.git.gmuthukrishn@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/507635c898972097ebf9bccb8cf761903a8bd0c3.1691658879.git.gmuthukrishn@marvell.com",
    "date": "2023-08-10T09:35:24",
    "name": "[v1,2/6] cryptodev: add RNG capability in EC based xform",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "1c008aa41d76149905a162d3dc8234b317930fb8",
    "submitter": {
        "id": 2301,
        "url": "http://patchwork.dpdk.org/api/people/2301/?format=api",
        "name": "Gowrishankar Muthukrishnan",
        "email": "gmuthukrishn@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/507635c898972097ebf9bccb8cf761903a8bd0c3.1691658879.git.gmuthukrishn@marvell.com/mbox/",
    "series": [
        {
            "id": 29149,
            "url": "http://patchwork.dpdk.org/api/series/29149/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29149",
            "date": "2023-08-10T09:35:22",
            "name": "cryptodev: support digest message in SM2",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/29149/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/130066/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/130066/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 3FD034301B;\n\tThu, 10 Aug 2023 11:35:49 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id CAE5043259;\n\tThu, 10 Aug 2023 11:35:44 +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 2C52743259\n for <dev@dpdk.org>; Thu, 10 Aug 2023 11:35:43 +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 37A57QLV014705; Thu, 10 Aug 2023 02:35:42 -0700",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3sc57snqr7-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Thu, 10 Aug 2023 02:35:42 -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 Thu, 10 Aug 2023 02:35:40 -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; Thu, 10 Aug 2023 02:35:40 -0700",
            "from BG-LT91401.marvell.com (BG-LT91401.marvell.com [10.28.168.34])\n by maili.marvell.com (Postfix) with ESMTP id 27D873F705B;\n Thu, 10 Aug 2023 02:35:37 -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=OLowksNJ/GrMRfP18NLDSoic0z14ElLg13LpVlh1wZw=;\n b=dqc9ya9e9R6IPQbvGHGKHewLGg8avLE2VoCiWmS9UhYGoj+h4jkp0Udl4MFhPad/T2J7\n Zz8Xnx5jUnrggOEhXKz2IJpPtJGQxHGZuBDpdteRMhq4wTqlfSaHNJHwJYCz4KiwwxNB\n DPMDFHnZCWauzyHliVuUY9U46KvBWX6MUUh0EEOzLZ7C3ZxjzuNWbR5PQKgOU4wO5TFc\n 98dlnvYgWUmQorYrseXzdTRdXZeZhusGmfAeCWJA6b4asiyALW9TyCND9sC8NYq+zZlU\n dZbfsF3CeJ13xiwrVtULxead4PO2qOd8JqpvStI6fA4KxapesytUPK9Fm0uNx5+pSmM7 Ig==",
        "From": "Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<anoobj@marvell.com>, Akhil Goyal <gakhil@marvell.com>, Fan Zhang\n <fanzhang.oss@gmail.com>, Kai Ji <kai.ji@intel.com>, \"Gowrishankar\n Muthukrishnan\" <gmuthukrishn@marvell.com>",
        "Subject": "[v1 2/6] cryptodev: add RNG capability in EC based xform",
        "Date": "Thu, 10 Aug 2023 15:05:24 +0530",
        "Message-ID": "\n <507635c898972097ebf9bccb8cf761903a8bd0c3.1691658879.git.gmuthukrishn@marvell.com>",
        "X-Mailer": "git-send-email 2.21.0",
        "In-Reply-To": "<cover.1691658879.git.gmuthukrishn@marvell.com>",
        "References": "<cover.1691658879.git.gmuthukrishn@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "QOHA35TR8WTJszL1ys2R0jc0Y31H0SIC",
        "X-Proofpoint-ORIG-GUID": "QOHA35TR8WTJszL1ys2R0jc0Y31H0SIC",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26\n definitions=2023-08-10_09,2023-08-09_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": "Elliptic curve based asymmetric operations use cryptographically\nsecure random number in its computation. If PMD supports RNG\nfor such ops, the application could skip computing on its own.\nThis patch adds new field in asymmetric capability to declare\nthis capability.\n\nSigned-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>\n---\n drivers/crypto/openssl/rte_openssl_pmd_ops.c | 2 ++\n lib/cryptodev/rte_cryptodev.h                | 6 ++++++\n 2 files changed, 8 insertions(+)",
    "diff": "diff --git a/drivers/crypto/openssl/rte_openssl_pmd_ops.c b/drivers/crypto/openssl/rte_openssl_pmd_ops.c\nindex 2eb450fcfd..0f88669f41 100644\n--- a/drivers/crypto/openssl/rte_openssl_pmd_ops.c\n+++ b/drivers/crypto/openssl/rte_openssl_pmd_ops.c\n@@ -603,6 +603,8 @@ static const struct rte_cryptodev_capabilities openssl_pmd_capabilities[] = {\n \t\t\t\t (1 << RTE_CRYPTO_ASYM_OP_VERIFY) |\n \t\t\t\t (1 << RTE_CRYPTO_ASYM_OP_ENCRYPT) |\n \t\t\t\t (1 << RTE_CRYPTO_ASYM_OP_DECRYPT)),\n+\t\t\t\t{.internal_rng = 1\n+\t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t}\ndiff --git a/lib/cryptodev/rte_cryptodev.h b/lib/cryptodev/rte_cryptodev.h\nindex ba730373fb..64810c9ec4 100644\n--- a/lib/cryptodev/rte_cryptodev.h\n+++ b/lib/cryptodev/rte_cryptodev.h\n@@ -182,6 +182,12 @@ struct rte_cryptodev_asymmetric_xform_capability {\n \t\t/**< Range of modulus length supported by modulus based xform.\n \t\t * Value 0 mean implementation default\n \t\t */\n+\n+\t\tuint8_t internal_rng;\n+\t\t/**< Availability of random number generator for Elliptic curve based xform.\n+\t\t * Value 0 means unavailable, and application should pass the required\n+\t\t * random value. Otherwise, PMD would internally compute the random number.\n+\t\t */\n \t};\n };\n \n",
    "prefixes": [
        "v1",
        "2/6"
    ]
}