get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 138180,
    "url": "http://patches.dpdk.org/api/patches/138180/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20240312071805.1354530-4-asasidharan@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": "<20240312071805.1354530-4-asasidharan@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240312071805.1354530-4-asasidharan@marvell.com",
    "date": "2024-03-12T07:17:47",
    "name": "[v2,03/21] test/security: add DTLS 1.2 data walkthrough test",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "38c9d22d79c95a49df5c3f916c2519d495a58099",
    "submitter": {
        "id": 2800,
        "url": "http://patches.dpdk.org/api/people/2800/?format=api",
        "name": "Aakash Sasidharan",
        "email": "asasidharan@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/20240312071805.1354530-4-asasidharan@marvell.com/mbox/",
    "series": [
        {
            "id": 31469,
            "url": "http://patches.dpdk.org/api/series/31469/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=31469",
            "date": "2024-03-12T07:17:44",
            "name": "Improvements and new test cases",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/31469/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/138180/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/138180/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 F042943C8E;\n\tTue, 12 Mar 2024 08:18:30 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 2FF3940E25;\n\tTue, 12 Mar 2024 08:18:21 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id E6D8340E25\n for <dev@dpdk.org>; Tue, 12 Mar 2024 08:18:19 +0100 (CET)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id\n 42BIWjqd005008; Tue, 12 Mar 2024 00:18:19 -0700",
            "from dc5-exch05.marvell.com ([199.233.59.128])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3wt54n29st-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Tue, 12 Mar 2024 00:18:18 -0700 (PDT)",
            "from DC5-EXCH05.marvell.com (10.69.176.209) by\n DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.2.1258.12; Tue, 12 Mar 2024 00:18:18 -0700",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com\n (10.69.176.209) with Microsoft SMTP Server id 15.2.1258.12 via Frontend\n Transport; Tue, 12 Mar 2024 00:18:18 -0700",
            "from localhost.localdomain (unknown [10.28.36.177])\n by maili.marvell.com (Postfix) with ESMTP id CD71B3F70A1;\n Tue, 12 Mar 2024 00:18:15 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=\n from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding:content-type; s=\n pfpt0220; bh=/9AzlCo2YzprS+oOh8lRIfE7vgCh5VI3gOB6niRhDhw=; b=Hpf\n MgkDi9LghQMKDkz+ubUTQITpCjAmtHQcC966D6/k6TsCLb9XXUsC5C/Jrs59tGSl\n zx3GsBjoB8YaJKvNDY3Gygkp1DD46aqB8dkPEwHYlvNtPJhhg9M2seHRxVLXK08n\n 9SfQYFngYclhcI3dc3Yh2Cq9kc4aZ/QsuVeNJeq8lsIh2ufrxZtQvxBFtUf+PY35\n FQTaaI3yHSiWPrI2b/fOYwOAoOGtohj7lBMlwrL+fIo46ZkJjv2GpnAvihMKWIUx\n I0tmxDqH1OS6S4iidB1zSiF7HoFEl/Vla7Nrd5hzw1GL29NA4Wzs/Rqw6Q4ElGWw\n MmmfHQczjkE75MO39qg==",
        "From": "Aakash Sasidharan <asasidharan@marvell.com>",
        "To": "Akhil Goyal <gakhil@marvell.com>, Fan Zhang <fanzhang.oss@gmail.com>",
        "CC": "<jerinj@marvell.com>, <anoobj@marvell.com>, <vvelumuri@marvell.com>,\n <asasidharan@marvell.com>, <dev@dpdk.org>",
        "Subject": "[PATCH v2 03/21] test/security: add DTLS 1.2 data walkthrough test",
        "Date": "Tue, 12 Mar 2024 12:47:47 +0530",
        "Message-ID": "<20240312071805.1354530-4-asasidharan@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20240312071805.1354530-1-asasidharan@marvell.com>",
        "References": "<20240305072213.283205-1-asasidharan@marvell.com>\n <20240312071805.1354530-1-asasidharan@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "1k68Ol0xdTKtvahkpdG-1h0iJCnWkhT1",
        "X-Proofpoint-GUID": "1k68Ol0xdTKtvahkpdG-1h0iJCnWkhT1",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26\n definitions=2024-03-12_06,2024-03-11_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 data walkthrough test for DTLS 1.2\n\nSigned-off-by: Aakash Sasidharan <asasidharan@marvell.com>\n---\n app/test/test_cryptodev.c                     | 17 +++++++++++++++++\n app/test/test_cryptodev_security_tls_record.c |  5 ++++-\n 2 files changed, 21 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c\nindex c5837ccbdd..e0695e9eb3 100644\n--- a/app/test/test_cryptodev.c\n+++ b/app/test/test_cryptodev.c\n@@ -12061,6 +12061,19 @@ test_tls_1_2_record_proto_sgl(void)\n \treturn test_tls_record_proto_all(&flags);\n }\n \n+static int\n+test_dtls_1_2_record_proto_data_walkthrough(void)\n+{\n+\tstruct tls_record_test_flags flags;\n+\n+\tmemset(&flags, 0, sizeof(flags));\n+\n+\tflags.data_walkthrough = true;\n+\tflags.tls_version = RTE_SECURITY_VERSION_DTLS_1_2;\n+\n+\treturn test_tls_record_proto_all(&flags);\n+}\n+\n static int\n test_dtls_1_2_record_proto_display_list(void)\n {\n@@ -17255,6 +17268,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_dtls_1_2_record_proto_display_list),\n+\t\tTEST_CASE_NAMED_ST(\n+\t\t\t\"Data walkthrough combined test alg list\",\n+\t\t\tut_setup_security, ut_teardown,\n+\t\t\ttest_dtls_1_2_record_proto_data_walkthrough),\n \t\tTEST_CASE_NAMED_ST(\n \t\t\t\"Multi-segmented mode\",\n \t\t\tut_setup_security, ut_teardown,\ndiff --git a/app/test/test_cryptodev_security_tls_record.c b/app/test/test_cryptodev_security_tls_record.c\nindex 3745c6a0d1..92bcbff842 100644\n--- a/app/test/test_cryptodev_security_tls_record.c\n+++ b/app/test/test_cryptodev_security_tls_record.c\n@@ -143,7 +143,10 @@ test_tls_record_td_prepare(const struct crypto_param *param1, const struct crypt\n \t\tbreak;\n \tcase RTE_SECURITY_VERSION_DTLS_1_2:\n \t\thdr_len = sizeof(struct rte_dtls_hdr);\n-\t\tmin_padding = 0;\n+\t\tif (td->aead)\n+\t\t\tmin_padding = 0;\n+\t\telse\n+\t\t\tmin_padding = 1;\n \t\tbreak;\n \tdefault:\n \t\thdr_len = 0;\n",
    "prefixes": [
        "v2",
        "03/21"
    ]
}