From patchwork Thu Nov 9 09:57:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Radu Nicolau X-Patchwork-Id: 31294 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8CA2D1B64D; Thu, 9 Nov 2017 11:01:47 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id D35B01B64C for ; Thu, 9 Nov 2017 11:01:45 +0100 (CET) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP; 09 Nov 2017 02:01:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,369,1505804400"; d="scan'208";a="147865389" Received: from silpixa00383879.ir.intel.com (HELO silpixa00383879.ger.corp.intel.com) ([10.237.223.127]) by orsmga004.jf.intel.com with ESMTP; 09 Nov 2017 02:01:43 -0800 From: Radu Nicolau To: dev@dpdk.org Cc: thomas@monjalon.net, sergio.gonzalez.monroy@intel.com, pablo.de.lara.guarch@intel.com, Radu Nicolau Date: Thu, 9 Nov 2017 09:57:21 +0000 Message-Id: <1510221441-17680-1-git-send-email-radu.nicolau@intel.com> X-Mailer: git-send-email 2.7.5 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH] examples/ipsec-secgw: fix build with gcc 4.5.1 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On SUSE11 with gcc 4.5.1 the following build error occurred, most likely because of improper handling of annonymous unions: examples/ipsec-secgw/ipsec.c:87:4 error: unknown field ‘ipsec’ specified in initializer Fixes: ec17993a145a ("examples/ipsec-secgw: support security offload") Signed-off-by: Radu Nicolau Acked-by: Pablo de Lara --- examples/ipsec-secgw/ipsec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/ipsec-secgw/ipsec.c b/examples/ipsec-secgw/ipsec.c index c24284d..70ed227 100644 --- a/examples/ipsec-secgw/ipsec.c +++ b/examples/ipsec-secgw/ipsec.c @@ -84,7 +84,7 @@ create_session(struct ipsec_ctx *ipsec_ctx, struct ipsec_sa *sa) struct rte_security_session_conf sess_conf = { .action_type = sa->type, .protocol = RTE_SECURITY_PROTOCOL_IPSEC, - .ipsec = { + {.ipsec = { .spi = sa->spi, .salt = sa->salt, .options = { 0 }, @@ -94,7 +94,7 @@ create_session(struct ipsec_ctx *ipsec_ctx, struct ipsec_sa *sa) sa->flags == IP6_TUNNEL) ? RTE_SECURITY_IPSEC_SA_MODE_TUNNEL : RTE_SECURITY_IPSEC_SA_MODE_TRANSPORT, - }, + } }, .crypto_xform = sa->xforms };