get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 134926,
    "url": "https://patches.dpdk.org/api/patches/134926/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20231207130216.140-15-anoobj@marvell.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<20231207130216.140-15-anoobj@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231207130216.140-15-anoobj@marvell.com",
    "date": "2023-12-07T13:02:16",
    "name": "[14/14] test/crypto: add multi segmented cases",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "617da90451cf29b201a37e22dd506ca8d447ffb4",
    "submitter": {
        "id": 1205,
        "url": "https://patches.dpdk.org/api/people/1205/?format=api",
        "name": "Anoob Joseph",
        "email": "anoobj@marvell.com"
    },
    "delegate": {
        "id": 6690,
        "url": "https://patches.dpdk.org/api/users/6690/?format=api",
        "username": "akhil",
        "first_name": "akhil",
        "last_name": "goyal",
        "email": "gakhil@marvell.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20231207130216.140-15-anoobj@marvell.com/mbox/",
    "series": [
        {
            "id": 30476,
            "url": "https://patches.dpdk.org/api/series/30476/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=30476",
            "date": "2023-12-07T13:02:02",
            "name": "Add TLS record test suite",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/30476/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/134926/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/134926/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 49E2743699;\n\tThu,  7 Dec 2023 14:04:40 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3962B42EF1;\n\tThu,  7 Dec 2023 14:03:07 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id D31B542EF1\n for <dev@dpdk.org>; Thu,  7 Dec 2023 14:03:05 +0100 (CET)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 3B79PG3B032040; Thu, 7 Dec 2023 05:03:05 -0800",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3uubdd8n7m-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Thu, 07 Dec 2023 05:03:05 -0800",
            "from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48;\n Thu, 7 Dec 2023 05:03:03 -0800",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend\n Transport; Thu, 7 Dec 2023 05:03:03 -0800",
            "from BG-LT92004.corp.innovium.com (unknown [10.28.163.189])\n by maili.marvell.com (Postfix) with ESMTP id 99DCF3F70B2;\n Thu,  7 Dec 2023 05:02:59 -0800 (PST)"
        ],
        "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=rqnepvuZqbVSPRe5AeYlqxxetx/prT86J2i14at4mXs=;\n b=eICEiMZayaelOqhMjETviVn8OYwDYOrivb60gq3yK1jWddDPdWnxEap4BAiBYDEN4B+N\n Ptzb1hbu0KELTwVIXes/JYKrHKL6A8IIZGe9m+pduphspPJf7GPBYg0fri09wzg8jBVR\n 4gH11yvJsQDkTsQYtoj47gN6vbtCJlfSsyGH5z1DbtpinWgszJLqnZNqKkI4Z8oTpoGi\n o6qXbs/f/aU8Wmv4czXpTYsajAiJ0parX8JYQ9ZZ2h10ZGvvAR3bvI2PdM4goeFjaBCT\n xxIVMYuieKeJ8wbAYPG1fLR65EATFwbpJlb8NiJssD2yl9nfUU96VErQFkH4WVUlSFRK 7Q==",
        "From": "Anoob Joseph <anoobj@marvell.com>",
        "To": "Akhil Goyal <gakhil@marvell.com>, Jerin Jacob <jerinj@marvell.com>",
        "CC": "Tejasree Kondoj <ktejasree@marvell.com>, Harry van Haaren\n <harry.van.haaren@intel.com>, Hemant Agrawal <hemant.agrawal@nxp.com>,\n Konstantin Ananyev <konstantin.v.ananyev@yandex.ru>, <dev@dpdk.org>, \"Vidya\n Sagar Velumuri\" <vvelumuri@marvell.com>",
        "Subject": "[PATCH 14/14] test/crypto: add multi segmented cases",
        "Date": "Thu, 7 Dec 2023 18:32:16 +0530",
        "Message-ID": "<20231207130216.140-15-anoobj@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20231207130216.140-1-anoobj@marvell.com>",
        "References": "<20231207130216.140-1-anoobj@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "_9d9aNtVvEOCdYrO4TO4oUvpXNrvbdZ2",
        "X-Proofpoint-GUID": "_9d9aNtVvEOCdYrO4TO4oUvpXNrvbdZ2",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26\n definitions=2023-12-07_10,2023-12-07_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: Tejasree Kondoj <ktejasree@marvell.com>\n\nAdd multi segmented buffer test cases in TLS suites.\n\nSigned-off-by: Tejasree Kondoj <ktejasree@marvell.com>\nSigned-off-by: Vidya Sagar Velumuri <vvelumuri@marvell.com>\n---\n app/test/test_cryptodev.c                     | 29 ++++++++++++++++++-\n app/test/test_cryptodev_security_tls_record.h |  1 +\n doc/guides/rel_notes/release_24_03.rst        |  4 +++\n 3 files changed, 33 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c\nindex 86e2ccd483..b208cca4e2 100644\n--- a/app/test/test_cryptodev.c\n+++ b/app/test/test_cryptodev.c\n@@ -11699,6 +11699,7 @@ test_tls_record_proto_process(const struct tls_record_test_data td[],\n \t\t\t      struct tls_record_test_data res_d[], int nb_td, bool silent,\n \t\t\t      const struct tls_record_test_flags *flags)\n {\n+\tint nb_segs = flags->nb_segs_in_mbuf ? flags->nb_segs_in_mbuf : 1;\n \tstruct crypto_testsuite_params *ts_params = &testsuite_params;\n \tstruct crypto_unittest_params *ut_params = &unittest_params;\n \tstruct rte_security_tls_record_xform tls_record_xform;\n@@ -11801,7 +11802,7 @@ test_tls_record_proto_process(const struct tls_record_test_data td[],\n \tfor (i = 0; i < nb_td; i++) {\n \t\t/* Setup source mbuf payload */\n \t\tut_params->ibuf = create_segmented_mbuf(ts_params->mbuf_pool, td[i].input_text.len,\n-\t\t\t\t1, 0);\n+\t\t\t\tnb_segs, 0);\n \t\tpktmbuf_write(ut_params->ibuf, 0, td[i].input_text.len, td[i].input_text.data);\n \n \t\t/* Generate crypto op data structure */\n@@ -11958,6 +11959,24 @@ test_tls_record_proto_display_list(void)\n \treturn test_tls_record_proto_all(&flags);\n }\n \n+static int\n+test_tls_record_proto_sgl(void)\n+{\n+\tstruct tls_record_test_flags flags = {\n+\t\t.nb_segs_in_mbuf = 5\n+\t};\n+\tstruct crypto_testsuite_params *ts_params = &testsuite_params;\n+\tstruct rte_cryptodev_info dev_info;\n+\n+\trte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info);\n+\tif (!(dev_info.feature_flags & RTE_CRYPTODEV_FF_IN_PLACE_SGL)) {\n+\t\tprintf(\"Device doesn't support in-place scatter-gather. Test Skipped.\\n\");\n+\t\treturn TEST_SKIPPED;\n+\t}\n+\n+\treturn test_tls_record_proto_all(&flags);\n+}\n+\n #endif\n \n static int\n@@ -16956,6 +16975,10 @@ static struct unit_test_suite tls12_record_proto_testsuite  = {\n \t\t\t\"Combined test alg list\",\n \t\t\tut_setup_security, ut_teardown,\n \t\t\ttest_tls_record_proto_display_list),\n+\t\tTEST_CASE_NAMED_ST(\n+\t\t\t\"Multi-segmented mode\",\n+\t\t\tut_setup_security, ut_teardown,\n+\t\t\ttest_tls_record_proto_sgl),\n \t\tTEST_CASES_END() /**< NULL terminate unit test array */\n \t}\n };\n@@ -17053,6 +17076,10 @@ static struct unit_test_suite dtls12_record_proto_testsuite  = {\n \t\t\t\"Combined test alg list\",\n \t\t\tut_setup_security, ut_teardown,\n \t\t\ttest_tls_record_proto_display_list),\n+\t\tTEST_CASE_NAMED_ST(\n+\t\t\t\"Multi-segmented mode\",\n+\t\t\tut_setup_security, ut_teardown,\n+\t\t\ttest_tls_record_proto_sgl),\n \t\tTEST_CASES_END() /**< NULL terminate unit test array */\n \t}\n };\ndiff --git a/app/test/test_cryptodev_security_tls_record.h b/app/test/test_cryptodev_security_tls_record.h\nindex 82a1776265..0bd83f88f0 100644\n--- a/app/test/test_cryptodev_security_tls_record.h\n+++ b/app/test/test_cryptodev_security_tls_record.h\n@@ -55,6 +55,7 @@ struct tls_record_test_data {\n \n struct tls_record_test_flags {\n \tbool display_alg;\n+\tint nb_segs_in_mbuf;\n };\n \n extern struct tls_record_test_data tls_test_data_aes_128_gcm_v1;\ndiff --git a/doc/guides/rel_notes/release_24_03.rst b/doc/guides/rel_notes/release_24_03.rst\nindex e9c9717706..0d226e9644 100644\n--- a/doc/guides/rel_notes/release_24_03.rst\n+++ b/doc/guides/rel_notes/release_24_03.rst\n@@ -55,6 +55,10 @@ New Features\n      Also, make sure to start the actual text at the margin.\n      =======================================================\n \n+* **Added TLS record test suite.**\n+\n+  Added a new test suite in cryptodev autotest framework to test TLS record\n+  security offload by supported cryptodevs.\n \n Removed Items\n -------------\n",
    "prefixes": [
        "14/14"
    ]
}