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 C3B84A04A4; Fri, 4 Feb 2022 23:14:05 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 04E3040E50; Fri, 4 Feb 2022 23:14:02 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 0CCD44068F for ; Fri, 4 Feb 2022 23:13:59 +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 214Lv2qA017598; Fri, 4 Feb 2022 14:13:57 -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=aBdWkgoWpxSiIHRzunw1jEgQWmfGhUw0/i0HI7EsDUc=; b=QrMMNxXUsPBuEe/G/GlZWc6YlstyC54kDQrkR90t+YCiPz+nxgDxc5JyWWkCLFc1tf9i lNiyQD1hwvj5f6Hu+mt3wiMfMu4rvtbqpKlsgjB3SLEAb/gxZgogR+TiagOFjEFGHyq2 E0LVlWBWE295edJzmWP3TlQ17OZnRy1omiJu+4Hu9ESpjHbsNI2V2RcTA172rJacFa/m r4eMaefDaG3+MhlMo6sE+WEQP5VMVQHT6hZzsx0fx09gNyoYp1fVWMCAT7n8u9n0KfXr uMmGJv4EBXDQwNi5zfbz89+1+TU0Dm7lOsXZyTAog3UpsqJiL0zUCgBUTliR/1PpMgPr XQ== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3e0jvrnnk1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 04 Feb 2022 14:13:57 -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; Fri, 4 Feb 2022 14:13:55 -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; Fri, 4 Feb 2022 14:13:55 -0800 Received: from localhost.localdomain (unknown [10.28.48.55]) by maili.marvell.com (Postfix) with ESMTP id 3F3AA3F7069; Fri, 4 Feb 2022 14:13:51 -0800 (PST) From: Akhil Goyal To: CC: , , , , , , , , , , , , , Akhil Goyal Subject: [PATCH v4 3/3] security: add IPsec option for IP reassembly Date: Sat, 5 Feb 2022 03:43:34 +0530 Message-ID: <20220204221334.3551574-4-gakhil@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220204221334.3551574-1-gakhil@marvell.com> References: <20220130175935.1947730-1-gakhil@marvell.com> <20220204221334.3551574-1-gakhil@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: Od6mhOQk9hOOZWMElaCo63H_InAVjwvX X-Proofpoint-ORIG-GUID: Od6mhOQk9hOOZWMElaCo63H_InAVjwvX 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-04_07,2022-02-03_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 A new option is added in IPsec to enable and attempt reassembly of inbound packets. Signed-off-by: Akhil Goyal Change-Id: I6f66f0b5a659550976a32629130594070cb16cb1 --- devtools/libabigail.abignore | 14 ++++++++++++++ lib/security/rte_security.h | 12 +++++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/devtools/libabigail.abignore b/devtools/libabigail.abignore index 4b676f317d..3bd39042e8 100644 --- a/devtools/libabigail.abignore +++ b/devtools/libabigail.abignore @@ -11,3 +11,17 @@ ; Ignore generated PMD information strings [suppress_variable] name_regexp = _pmd_info$ + +; Ignore fields inserted in place of reserved_opts of rte_security_ipsec_sa_options +[suppress_type] + name = rte_ipsec_sa_prm + name = rte_security_ipsec_sa_options + has_data_member_inserted_between = {offset_of(reserved_opts), end} + +[suppress_type] + name = rte_security_capability + has_data_member_inserted_between = {offset_of(reserved_opts), (offset_of(reserved_opts) + 18)} + +[suppress_type] + name = rte_security_session_conf + has_data_member_inserted_between = {offset_of(reserved_opts), (offset_of(reserved_opts) + 18)} diff --git a/lib/security/rte_security.h b/lib/security/rte_security.h index 1228b6c8b1..168b837a82 100644 --- a/lib/security/rte_security.h +++ b/lib/security/rte_security.h @@ -264,6 +264,16 @@ struct rte_security_ipsec_sa_options { */ uint32_t l4_csum_enable : 1; + /** Enable reassembly on incoming packets. + * + * * 1: Enable driver to try reassembly of encrypted IP packets for + * this SA, if supported by the driver. This feature will work + * only if rx_offload RTE_ETH_RX_OFFLOAD_IP_REASSEMBLY is set in + * inline Ethernet device. + * * 0: Disable reassembly of packets (default). + */ + uint32_t reass_en : 1; + /** Reserved bit fields for future extension * * User should ensure reserved_opts is cleared as it may change in @@ -271,7 +281,7 @@ struct rte_security_ipsec_sa_options { * * Note: Reduce number of bits in reserved_opts for every new option. */ - uint32_t reserved_opts : 18; + uint32_t reserved_opts : 17; }; /** IPSec security association direction */ -- 2.25.1