get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 132115,
    "url": "http://patches.dpdk.org/api/patches/132115/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230928095300.1353-7-gmuthukrishn@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": "<20230928095300.1353-7-gmuthukrishn@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230928095300.1353-7-gmuthukrishn@marvell.com",
    "date": "2023-09-28T09:53:00",
    "name": "[RFC,6/6] app/test: add asymmetric tests for virtio pmd",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "bb558e5fdafb7b07ca2deaf19a5fb38b57093f6e",
    "submitter": {
        "id": 2301,
        "url": "http://patches.dpdk.org/api/people/2301/?format=api",
        "name": "Gowrishankar Muthukrishnan",
        "email": "gmuthukrishn@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/20230928095300.1353-7-gmuthukrishn@marvell.com/mbox/",
    "series": [
        {
            "id": 29674,
            "url": "http://patches.dpdk.org/api/series/29674/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=29674",
            "date": "2023-09-28T09:52:54",
            "name": "vhost: add asymmetric crypto support",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/29674/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/132115/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/132115/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 CC36C4265E;\n\tThu, 28 Sep 2023 11:54:04 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E752E40ECF;\n\tThu, 28 Sep 2023 11:53:43 +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 50D2040EA5\n for <dev@dpdk.org>; Thu, 28 Sep 2023 11:53:42 +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 38S8pJGd018459; Thu, 28 Sep 2023 02:53:41 -0700",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3tcu1qtdh9-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Thu, 28 Sep 2023 02:53:40 -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, 28 Sep 2023 02:53:39 -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, 28 Sep 2023 02:53:39 -0700",
            "from BG-LT91401.marvell.com (BG-LT91401.marvell.com [10.28.168.34])\n by maili.marvell.com (Postfix) with ESMTP id 9A2435C68EE;\n Thu, 28 Sep 2023 02:53:36 -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=H98u6wZJP9HYns5+Sk+iIq9MEuR62vPkwi0i90YPs4k=;\n b=BwZVhi2kaAB1NvnzGpk6hF2GfG7rEE8V4OnpNflKyrFSOipZpkEW8PexbqO7Ape1Xs7V\n +uWP/tfoKU1Ic7t4SKuZLVWbGIqTbcZ7DzbmZOqeA7eQsifDtxW8XCfb0A7UcsztKIrL\n 3B88zUL+vAgb6WsfkMLdKGTrRDxJNzffCrDXMtMaZoT6/uWNLqHPh1xRB38irJc6TXUc\n xXWw5pyKQrpDSOhSrjAGokrYLpR/WGjEwoYjF91MVtL2E7gSR1l4NHp2mYKJ/PCXIg94\n jaV0gTHLF5jZ7bjaZ+PYhrKkJmaCebYZBkBYxZ0fm95Wxa8y5fYI7KfAxxXprQi/phmB tQ==",
        "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>, Arkadiusz Kusztal\n <arkadiuszx.kusztal@intel.com>,\n Maxime Coquelin <maxime.coquelin@redhat.com>,\n Chenbo Xia <chenbo.xia@intel.com>, Jay Zhou <jianjay.zhou@huawei.com>,\n Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>",
        "Subject": "[RFC 6/6] app/test: add asymmetric tests for virtio pmd",
        "Date": "Thu, 28 Sep 2023 15:23:00 +0530",
        "Message-ID": "<20230928095300.1353-7-gmuthukrishn@marvell.com>",
        "X-Mailer": "git-send-email 2.21.0",
        "In-Reply-To": "<20230928095300.1353-1-gmuthukrishn@marvell.com>",
        "References": "<20230928095300.1353-1-gmuthukrishn@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "v75B4HidB9fmmHoPOxKcBGFetWVY6Q08",
        "X-Proofpoint-ORIG-GUID": "v75B4HidB9fmmHoPOxKcBGFetWVY6Q08",
        "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-28_07,2023-09-27_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": "Add asymmetric tests for Virtio PMD.\n\nSigned-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>\n---\n app/test/test_cryptodev_asym.c             | 36 ++++++++++++++++++++--\n app/test/test_cryptodev_rsa_test_vectors.h | 26 ++++++++++++++++\n 2 files changed, 60 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/app/test/test_cryptodev_asym.c b/app/test/test_cryptodev_asym.c\nindex 7a4b262ba9..35172a2986 100644\n--- a/app/test/test_cryptodev_asym.c\n+++ b/app/test/test_cryptodev_asym.c\n@@ -474,7 +474,7 @@ testsuite_setup(void)\n \tfor (qp_id = 0; qp_id < info.max_nb_queue_pairs; qp_id++) {\n \t\tTEST_ASSERT_SUCCESS(rte_cryptodev_queue_pair_setup(\n \t\t\tdev_id, qp_id, &ts_params->qp_conf,\n-\t\t\trte_cryptodev_socket_id(dev_id)),\n+\t\t\t(int8_t)rte_cryptodev_socket_id(dev_id)),\n \t\t\t\"Failed to setup queue pair %u on cryptodev %u ASYM\",\n \t\t\tqp_id, dev_id);\n \t}\n@@ -537,7 +537,7 @@ ut_setup_asym(void)\n \t\tTEST_ASSERT_SUCCESS(rte_cryptodev_queue_pair_setup(\n \t\t\tts_params->valid_devs[0], qp_id,\n \t\t\t&ts_params->qp_conf,\n-\t\t\trte_cryptodev_socket_id(ts_params->valid_devs[0])),\n+\t\t\t(int8_t)rte_cryptodev_socket_id(ts_params->valid_devs[0])),\n \t\t\t\"Failed to setup queue pair %u on cryptodev %u\",\n \t\t\tqp_id, ts_params->valid_devs[0]);\n \t}\n@@ -2753,6 +2753,22 @@ static struct unit_test_suite cryptodev_octeontx_asym_testsuite  = {\n \t}\n };\n \n+static struct unit_test_suite cryptodev_virtio_asym_testsuite  = {\n+\t.suite_name = \"Crypto Device VIRTIO ASYM Unit Test Suite\",\n+\t.setup = testsuite_setup,\n+\t.teardown = testsuite_teardown,\n+\t.unit_test_cases = {\n+\t\tTEST_CASE_ST(ut_setup_asym, ut_teardown_asym, test_capability),\n+\t\tTEST_CASE_ST(ut_setup_asym, ut_teardown_asym,\n+\t\t\t\ttest_rsa_sign_verify),\n+\t\tTEST_CASE_ST(ut_setup_asym, ut_teardown_asym,\n+\t\t\t\ttest_rsa_sign_verify_crt),\n+\t\tTEST_CASE_ST(ut_setup_asym, ut_teardown_asym, test_rsa_enc_dec),\n+\t\tTEST_CASE_ST(ut_setup_asym, ut_teardown_asym, test_rsa_enc_dec_crt),\n+\t\tTEST_CASES_END() /**< NULL terminate unit test array */\n+\t}\n+};\n+\n static int\n test_cryptodev_openssl_asym(void)\n {\n@@ -2821,6 +2837,22 @@ test_cryptodev_cn10k_asym(void)\n \treturn unit_test_suite_runner(&cryptodev_octeontx_asym_testsuite);\n }\n \n+static int\n+test_cryptodev_virtio_asym(void)\n+{\n+\tgbl_driver_id = rte_cryptodev_driver_id_get(\n+\t\t\tRTE_STR(CRYPTODEV_NAME_VIRTIO_PMD));\n+\tif (gbl_driver_id == -1) {\n+\t\tRTE_LOG(ERR, USER1, \"virtio PMD must be loaded.\\n\");\n+\t\treturn TEST_FAILED;\n+\t}\n+\n+\t/* Use test suite registered for crypto_virtio PMD */\n+\treturn unit_test_suite_runner(&cryptodev_virtio_asym_testsuite);\n+}\n+\n+REGISTER_DRIVER_TEST(cryptodev_virtio_asym_autotest, test_cryptodev_virtio_asym);\n+\n REGISTER_DRIVER_TEST(cryptodev_openssl_asym_autotest, test_cryptodev_openssl_asym);\n \n REGISTER_DRIVER_TEST(cryptodev_qat_asym_autotest, test_cryptodev_qat_asym);\ndiff --git a/app/test/test_cryptodev_rsa_test_vectors.h b/app/test/test_cryptodev_rsa_test_vectors.h\nindex 0b8ed4caaa..52ba9a3055 100644\n--- a/app/test/test_cryptodev_rsa_test_vectors.h\n+++ b/app/test/test_cryptodev_rsa_test_vectors.h\n@@ -358,6 +358,28 @@ struct rte_crypto_asym_xform rsa_xform = {\n \t\t.d = {\n \t\t\t.data = rsa_d,\n \t\t\t.length = sizeof(rsa_d)\n+\t\t},\n+\t\t.qt = {\n+\t\t\t.p = {\n+\t\t\t\t.data = rsa_p,\n+\t\t\t\t.length = sizeof(rsa_p)\n+\t\t\t},\n+\t\t\t.q = {\n+\t\t\t\t.data = rsa_q,\n+\t\t\t\t.length = sizeof(rsa_q)\n+\t\t\t},\n+\t\t\t.dP = {\n+\t\t\t\t.data = rsa_dP,\n+\t\t\t\t.length = sizeof(rsa_dP)\n+\t\t\t},\n+\t\t\t.dQ = {\n+\t\t\t\t.data = rsa_dQ,\n+\t\t\t\t.length = sizeof(rsa_dQ)\n+\t\t\t},\n+\t\t\t.qInv = {\n+\t\t\t\t.data = rsa_qInv,\n+\t\t\t\t.length = sizeof(rsa_qInv)\n+\t\t\t},\n \t\t}\n \t}\n };\n@@ -377,6 +399,10 @@ struct rte_crypto_asym_xform rsa_xform_crt = {\n \t\t\t.length = sizeof(rsa_e)\n \t\t},\n \t\t.key_type = RTE_RSA_KEY_TYPE_QT,\n+\t\t.d = {\n+\t\t\t.data = rsa_d,\n+\t\t\t.length = sizeof(rsa_d)\n+\t\t},\n \t\t.qt = {\n \t\t\t.p = {\n \t\t\t\t.data = rsa_p,\n",
    "prefixes": [
        "RFC",
        "6/6"
    ]
}