From: Akhil Goyal Date: Mon, 18 Oct 2021 05:22:47 +0000 (+0530) Subject: security: add reserved bit fields X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=fb545457ed5cb280f8391215cfe4642d2eede5c4;p=dpdk.git security: add reserved bit fields 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. Signed-off-by: Akhil Goyal Acked-by: Konstantin Ananyev Acked-by: Ray Kinsella --- diff --git a/lib/security/rte_security.h b/lib/security/rte_security.h index 17d0e95412..4c55dcd744 100644 --- a/lib/security/rte_security.h +++ b/lib/security/rte_security.h @@ -263,6 +263,15 @@ struct rte_security_ipsec_sa_options { * PKT_TX_UDP_CKSUM or PKT_TX_L4_MASK in mbuf. */ uint32_t l4_csum_enable : 1; + + /** Reserved bit fields for future extension + * + * User should ensure reserved_opts is cleared as it may change in + * subsequent releases to support new options. + * + * Note: Reduce number of bits in reserved_opts for every new option. + */ + uint32_t reserved_opts : 18; }; /** IPSec security association direction */