Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/138362/?format=api
http://patchwork.dpdk.org/api/patches/138362/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20240314083844.3319506-10-vvelumuri@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": "<20240314083844.3319506-10-vvelumuri@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20240314083844.3319506-10-vvelumuri@marvell.com", "date": "2024-03-14T08:38:41", "name": "[09/12] crypto/cnxk: update the context structure of tls", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "2a9f7fa37abff6dda0e0efe7b42d7f47063632b0", "submitter": { "id": 2363, "url": "http://patchwork.dpdk.org/api/people/2363/?format=api", "name": "Vidya Sagar Velumuri", "email": "vvelumuri@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/20240314083844.3319506-10-vvelumuri@marvell.com/mbox/", "series": [ { "id": 31505, "url": "http://patchwork.dpdk.org/api/series/31505/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=31505", "date": "2024-03-14T08:38:32", "name": "Add TLS features", "version": 1, "mbox": "http://patchwork.dpdk.org/series/31505/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/138362/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/138362/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 3F9B043CAE;\n\tThu, 14 Mar 2024 09:40:18 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 97CD742E70;\n\tThu, 14 Mar 2024 09:39:36 +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 9D73942E64\n for <dev@dpdk.org>; Thu, 14 Mar 2024 09:39:34 +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 42DNgMND016200 for <dev@dpdk.org>; Thu, 14 Mar 2024 01:39:34 -0700", "from dc5-exch05.marvell.com ([199.233.59.128])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3wucg2uwvt-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Thu, 14 Mar 2024 01:39:33 -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; Thu, 14 Mar\n 2024 01:39:32 -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; Thu, 14 Mar 2024 01:39:32 -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; Thu, 14 Mar 2024 01:39:32 -0700", "from localhost.localdomain (unknown [10.28.36.179])\n by maili.marvell.com (Postfix) with ESMTP id 815085B692A;\n Thu, 14 Mar 2024 01:39:28 -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=Ex6x3OH5QeRXgbvUxXDI2taKxed/0t6DqSggt22YnDM=; b=Ql6\n jDzPoZEeFOPL0MwQDRLPzkZWCzAya7RjkQ3POD3CwlLEU/9K+ZVkH+84cs6M6deO\n jnB8PM8r3rkobdx/nPUYl3O88/xfzESvC7fG0b65GRk+hRh7DhPp/0wByet132G9\n BvxUJFCkrVCXW7Lp6fcHi6i4VCfbfRKzYPPji43QEHz15RqYV0B1lUerB/hYiVuS\n jCUdo0DxgmUjlaU3UcqGHgGNE36ygqAZ3CV92dFDzgoXaOB82CgCDhOaU87N/GW0\n SetkEPcD+kx4Q3568w4xiHAdkYqtqP3w5NpcW4jMIXmtTaBoiam7acmjxL/gM+PK\n tSdtOORqpnRlO+peyeg==", "From": "Vidya Sagar Velumuri <vvelumuri@marvell.com>", "To": "Nithin Dabilpuram <ndabilpuram@marvell.com>, Kiran Kumar K\n <kirankumark@marvell.com>, Sunil Kumar Kori <skori@marvell.com>, Satha Rao\n <skoteshwar@marvell.com>, Harman Kalra <hkalra@marvell.com>, Ankur Dwivedi\n <adwivedi@marvell.com>, Anoob Joseph <anoobj@marvell.com>, Tejasree Kondoj\n <ktejasree@marvell.com>", "CC": "<gakhil@marvell.com>, <jerinj@marvell.com>, <vvelumuri@marvell.com>,\n <asasidharan@marvell.com>, <dev@dpdk.org>", "Subject": "[PATCH 09/12] crypto/cnxk: update the context structure of tls", "Date": "Thu, 14 Mar 2024 01:38:41 -0700", "Message-ID": "<20240314083844.3319506-10-vvelumuri@marvell.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20240314083844.3319506-1-vvelumuri@marvell.com>", "References": "<20240314083844.3319506-1-vvelumuri@marvell.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-ORIG-GUID": "yXUh117dkpWmOv0Z5lPQPaGQ6sZKbluV", "X-Proofpoint-GUID": "yXUh117dkpWmOv0Z5lPQPaGQ6sZKbluV", "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-14_07,2024-03-13_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": "Keep the record context for TLS-1.3 in sync with microcode\nstructure.\n\nReport error if optional padding is enabled for AEAD\ncase in both TLS-1.2 and DTLS-1.2.\n\nSigned-off-by: Vidya Sagar Velumuri <vvelumuri@marvell.com>\n---\n drivers/common/cnxk/roc_ie_ot_tls.h | 17 ++++++++++++-----\n drivers/crypto/cnxk/cn10k_tls.c | 4 ++--\n 2 files changed, 14 insertions(+), 7 deletions(-)", "diff": "diff --git a/drivers/common/cnxk/roc_ie_ot_tls.h b/drivers/common/cnxk/roc_ie_ot_tls.h\nindex b85d075e86..44850f7060 100644\n--- a/drivers/common/cnxk/roc_ie_ot_tls.h\n+++ b/drivers/common/cnxk/roc_ie_ot_tls.h\n@@ -67,6 +67,16 @@ struct roc_ie_ot_tls_read_ctx_update_reg {\n \tuint64_t ar_winbits[ROC_IE_OT_TLS_AR_WINBITS_SZ];\n };\n \n+struct roc_ie_ot_tls_1_3_read_ctx_update_reg {\n+\tuint64_t rsvd0;\n+\tuint64_t ar_valid_mask;\n+\tuint64_t hard_life;\n+\tuint64_t soft_life;\n+\tuint64_t mib_octs;\n+\tuint64_t mib_pkts;\n+\tuint64_t rsvd1;\n+};\n+\n union roc_ie_ot_tls_param2 {\n \tuint16_t u16;\n \tstruct {\n@@ -136,11 +146,8 @@ struct roc_ie_ot_tls_read_sa {\n \n \tunion {\n \t\tstruct {\n-\t\t\t/* Word10 */\n-\t\t\tuint64_t w10_rsvd6;\n-\n-\t\t\t/* Word11 - Word25 */\n-\t\t\tstruct roc_ie_ot_tls_read_ctx_update_reg ctx;\n+\t\t\t/* Word10 - Word16 */\n+\t\t\tstruct roc_ie_ot_tls_1_3_read_ctx_update_reg ctx;\n \t\t} tls_13;\n \n \t\tstruct {\ndiff --git a/drivers/crypto/cnxk/cn10k_tls.c b/drivers/crypto/cnxk/cn10k_tls.c\nindex dea4e501f3..fbf45c464a 100644\n--- a/drivers/crypto/cnxk/cn10k_tls.c\n+++ b/drivers/crypto/cnxk/cn10k_tls.c\n@@ -118,8 +118,8 @@ cnxk_tls_xform_verify(struct rte_security_tls_record_xform *tls_xform,\n \n \tif (crypto_xform->type == RTE_CRYPTO_SYM_XFORM_AEAD) {\n \t\t/* optional padding is not allowed in TLS-1.2 for AEAD */\n-\t\tif ((tls_xform->ver == RTE_SECURITY_VERSION_TLS_1_2) &&\n-\t\t (tls_xform->options.extra_padding_enable == 1))\n+\t\tif ((tls_xform->options.extra_padding_enable == 1) &&\n+\t\t (tls_xform->ver != RTE_SECURITY_VERSION_TLS_1_3))\n \t\t\treturn -EINVAL;\n \n \t\treturn tls_xform_aead_verify(tls_xform, crypto_xform);\n", "prefixes": [ "09/12" ] }{ "id": 138362, "url": "