From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0065.outbound.protection.outlook.com [104.47.42.65]) by dpdk.org (Postfix) with ESMTP id 45C031B1A1 for ; Thu, 9 Nov 2017 13:27:04 +0100 (CET) Received: from BLUPR0301CA0024.namprd03.prod.outlook.com (2a01:111:e400:5259::34) by SN2PR03MB2365.namprd03.prod.outlook.com (2603:10b6:804:e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.218.12; Thu, 9 Nov 2017 12:27:03 +0000 Received: from BL2FFO11FD047.protection.gbl (2a01:111:f400:7c09::131) by BLUPR0301CA0024.outlook.office365.com (2a01:111:e400:5259::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.218.12 via Frontend Transport; Thu, 9 Nov 2017 12:27:03 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; NXP1.onmicrosoft.com; dkim=none (message not signed) header.d=none;NXP1.onmicrosoft.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD047.mail.protection.outlook.com (10.173.161.209) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.178.5 via Frontend Transport; Thu, 9 Nov 2017 12:27:02 +0000 Received: from netperf2.ap.freescale.net ([10.232.133.164]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id vA9CQxN3024373; Thu, 9 Nov 2017 05:27:00 -0700 From: Akhil Goyal To: CC: , , , , Akhil Goyal Date: Thu, 9 Nov 2017 17:53:57 +0530 Message-ID: <20171109122357.32333-1-akhil.goyal@nxp.com> X-Mailer: git-send-email 2.9.3 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131547040231859425; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(7966004)(39860400002)(39380400002)(376002)(346002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(5003940100001)(105606002)(8936002)(53936002)(1076002)(33646002)(356003)(81166006)(68736007)(189998001)(106466001)(305945005)(6666003)(81156014)(2351001)(86362001)(50986999)(4326008)(77096006)(48376002)(47776003)(97736004)(104016004)(8676002)(36756003)(8656006)(54906003)(498600001)(6916009)(2906002)(50466002)(296002)(16586007)(15650500001)(85426001)(5660300001)(316002)(50226002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR03MB2365; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD047; 1:4pWjQRypUn+HeJtcCvAD5eOaehEASwJ9ZOTJvLHIy4EUKg/8odg4EBXso3xOzdoPd/RXMEoGVxMWJcRedNYX6AdZlY3h4vrP7A9LXyji9a4RJSSkDNp52Ia31Au2/V+N MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1358e488-ac00-4d12-c382-08d5276d2eba X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4628075)(201703131517081)(2017052603249); SRVR:SN2PR03MB2365; X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2365; 3:OOx5I2G+GQFRrqXH8wEMGuXdfBLXa0qUcvh4pd1Wt3ym86UgD+pCTIFx6hAP7fY1jok5yGSwyW+yk+jIlSiv2dCRp9f99Qr+ssMvo3iB06BZ5miH0HLvWREHGr9kdgEWgVv5PWl0tvQJ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DyIiTFBwo7GcxOS/gaTf9Sbq1GU71TrSAhIY8s039l97VmjH+RgGyXjTmfyaKTOGhg+BiYDK+Q45ZnTYAtufwJFmQAtr/vmJwrS0G0m+i79B5wvHIOJnQzzvAcFDBjVqqetZB+ZBLWeaREAZjagM1ArUC4NaXm6JcCFAm57d2uQBTZY+4= X-Exchange-Antispam-Report-Test: UriScan:(192374486261705)(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(100000703101)(100105400095)(3231021)(6055026)(6096035)(20161123565025)(20161123563025)(20161123559100)(20161123561025)(201703131430075)(201703131520075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123556025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SN2PR03MB2365; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SN2PR03MB2365; X-Forefront-PRVS: 0486A0CB86 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR03MB2365; 23:MaT8AshwJfnPsVmHTaZ6jBAljSb/gOORlXDsTeW7o?= =?us-ascii?Q?ufjJ+I858pCwEcPoPJtjR9ULNSaYOUm1bHf/FcCZcnl6WjptS5DwlK6cCic2?= =?us-ascii?Q?YkKRKPZek9+5rM+2WD0QvCrpfp69XSBW49FkCL2FEaxI8mYWb46ftjcjHUoR?= =?us-ascii?Q?9734dFrpwMz8CIdUj8Mk+IIr2XNyQU1SsdUtG9yUG2ZUdpRbYRcVGZ8+O0ee?= =?us-ascii?Q?Aw5HFGXcIu1Au4FHtPzLEhZvGvsAawqXwl8YPzL3HkWXTbDorXICsY2FGW25?= =?us-ascii?Q?8U+xDp6BFRm05gu1OJD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eWGQrtKe5kIi6astg7fm986r1ZKgtFJz?= X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2365; 6:kvhE2cH3VVQHa1xEAxukMZGobQsaAwOBesxf5/n0jG7ZsWqUQsFFxjWyFg8TWjh99+wu2OWte40wo8mVykqb4I4ssgwUsDWLEHV4Q8n0x4E1ArLfHBei9oYK9Y3ALb0i+K6Ayw2jNDzE+rz2+UbOifTrX43pCOMpRaUQdAmzNvR3tszfOVW/FDkGUCZtbUaGZooDA/ileWtTDyflY58zoihOD/5VHm3hMJSl7ZamlqYFXATbAa6LRaxVJoIXHH7XAUCVYl1zKWO2ztAnus8yJGwJlRbegln+Dpyw+9AgwvDjJzCT5k4b6cwHxn+njVH1lWMGOyWlCxF4T+3mKY0sK3LggFmf2BviS3XrnjNR/38=; 5:2MwvN0Re0iTHaR1BquuQyeVftpsNmync9KLZVAbcSQyN4hSVfd0ZIeQwRMxVT/4ekXNJReHVYXtZSUTRDNNn4EEAs1h7Duyw2i16sbyXTVorRNOHHorp45caQGImI1IpWG8nhV9DZmFh2ZzEVsicEU5G50JxJFXjKubpRk4gswA=; 24:jnvHy63rx6+OxDzOGuGH6zkOZHR+7oUmnErHEQJF1WqE9MKVDtralweG6Ysh6JAf1qhO5Ay0+jr3VRoz8O7Pa6VJcElvJvKSINn0XMniPzA=; 7:5/mEsmsYYFEfcGnnFtYhOlwI9Z+8Q3XnYKyY6g8NgsqMoqdKcX8l8GB1hWenB+WhLx9VJQaCDUeWfRO2KuVoKJZx7PWKRsvhmO/laQwAPR7e0uwZA/oydcYPEq58Fr4K4AT4KtvXg7fPpEcGWR10B2uaRROlXBDGYI4F2fUV5rEdP0/jOpOb7VklnDotXCFlIgEsex+fV/5nz5qbtypg2tqk2NvfJ94ntVJcBKIBWo7illisxjI4X6i19hiiRrjP SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Nov 2017 12:27:02.9987 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1358e488-ac00-4d12-c382-08d5276d2eba X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR03MB2365 Subject: [dpdk-dev] [PATCH] security: fix anonymous unions in structure definitions X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Nov 2017 12:27:05 -0000 Fixes: c261d1431bd8 ("security: introduce security API and framework") Signed-off-by: Akhil Goyal --- lib/librte_security/rte_security.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/librte_security/rte_security.h b/lib/librte_security/rte_security.h index 7e687d2..653929b 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; -- 2.9.3