From 376ee1dee83e9c9dd3351943a4833d8de39dabd6 Mon Sep 17 00:00:00 2001 From: Radu Nicolau Date: Thu, 9 Nov 2017 09:57:21 +0000 Subject: [PATCH] examples/ipsec-secgw: fix build with gcc 4.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 c24284d60e..70ed2272e7 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 }; -- 2.20.1