Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/138320/?format=api
http://patches.dpdk.org/api/patches/138320/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20240313105901.1959675-14-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": "<20240313105901.1959675-14-asasidharan@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20240313105901.1959675-14-asasidharan@marvell.com", "date": "2024-03-13T10:58:53", "name": "[v5,13/21] test/crypto: update verification of header", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "4aae9429d027a2f797eac5a8d14b938e3f4a33ac", "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/20240313105901.1959675-14-asasidharan@marvell.com/mbox/", "series": [ { "id": 31494, "url": "http://patches.dpdk.org/api/series/31494/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=31494", "date": "2024-03-13T10:58:40", "name": "Improvements and new test cases", "version": 5, "mbox": "http://patches.dpdk.org/series/31494/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/138320/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/138320/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 89BE243C9F;\n\tWed, 13 Mar 2024 12:00:45 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 2A63742E19;\n\tWed, 13 Mar 2024 11:59:46 +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 7715B42E3E\n for <dev@dpdk.org>; Wed, 13 Mar 2024 11:59:44 +0100 (CET)", "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id\n 42D7soFf025871; Wed, 13 Mar 2024 03:59:43 -0700", "from dc5-exch05.marvell.com ([199.233.59.128])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3wswdd1euh-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Wed, 13 Mar 2024 03:59:43 -0700 (PDT)", "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH05.marvell.com\n (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1258.12; Wed, 13 Mar\n 2024 03:59:42 -0700", "from DC5-EXCH05.marvell.com (10.69.176.209) by\n DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id\n 15.0.1497.48; Wed, 13 Mar 2024 03:59:42 -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; Wed, 13 Mar 2024 03:59:42 -0700", "from localhost.localdomain (unknown [10.28.36.177])\n by maili.marvell.com (Postfix) with ESMTP id 056E43F7080;\n Wed, 13 Mar 2024 03:59:39 -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=JELIBNpBgLbLJhtjtZIM3O4o2Fg6QQT4MSVLZdo96LQ=; b=TT6\n TZjQYUkL27wnR/KKRIPu2gdkt98u1LeR5TQJafU6smDis0gTADuIrtNuNzV/1cDE\n qnYexfFVDh4FGtGWP3KcfDWLZjZQGWe9284y/TrCqFzBcRSP+y+vSCvmKFHmp5rB\n 96+Yu/oMe0hCa/0km8wcMyUb3bk8WC6tYYKO5bpqApKFvkOKNNN8gsDuK4iwm2oT\n UtOSewxzp+BbkS8/RhFlcF1y8haD5pKrcY/Npk6/fKxw4wMxUNNTNuc7H5zQrQ/E\n Tbi+qJ/p0CthbICs8t4ttBKDZIIV+sejhsXFKxeZgd1eJEvy9J0V4gWIMo46WxSv\n mcwBWDut+KWxQaxd59w==", "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 v5 13/21] test/crypto: update verification of header", "Date": "Wed, 13 Mar 2024 16:28:53 +0530", "Message-ID": "<20240313105901.1959675-14-asasidharan@marvell.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20240313105901.1959675-1-asasidharan@marvell.com>", "References": "<20240313055030.1685039-1-asasidharan@marvell.com>\n <20240313105901.1959675-1-asasidharan@marvell.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-ORIG-GUID": "OdCzw9IvV_a2M3xh9SS6IkQX-W-4_-DI", "X-Proofpoint-GUID": "OdCzw9IvV_a2M3xh9SS6IkQX-W-4_-DI", "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-13_07,2024-03-12_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: Vidya Sagar Velumuri <vvelumuri@marvell.com>\n\nIn TLS 1.3, the version in the header would be TLS 1.2 and the content\ntype would be APP irrespective of the type of the payload.\n\nSigned-off-by: Vidya Sagar Velumuri <vvelumuri@marvell.com>\n---\n app/test/test_cryptodev_security_tls_record.c | 20 +++++++++++++------\n 1 file changed, 14 insertions(+), 6 deletions(-)", "diff": "diff --git a/app/test/test_cryptodev_security_tls_record.c b/app/test/test_cryptodev_security_tls_record.c\nindex 907e043ddd..498c4923e0 100644\n--- a/app/test/test_cryptodev_security_tls_record.c\n+++ b/app/test/test_cryptodev_security_tls_record.c\n@@ -275,9 +275,9 @@ tls_record_hdr_verify(const struct tls_record_test_data *td, const uint8_t *outp\n \t\thdr_len = sizeof(struct rte_tls_hdr);\n \t} else if (td->tls_record_xform.ver == RTE_SECURITY_VERSION_TLS_1_3) {\n \t\tconst struct rte_tls_hdr *hdr = (const struct rte_tls_hdr *)output_text;\n-\t\tif (rte_be_to_cpu_16(hdr->version) != RTE_TLS_VERSION_1_3) {\n+\t\tif (rte_be_to_cpu_16(hdr->version) != RTE_TLS_VERSION_1_2) {\n \t\t\tprintf(\"Incorrect header version [expected - %4x, received - %4x]\\n\",\n-\t\t\t RTE_TLS_VERSION_1_3, rte_be_to_cpu_16(hdr->version));\n+\t\t\t RTE_TLS_VERSION_1_2, rte_be_to_cpu_16(hdr->version));\n \t\t\treturn TEST_FAILED;\n \t\t}\n \t\tcontent_type = hdr->type;\n@@ -297,10 +297,18 @@ tls_record_hdr_verify(const struct tls_record_test_data *td, const uint8_t *outp\n \t\treturn TEST_FAILED;\n \t}\n \n-\tif (content_type != td->app_type) {\n-\t\tprintf(\"Incorrect content type in packet [expected - %d, received - %d]\\n\",\n-\t\t td->app_type, content_type);\n-\t\treturn TEST_FAILED;\n+\tif (td->tls_record_xform.ver == RTE_SECURITY_VERSION_TLS_1_3) {\n+\t\tif (content_type != RTE_TLS_TYPE_APPDATA) {\n+\t\t\tprintf(\"Incorrect content type in packet [expected - %d, received - %d]\\n\",\n+\t\t\t td->app_type, content_type);\n+\t\t\treturn TEST_FAILED;\n+\t\t}\n+\t} else {\n+\t\tif (content_type != td->app_type) {\n+\t\t\tprintf(\"Incorrect content type in packet [expected - %d, received - %d]\\n\",\n+\t\t\t td->app_type, content_type);\n+\t\t\treturn TEST_FAILED;\n+\t\t}\n \t}\n \n \tif (length != td->output_text.len - hdr_len) {\n", "prefixes": [ "v5", "13/21" ] }{ "id": 138320, "url": "