From: Akhil Goyal Date: Thu, 9 Nov 2017 12:23:57 +0000 (+0530) Subject: security: fix anonymous unions in structure definitions X-Git-Tag: spdx-start~873 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=db1ae7233600b6454d574cf50e7386a454c504e2;p=dpdk.git security: fix anonymous unions in structure definitions Fixes: c261d1431bd8 ("security: introduce security API and framework") Signed-off-by: Akhil Goyal Acked-by: Pablo de Lara --- diff --git a/lib/librte_security/rte_security.h b/lib/librte_security/rte_security.h index 7e687d294c..653929b990 100644 --- a/lib/librte_security/rte_security.h +++ b/lib/librte_security/rte_security.h @@ -266,6 +266,7 @@ struct rte_security_session_conf { /**< Type of action to be performed on the session */ enum rte_security_session_protocol protocol; /**< Security protocol to be configured */ + RTE_STD_C11 union { struct rte_security_ipsec_xform ipsec; struct rte_security_macsec_xform macsec; @@ -406,6 +407,7 @@ struct rte_security_stats { enum rte_security_session_protocol protocol; /**< Security protocol to be configured */ + RTE_STD_C11 union { struct rte_security_macsec_stats macsec; struct rte_security_ipsec_stats ipsec; @@ -486,6 +488,7 @@ struct rte_security_capability_idx { enum rte_security_session_action_type action; enum rte_security_session_protocol protocol; + RTE_STD_C11 union { struct { enum rte_security_ipsec_sa_protocol proto;