From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4A462A034C; Wed, 23 Feb 2022 11:41:07 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 762E641223; Wed, 23 Feb 2022 11:41:05 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 021E741223 for ; Wed, 23 Feb 2022 11:41:03 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 21N9eMMh003766; Wed, 23 Feb 2022 02:41:03 -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=+He33UeKCJDnjr67Ks41H7a9flh9g1alOgX3mLWwsgc=; b=dbbkGPGgr781bfKIaa8X5zlWVRD65NP7gxsKirkeQMcO5ro7rJr7qOdrSXk+nBYPuFwM I9aV3lfnWzxmD3kZVCfULH5Ams5s1xv/zJMc/k6l1fUMSS//VcFSICPvjdMWnhKdStbi x2vnmEhY2e9gFJfeKomc5ewtcIlMQkG4sVnlvnu4TxQaJ0IZn38vcHzz1l7ufzFQxyAC 6f+tWrndByoU+v8PaMbGcQAsGAAuIrW0Wourh5DbCHVEjRchcAW7HB8GszEZVtG6B210 Yz+i27bkKLvWMvbrUUaC98b4COcj91OYnWuOIY+ZaylfCvdj8s1e22S777Lms9+aDheY UQ== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3edjga0729-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 23 Feb 2022 02:41:03 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 23 Feb 2022 02:41:01 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Wed, 23 Feb 2022 02:41:01 -0800 Received: from localhost.localdomain (unknown [10.28.34.39]) by maili.marvell.com (Postfix) with ESMTP id 969653F7078; Wed, 23 Feb 2022 02:40:59 -0800 (PST) From: Volodymyr Fialko To: , Akhil Goyal , Fan Zhang CC: , Volodymyr Fialko , Anoob Joseph Subject: [PATCH v2 2/2] test/crypto: add L4 checksum case for transport mode Date: Wed, 23 Feb 2022 11:40:46 +0100 Message-ID: <20220223104046.1231153-3-vfialko@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220223104046.1231153-1-vfialko@marvell.com> References: <20220218125203.489078-1-vfialko@marvell.com> <20220223104046.1231153-1-vfialko@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: M7XfGmfQKS45rBK7WPChTnstrhVbDzRE X-Proofpoint-GUID: M7XfGmfQKS45rBK7WPChTnstrhVbDzRE X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-02-23_03,2022-02-23_01,2022-02-23_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 694b073f4f..a0c8926776 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -9724,6 +9724,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) { @@ -15096,6 +15107,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, -- 2.25.1