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 C3D69A0547; Sat, 31 Jul 2021 20:14:03 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 105E4410FA; Sat, 31 Jul 2021 20:14:00 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 32C5B40042 for ; Sat, 31 Jul 2021 20:13:59 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 16VIDqBc025488; Sat, 31 Jul 2021 11:13:56 -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=NZ4qYPLbns5xnjBKQSZOtTtl2Odbu0lvFz99p4e9/ds=; b=NYAPm5eg/+AHBeeqI2mu8Cx/5IMsjjOevvT0ejqt3KlX/Yk7NzyEJFxxmQ32GUOrTRWW mtrB5LihpatcPDpBoD3SmYwE91Bq6pQnextr1XFERsS+oP5YlZAtAmh3n2wDa0t2mKN1 mtiH7IK0bCbQCTpGBIROXD+q6cSud8nxpcAbyLBG3fnsVKOmKRhjrr8Sy/1LOhDmCeRh A4+WpIFFp3LkSVOXlHDu5cn4GHYgHRw4JFhoepC78J/2QEMYtItRkNXh8jM/bGpsnkoO 7DCLv6/qlF7BSuMzsx4ojxi3xtSTXS+6bARYIxh8oSnaqvt09LWU3SkT2q6IU/aBJ7ma +g== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com with ESMTP id 3a561rrmrv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sat, 31 Jul 2021 11:13:56 -0700 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; Sat, 31 Jul 2021 11:13:54 -0700 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.18 via Frontend Transport; Sat, 31 Jul 2021 11:13:54 -0700 Received: from localhost.localdomain (unknown [10.28.36.185]) by maili.marvell.com (Postfix) with ESMTP id 1CA833F707A; Sat, 31 Jul 2021 11:13:49 -0700 (PDT) From: Akhil Goyal To: CC: , , , , , , , , , , , , , Akhil Goyal Date: Sat, 31 Jul 2021 23:43:27 +0530 Message-ID: <20210731181327.660296-5-gakhil@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210731181327.660296-1-gakhil@marvell.com> References: <20210731181327.660296-1-gakhil@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: 20mVWSaP5IcPwmePlOzZhC341k-_y4QC X-Proofpoint-GUID: 20mVWSaP5IcPwmePlOzZhC341k-_y4QC X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-07-31_05:2021-07-30, 2021-07-31 signatures=0 Subject: [dpdk-dev] [PATCH 4/4] security: add reserved bitfields 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 Sender: "dev" In struct rte_security_ipsec_sa_options, for every new option added, there is an ABI breakage, to avoid, a reserved_opts bitfield is added to for the remaining bits available in the structure. Now for every new sa option, these reserved_opts can be reduced and new option can be added. A corresponding exception is also added in devtools/libabigail.abignore Signed-off-by: Akhil Goyal --- devtools/libabigail.abignore | 4 ++++ lib/security/rte_security.h | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/devtools/libabigail.abignore b/devtools/libabigail.abignore index 93158405e0..5d8da28e55 100644 --- a/devtools/libabigail.abignore +++ b/devtools/libabigail.abignore @@ -52,3 +52,7 @@ ; https://sourceware.org/bugzilla/show_bug.cgi?id=28060 [suppress_type] name = rte_eth_dev_data + +; Ignore changes in reserved_opts bitfield of rte_security_ipsec_sa_options +[suppress_variable] + name = reserved_opts diff --git a/lib/security/rte_security.h b/lib/security/rte_security.h index 88d31de0a6..4606425e8d 100644 --- a/lib/security/rte_security.h +++ b/lib/security/rte_security.h @@ -181,6 +181,12 @@ struct rte_security_ipsec_sa_options { * * 0: Disable per session security statistics collection for this SA. */ uint32_t stats : 1; + + /** Reserved bit fields for future extension + * + * Note: reduce number of bits in reserved_opts for every new option + */ + uint32_t reserved_opts : 24; }; /** IPSec security association direction */ -- 2.25.1