From patchwork Fri Feb 18 12:52:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Fialko X-Patchwork-Id: 107807 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 F3B18A0032; Fri, 18 Feb 2022 13:53:59 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 984DD41151; Fri, 18 Feb 2022 13:53:58 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id D7F9241151 for ; Fri, 18 Feb 2022 13:53:56 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 21IAkShr025716; Fri, 18 Feb 2022 04:53:56 -0800 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=NE7F11fP0PCJAqDBGsAlK4QBcGMVCX/Zba31ejRsCaU=; b=gmPK8hw+QOBPz7H0Ufi7qGVxPv3LI2ltvBKW6lWQciFKQmlxMdYSgwiWUXCxk+uMoyR7 nH6niMOZgx1hI/5C9zqijdxIfzzNnb4464C77rCmgdBZ4QTkYUlF/KKhENV2BFVu3fD7 FasZ9Pqj4LqOTD4ztqEs11wks5K2Uf8jUaTErf0I6D4IfOxISGiFyI6x++ePso5hJElI YBS42lxoj6I+rEjF9hFuLKTrZGSXDx2lz+Fq+nhPURYisXRvMJ1HXbsJKY0D/EWmMrE2 yDRfG/N+dTyhBB9ARMnpP3MhiNL+Anr2dgl/u/M+WvSVb5kDtbG7w8KOUERhu0H+gaq9 zw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3e9kktwx9j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 18 Feb 2022 04:53:56 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Fri, 18 Feb 2022 04:53:54 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 18 Feb 2022 04:53:54 -0800 Received: from localhost.localdomain (unknown [10.28.34.39]) by maili.marvell.com (Postfix) with ESMTP id 0DFBC3F706D; Fri, 18 Feb 2022 04:53:51 -0800 (PST) From: Volodymyr Fialko To: , Akhil Goyal , Fan Zhang CC: , Volodymyr Fialko , Anoob Joseph Subject: [PATCH 2/2] test/crypto: add L4 checksum case for transport mode Date: Fri, 18 Feb 2022 13:52:03 +0100 Message-ID: <20220218125203.489078-3-vfialko@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220218125203.489078-1-vfialko@marvell.com> References: <20220218125203.489078-1-vfialko@marvell.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: qWT5w-zNpCQEKI86DcwMMzy967nhPFe3 X-Proofpoint-GUID: qWT5w-zNpCQEKI86DcwMMzy967nhPFe3 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-02-18_05,2022-02-18_01,2021-12-02_01 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 Added test case to verify L4 checksum offload in IPsec transport mode. Signed-off-by: Volodymyr Fialko Acked-by: Anoob Joseph --- app/test/test_cryptodev.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index f6c3cd2b7b..2236736227 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -9697,6 +9697,17 @@ test_ipsec_proto_transport_v4(const void *data __rte_unused) return test_ipsec_proto_all(&flags); } +static int +test_ipsec_proto_transport_l4_csum(const void *data __rte_unused) +{ + struct ipsec_test_flags flags = { + .l4_csum = true, + .transport = true, + }; + + return test_ipsec_proto_all(&flags); +} + static int test_ipsec_proto_stats(const void *data __rte_unused) { @@ -14805,6 +14816,10 @@ static struct unit_test_suite ipsec_proto_testsuite = { "Transport IPv4", ut_setup_security, ut_teardown, test_ipsec_proto_transport_v4), + TEST_CASE_NAMED_ST( + "Transport l4 checksum", + ut_setup_security, ut_teardown, + test_ipsec_proto_transport_l4_csum), TEST_CASE_NAMED_ST( "Statistics: success", ut_setup_security, ut_teardown,