From patchwork Thu Mar 14 08:38:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vidya Sagar Velumuri X-Patchwork-Id: 138365 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: 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]) by inbox.dpdk.org (Postfix) with ESMTP id CA0C643CAE; Thu, 14 Mar 2024 09:40:35 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 12C0642EAD; Thu, 14 Mar 2024 09:39:53 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 61B0742E5D for ; Thu, 14 Mar 2024 09:39:45 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42DNOkNC015597 for ; Thu, 14 Mar 2024 01:39:44 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= pfpt0220; bh=hwK6n1u+asxPKcdGmMkaqnNkq0R7L4rxwM3KAJjpDe0=; b=WGl +f80SArbf4WRrVuiCuYDBkF/9njHBRBD1C3Syt76xvb/APn/tnf0HgjPs5gv53i7 3CK+TE5TGwNxDw8TLgherIe16xHlr6rkCqKt3znGH2IreAb5KHKaC843mqeG6lY3 IhwilX6Sx+vqnT6vbj8ezEs3/YRj5fAB3tEa9UHK7Q7coSWw3NNwBv+XFj6aCV3Z 2E7gBv/ekVBq5BR50DCZy2XRLLn+QqLHHMtRFvf/wsTFts+CDAh3ORLkXC73EoHc Hv2VawRwjQAQXkjAIEdsYo2qCtTtj9WQIObmbV3CxjxgG75/RLgZ6jffNz80VU8w k1yPi+NMo9JetODMz8A== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3wucg2uwws-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 14 Mar 2024 01:39:44 -0700 (PDT) Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1258.12; Thu, 14 Mar 2024 01:39:43 -0700 Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 14 Mar 2024 01:39:43 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1258.12 via Frontend Transport; Thu, 14 Mar 2024 01:39:43 -0700 Received: from localhost.localdomain (unknown [10.28.36.179]) by maili.marvell.com (Postfix) with ESMTP id 6B8593F7051; Thu, 14 Mar 2024 01:39:40 -0700 (PDT) From: Vidya Sagar Velumuri To: Ankur Dwivedi , Anoob Joseph , Tejasree Kondoj CC: , , , , Subject: [PATCH 12/12] crypto/cnxk: remove the response len handling for tls Date: Thu, 14 Mar 2024 01:38:44 -0700 Message-ID: <20240314083844.3319506-13-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 X-Proofpoint-ORIG-GUID: TV15ejADyvZ44P2mAQTDY_7J881tRMOp X-Proofpoint-GUID: TV15ejADyvZ44P2mAQTDY_7J881tRMOp X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Microcode is updating the rlen properly for TLS-1.3 Remove the rlen handling for the same in PMD. Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/crypto/cnxk/cn10k_cryptodev_ops.c b/drivers/crypto/cnxk/cn10k_cryptodev_ops.c index 5f0cf1b1f8..720b756001 100644 --- a/drivers/crypto/cnxk/cn10k_cryptodev_ops.c +++ b/drivers/crypto/cnxk/cn10k_cryptodev_ops.c @@ -1124,8 +1124,6 @@ cn10k_cpt_tls_post_process(struct rte_crypto_op *cop, struct cpt_cn10k_res_s *re uint16_t m_len = res->rlen; if (!res->uc_compcode) { - if ((tls_opt.tls_ver == RTE_SECURITY_VERSION_TLS_1_3) && (!tls_opt.is_write)) - m_len -= 1; if (mbuf->next == NULL) mbuf->data_len = m_len; mbuf->pkt_len = m_len;